summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-03-07 20:14:41 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 13:32:17 +0100
commitcd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1 (patch)
treef97009b8971d71b4c05cbc0d00b98608efd40e44 /ripd
parent*: Convert thread_master_XXX functions to event_master_XXX (diff)
downloadfrr-cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1.tar.xz
frr-cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1.zip
*: Convert `struct event_master` to `struct event_loop`
Let's find a better name for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_main.c2
-rw-r--r--ripd/rip_snmp.c4
-rw-r--r--ripd/rip_zebra.c2
-rw-r--r--ripd/ripd.h4
4 files changed, 6 insertions, 6 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index f5743d814..fbe877ca7 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -47,7 +47,7 @@ struct zebra_privs_t ripd_privs = {
.cap_num_i = 0};
/* Master of threads. */
-struct event_master *master;
+struct event_loop *master;
static struct frr_daemon_info ripd_di;
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c
index d6db7f982..0e5d4d54c 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -135,7 +135,7 @@ static struct variable rip_variables[] = {
{RIP2PEERRCVBADPACKETS, COUNTER, RONLY, rip2PeerTable, 3, {4, 1, 5}},
{RIP2PEERRCVBADROUTES, COUNTER, RONLY, rip2PeerTable, 3, {4, 1, 6}}};
-extern struct event_master *master;
+extern struct event_loop *master;
static uint8_t *rip2Globals(struct variable *v, oid name[], size_t *length,
int exact, size_t *var_len,
@@ -553,7 +553,7 @@ static uint8_t *rip2PeerTable(struct variable *v, oid name[], size_t *length,
}
/* Register RIPv2-MIB. */
-static int rip_snmp_init(struct event_master *master)
+static int rip_snmp_init(struct event_loop *master)
{
rip_ifaddr_table = route_table_init();
diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c
index 3904c9e4b..35c4b1f1b 100644
--- a/ripd/rip_zebra.c
+++ b/ripd/rip_zebra.c
@@ -223,7 +223,7 @@ zclient_handler *const rip_handlers[] = {
[ZEBRA_REDISTRIBUTE_ROUTE_DEL] = rip_zebra_read_route,
};
-void rip_zclient_init(struct event_master *master)
+void rip_zclient_init(struct event_loop *master)
{
/* Set default value to the zebra client structure. */
zclient = zclient_new(master, &zclient_options_default, rip_handlers,
diff --git a/ripd/ripd.h b/ripd/ripd.h
index 1b41ffab1..6cde37148 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -418,7 +418,7 @@ extern void rip_if_init(void);
extern void rip_route_map_init(void);
extern void rip_zebra_vrf_register(struct vrf *vrf);
extern void rip_zebra_vrf_deregister(struct vrf *vrf);
-extern void rip_zclient_init(struct event_master *);
+extern void rip_zclient_init(struct event_loop *);
extern void rip_zclient_stop(void);
extern int if_check_address(struct rip *rip, struct in_addr addr);
extern struct rip *rip_lookup_by_vrf_id(vrf_id_t vrf_id);
@@ -509,7 +509,7 @@ extern struct zebra_privs_t ripd_privs;
extern struct rip_instance_head rip_instances;
/* Master thread structure. */
-extern struct event_master *master;
+extern struct event_loop *master;
DECLARE_HOOK(rip_ifaddr_add, (struct connected * ifc), (ifc));
DECLARE_HOOK(rip_ifaddr_del, (struct connected * ifc), (ifc));