Commit af576b56 authored by Simon Kelley's avatar Simon Kelley

Tidy up - no functional change.

parent 54dd393f
...@@ -188,7 +188,7 @@ int iface_enumerate(int family, void *parm, int (*callback)()) ...@@ -188,7 +188,7 @@ int iface_enumerate(int family, void *parm, int (*callback)())
if (h->nlmsg_seq != seq || h->nlmsg_pid != netlink_pid || h->nlmsg_type == NLMSG_ERROR) if (h->nlmsg_seq != seq || h->nlmsg_pid != netlink_pid || h->nlmsg_type == NLMSG_ERROR)
{ {
/* May be multicast arriving async */ /* May be multicast arriving async */
if (nl_async(h)) if (nl_async(h) && option_bool(OPT_CLEVERBIND))
newaddr = 1; newaddr = 1;
} }
else if (h->nlmsg_type == NLMSG_DONE) else if (h->nlmsg_type == NLMSG_DONE)
...@@ -319,7 +319,7 @@ void netlink_multicast(void) ...@@ -319,7 +319,7 @@ void netlink_multicast(void)
if ((len = netlink_recv()) != -1) if ((len = netlink_recv()) != -1)
for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len))
if (nl_async(h)) if (nl_async(h) && option_bool(OPT_CLEVERBIND))
newaddr = 1; newaddr = 1;
/* restore non-blocking status */ /* restore non-blocking status */
...@@ -357,7 +357,7 @@ static int nl_async(struct nlmsghdr *h) ...@@ -357,7 +357,7 @@ static int nl_async(struct nlmsghdr *h)
iface_enumerate and can't re-enter it now */ iface_enumerate and can't re-enter it now */
send_alarm(0, 0); send_alarm(0, 0);
} }
return !!option_bool(OPT_CLEVERBIND); /* clever bind mode - rescan */ return 1; /* clever bind mode - rescan */
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment