From 5d71d8342096fcb45054a9f94ad70da26aab7400 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 24 Mar 2012 14:40:42 +0000 Subject: [PATCH] Listen on ICMP6 file decriptor even when on ra-only only in use. --- src/dnsmasq.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 8663aa3..92084a8 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -693,12 +693,12 @@ int main (int argc, char **argv) { FD_SET(daemon->dhcp6fd, &rset); bump_maxfd(daemon->dhcp6fd, &maxfd); - - if (daemon->ra_contexts) - { - FD_SET(daemon->icmp6fd, &rset); - bump_maxfd(daemon->icmp6fd, &maxfd); - } + } + + if (daemon->ra_contexts) + { + FD_SET(daemon->icmp6fd, &rset); + bump_maxfd(daemon->icmp6fd, &maxfd); } #endif