summaryrefslogtreecommitdiffstats
path: root/nhrpd/linux.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-05-19 13:08:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-05-19 13:32:05 +0200
commit896868a63ea796e507498917686a07099d4353a8 (patch)
tree4163074c5b5c238e569456ddfd52227bc90ea9f2 /nhrpd/linux.c
parentldpd: use frr_init() (diff)
downloadfrr-896868a63ea796e507498917686a07099d4353a8.tar.xz
frr-896868a63ea796e507498917686a07099d4353a8.zip
nhrpd: configure mgre ipv6 nd for nhrp
Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'nhrpd/linux.c')
-rw-r--r--nhrpd/linux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nhrpd/linux.c b/nhrpd/linux.c
index 1e9c69eb8..75a16eab3 100644
--- a/nhrpd/linux.c
+++ b/nhrpd/linux.c
@@ -138,16 +138,16 @@ static int linux_icmp_redirect_off(const char *iface)
int os_configure_dmvpn(unsigned int ifindex, const char *ifname, int af)
{
- int ret = -1;
+ int ret = 0;
switch (af) {
case AF_INET:
- ret = linux_icmp_redirect_off("all");
+ ret |= linux_icmp_redirect_off("all");
ret |= linux_icmp_redirect_off(ifname);
- ret |= netlink_configure_arp(ifindex, AF_INET);
- ret |= linux_configure_arp(ifname, 1);
break;
}
+ ret |= linux_configure_arp(ifname, 1);
+ ret |= netlink_configure_arp(ifindex, af);
return ret;
}