commit | ef2d5d100431031c32ea35b3c834b46cff16f511 | [log] [tgz] |
---|---|---|
author | Phil Laverdiere <phil_laverdiere@securecomputing.com> | Mon Jan 02 20:04:26 2012 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Tue Feb 21 21:35:07 2012 +0400 |
tree | c327572a6ea15d00abc8e70b45f41affb0b2d21f | |
parent | 4c78376f96cd2ca56f1c6476b76fd659654431f5 [diff] [blame] |
ospf6d: remove own routes on SIGTERM (BZ#448)
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index bb091d4..3fdbda1 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c
@@ -1889,4 +1889,11 @@ 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); +}