]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripd: remove leftovers from the old sighup handler
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 29 Nov 2018 19:05:40 +0000 (17:05 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 3 Dec 2018 15:47:58 +0000 (13:47 -0200)
Commit bc1bdde2f6 removed the rip_reset() function but didn't remove
other functions that were only called by rip_reset(). Remove them
now (dead code).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripd/rip_debug.c
ripd/rip_debug.h
ripd/rip_interface.c
ripd/rip_routemap.c
ripd/rip_zebra.c
ripd/ripd.h

index 2ce289e38f62a4c984e3d771fe979a0b5a09b251..3356d99c2ab8651b522ec61a870c575c663a7e21 100644 (file)
@@ -204,13 +204,6 @@ static int config_write_debug(struct vty *vty)
        return write;
 }
 
-void rip_debug_reset(void)
-{
-       rip_debug_event = 0;
-       rip_debug_packet = 0;
-       rip_debug_zebra = 0;
-}
-
 void rip_debug_init(void)
 {
        rip_debug_event = 0;
index c3b15d2e1524d2bf93a8fe66e52bc1385df73662..3d819ccd0ba325ae5fa0d458f2df026e5def3f64 100644 (file)
@@ -47,6 +47,5 @@ extern unsigned long rip_debug_packet;
 extern unsigned long rip_debug_zebra;
 
 extern void rip_debug_init(void);
-extern void rip_debug_reset(void);
 
 #endif /* _ZEBRA_RIP_DEBUG_H */
index 3d11ba1464043d6b2dec292cd457e8d316a4c862..96b1cd89387d0a5ab30b0385a66d6104da47b11c 100644 (file)
@@ -531,15 +531,6 @@ static void rip_interface_reset(struct rip_interface *ri)
        rip_interface_clean(ri);
 }
 
-void rip_interfaces_reset(void)
-{
-       struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
-       struct interface *ifp;
-
-       FOR_ALL_INTERFACES (vrf, ifp)
-               rip_interface_reset(ifp->info);
-}
-
 int rip_if_down(struct interface *ifp)
 {
        struct route_node *rp;
index b69b2466d5c9c61c0de95170a9ce0252e97318ad..b34f944c9e62ab23069c8cdcca84293789c9dd2f 100644 (file)
@@ -517,11 +517,6 @@ static struct route_map_rule_cmd route_set_tag_cmd = {
 #define MATCH_STR "Match values from routing table\n"
 #define SET_STR "Set values in destination routing protocol\n"
 
-void rip_route_map_reset()
-{
-       ;
-}
-
 /* Route-map init */
 void rip_route_map_init()
 {
index 20f543a2588981b91bf8fe5faa34a9da4b0202cf..fff8681775a8c997f94b37272956d7b063cb6fae 100644 (file)
@@ -147,11 +147,6 @@ static int rip_zebra_read_route(int command, struct zclient *zclient,
        return 0;
 }
 
-void rip_zclient_reset(void)
-{
-       zclient_reset(zclient);
-}
-
 void rip_redistribute_conf_update(int type)
 {
        zclient_redistribute(ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP, type,
index d4fb230a20a504e6331cf9f22302c80f50305e6f..91fab2a7a2e3d63b190b8be002db5c88f25e1393 100644 (file)
@@ -376,17 +376,14 @@ extern void rip_init(void);
 extern void rip_clean(void);
 extern void rip_clean_network(void);
 extern void rip_interfaces_clean(void);
-extern void rip_interfaces_reset(void);
 extern int rip_passive_nondefault_set(const char *ifname);
 extern int rip_passive_nondefault_unset(const char *ifname);
 extern void rip_passive_nondefault_clean(void);
 extern void rip_if_init(void);
 extern void rip_if_down_all(void);
 extern void rip_route_map_init(void);
-extern void rip_route_map_reset(void);
 extern void rip_zclient_init(struct thread_master *);
 extern void rip_zclient_stop(void);
-extern void rip_zclient_reset(void);
 extern int if_check_address(struct in_addr addr);
 extern int rip_create(int socket);