From 2f38141f434e23292f84cefc33e8de76fb856147 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Thu, 29 Nov 2012 21:16:44 +0000 Subject: [PATCH] Don't elide code needed for --bind-dynamic if compiled without IPv6. --- src/netlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netlink.c b/src/netlink.c index fc9efef..9951ed5 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -371,9 +371,9 @@ static int nl_async(struct nlmsghdr *h) } return 0; } -#ifdef HAVE_DHCP6 else if (h->nlmsg_type == RTM_NEWADDR) { +#ifdef HAVE_DHCP6 /* force RAs to sync new network and pick up new interfaces. */ if (daemon->ra_contexts) { @@ -383,9 +383,9 @@ static int nl_async(struct nlmsghdr *h) iface_enumerate and can't re-enter it now */ send_alarm(0, 0); } - return 1; /* clever bind mode - rescan */ - } #endif + return 1; /* clever bind mode - rescan */ + } return 0; }