From ef2d5d100431031c32ea35b3c834b46cff16f511 Mon Sep 17 00:00:00 2001 From: Phil Laverdiere Date: Mon, 2 Jan 2012 20:04:26 +0400 Subject: ospf6d: remove own routes on SIGTERM (BZ#448) --- ospf6d/ospf6d.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ospf6d/ospf6d.c') diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index bb091d4f..3fdbda18 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -1889,4 +1889,11 @@ ospf6_init (void) thread_add_read (master, ospf6_receive, NULL, ospf6_sock); } - +void +ospf6_clean (void) +{ + if (ospf6->route_table) + ospf6_route_remove_all (ospf6->route_table); + if (ospf6->brouter_table) + ospf6_route_remove_all (ospf6->brouter_table); +} -- cgit v1.2.1