From 1e49d194d01788afbc4b8216e27c794651a4facf Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 12 Aug 2021 15:42:43 +0200 Subject: passt, pasta: Introduce command-line options and port re-mapping Signed-off-by: Stefano Brivio --- dhcpv6.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dhcpv6.c') 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; -- cgit v1.2.3