summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ripd/rip_main.c5
-rw-r--r--ripd/ripd.c24
-rw-r--r--ripd/ripd.h1
3 files changed, 0 insertions, 30 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 23981d6d66..5db9c4b7e9 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -71,14 +71,9 @@ static struct frr_daemon_info ripd_di;
static void sighup(void)
{
zlog_info("SIGHUP received");
- rip_clean();
- rip_reset();
- zlog_info("ripd restarting!");
/* Reload config file. */
vty_read_config(NULL, ripd_di.config_file, config_default);
-
- /* Try to return to normal operation. */
}
/* SIGINT handler. */
diff --git a/ripd/ripd.c b/ripd/ripd.c
index c0474ea93f..5dab61b4e1 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -3374,30 +3374,6 @@ void rip_clean(void)
rip_redistribute_clean();
}
-/* Reset all values to the default settings. */
-void rip_reset(void)
-{
- /* Reset global counters. */
- rip_global_route_changes = 0;
- rip_global_queries = 0;
-
- /* Call ripd related reset functions. */
- rip_debug_reset();
- rip_route_map_reset();
-
- /* Call library reset functions. */
- vty_reset();
- access_list_reset();
- prefix_list_reset();
-
- distribute_list_reset();
-
- rip_interfaces_reset();
- rip_distance_reset();
-
- rip_zclient_reset();
-}
-
static void rip_if_rmap_update(struct if_rmap *if_rmap)
{
struct interface *ifp;
diff --git a/ripd/ripd.h b/ripd/ripd.h
index faf0d6f3b1..6af99ada21 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -373,7 +373,6 @@ struct rip_offset_list {
/* Prototypes. */
extern void rip_init(void);
-extern void rip_reset(void);
extern void rip_clean(void);
extern void rip_clean_network(void);
extern void rip_interfaces_clean(void);