summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_nhs.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-02-11 21:29:57 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-07 16:21:01 +0100
commit819dc8bbbc778fc0df326c687dcdda4c2fd2b683 (patch)
tree4d543b9623d1ce81cc45ced96906dd0acd7f013a /nhrpd/nhrp_nhs.c
parentnhrpd: implement next hop resolution protocol (diff)
downloadfrr-819dc8bbbc778fc0df326c687dcdda4c2fd2b683.tar.xz
frr-819dc8bbbc778fc0df326c687dcdda4c2fd2b683.zip
nhrpd: adapt to API changes
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/nhrp_nhs.c')
-rw-r--r--nhrpd/nhrp_nhs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c
index d463e0625..10245d308 100644
--- a/nhrpd/nhrp_nhs.c
+++ b/nhrpd/nhrp_nhs.c
@@ -14,6 +14,9 @@
#include "nhrpd.h"
#include "nhrp_protocol.h"
+DEFINE_MTYPE_STATIC(NHRPD, NHRP_NHS, "NHRP next hop server")
+DEFINE_MTYPE_STATIC(NHRPD, NHRP_REGISTRATION, "NHRP registration entries")
+
static int nhrp_nhs_resolve(struct thread *t);
struct nhrp_registration {
@@ -359,7 +362,7 @@ void nhrp_nhs_terminate(void)
struct listnode *node;
afi_t afi;
- for (ALL_LIST_ELEMENTS_RO(iflist, node, ifp)) {
+ for (ALL_LIST_ELEMENTS_RO(vrf_iflist (VRF_DEFAULT), node, ifp)) {
nifp = ifp->info;
for (afi = 0; afi < AFI_MAX; afi++) {
list_for_each_entry_safe(nhs, tmp, &nifp->afi[afi].nhslist_head, nhslist_entry)