summaryrefslogtreecommitdiff
path: root/src/dhcp6.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2023-04-12 22:55:14 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2023-04-12 22:55:14 +0100
commitaaba66efbd3b4e7283993ca3718df47706a8549b (patch)
treee17877af52d9ae0e71c3294127ad46a642f813f3 /src/dhcp6.c
parent597378cdf55b248a54b930fa31acbad7415aaefd (diff)
downloaddnsmasq-aaba66efbd3b4e7283993ca3718df47706a8549b.tar.gz
Add --no-dhcpv4-interface and --no-dhcpv6-interface options.
Diffstat (limited to 'src/dhcp6.c')
-rw-r--r--src/dhcp6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcp6.c b/src/dhcp6.c
index 9ae92da..7eeef03 100644
--- a/src/dhcp6.c
+++ b/src/dhcp6.c
@@ -159,7 +159,8 @@ void dhcp6_packet(time_t now)
return;
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
- if (tmp->name && wildcard_match(tmp->name, ifr.ifr_name))
+ if (tmp->name && (tmp->flags & INAME_6) &&
+ wildcard_match(tmp->name, ifr.ifr_name))
return;
parm.current = NULL;