aboutgitcodebugslistschat
path: root/dhcpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6.c')
-rw-r--r--dhcpv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dhcpv6.c b/dhcpv6.c
index c4f7a9a..19c7a62 100644
--- a/dhcpv6.c
+++ b/dhcpv6.c
@@ -461,6 +461,9 @@ int dhcpv6(struct ctx *c, struct ethhdr *eh, size_t len)
if (!uh || proto != IPPROTO_UDP || uh->dest != htons(547))
return 0;
+ if (c->no_dhcpv6)
+ return 1;
+
if (!IN6_IS_ADDR_MULTICAST(&ip6h->daddr))
return -1;