From e20f7ccd9e110fcd5deb945f8d23922efd8b0822 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 29 Mar 2011 00:29:35 +0100 Subject: Bring "ex" version up to date with 0.99.18 Release: 0.99.18ex14 Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.) --- lib/if.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index b1d0d49a..048ee1fb 100644 --- a/lib/if.c +++ b/lib/if.c @@ -878,3 +878,21 @@ if_init (void) memset (&if_master, 0, sizeof if_master); } + +void +if_terminate (void) +{ + for (;;) + { + struct interface *ifp; + + ifp = listnode_head (iflist); + if (ifp == NULL) + break; + + if_delete (ifp); + } + + list_delete (iflist); + iflist = NULL; +} -- cgit v1.2.3