From 12949aa0c0f1f7ddc084905f347430a9e23ef63e Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Fri, 4 Feb 2022 22:24:00 +0000 Subject: [PATCH] Ask netlink for new address events unconditionally. The circumstances under which actions occur depending on configuration is now controlled only by newaddress() in network.c --- src/netlink.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/netlink.c b/src/netlink.c index ae1426c..da82943 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -66,17 +66,10 @@ char *netlink_init(void) addr.nl_pad = 0; addr.nl_pid = 0; /* autobind */ addr.nl_groups = RTMGRP_IPV4_ROUTE; - if (option_bool(OPT_CLEVERBIND)) - addr.nl_groups |= RTMGRP_IPV4_IFADDR; + addr.nl_groups |= RTMGRP_IPV4_IFADDR; addr.nl_groups |= RTMGRP_IPV6_ROUTE; - if (option_bool(OPT_CLEVERBIND)) - addr.nl_groups |= RTMGRP_IPV6_IFADDR; + addr.nl_groups |= RTMGRP_IPV6_IFADDR; -#ifdef HAVE_DHCP6 - if (daemon->doing_ra || daemon->doing_dhcp6) - addr.nl_groups |= RTMGRP_IPV6_IFADDR; -#endif - /* May not be able to have permission to set multicast groups don't die in that case */ if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1) {