summaryrefslogtreecommitdiff
path: root/src/netlink.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2022-02-04 22:24:00 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2022-02-04 22:24:00 +0000
commit12949aa0c0f1f7ddc084905f347430a9e23ef63e (patch)
treecad9563855f8841af5ab3f1865e6776bc59a1219 /src/netlink.c
parent4333d5d93a8fb2c14ef3d9eefb1a13fb6ca8d9d5 (diff)
downloaddnsmasq-12949aa0c0f1f7ddc084905f347430a9e23ef63e.tar.gz
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
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c11
1 files 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)
{