diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-12 22:55:14 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-04-12 22:55:14 +0100 |
commit | aaba66efbd3b4e7283993ca3718df47706a8549b (patch) | |
tree | e17877af52d9ae0e71c3294127ad46a642f813f3 /src/radv.c | |
parent | 597378cdf55b248a54b930fa31acbad7415aaefd (diff) | |
download | dnsmasq-aaba66efbd3b4e7283993ca3718df47706a8549b.tar.gz |
Add --no-dhcpv4-interface and --no-dhcpv6-interface options.
Diffstat (limited to 'src/radv.c')
-rw-r--r-- | src/radv.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -186,7 +186,8 @@ void icmp6_packet(time_t now) return; for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) - if (tmp->name && wildcard_match(tmp->name, interface)) + if (tmp->name && (tmp->flags & INAME_6) && + wildcard_match(tmp->name, interface)) return; if (packet[1] != 0) @@ -835,7 +836,8 @@ time_t periodic_ra(time_t now) { struct iname *tmp; for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) - if (tmp->name && wildcard_match(tmp->name, param.name)) + if (tmp->name && (tmp->flags & INAME_6) && + wildcard_match(tmp->name, param.name)) break; if (!tmp) { @@ -934,7 +936,8 @@ static int iface_search(struct in6_addr *local, int prefix, return 1; for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) - if (tmp->name && wildcard_match(tmp->name, param->name)) + if (tmp->name && (tmp->flags & INAME_6) && + wildcard_match(tmp->name, param->name)) return 1; for (context = daemon->dhcp6; context; context = context->next) |