diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-05-19 13:08:35 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-05-19 13:32:05 +0200 |
commit | 896868a63ea796e507498917686a07099d4353a8 (patch) | |
tree | 4163074c5b5c238e569456ddfd52227bc90ea9f2 /nhrpd/linux.c | |
parent | ldpd: use frr_init() (diff) | |
download | frr-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.c | 8 |
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; } |