From fd4714bb2dfec0fadf5b49f21487f37f4613dc0f Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Sat, 30 Dec 2023 11:32:55 +0000 Subject: [PATCH] do not delegate ULA prefixes --- src/dhcpv6-ia.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index edd7823..8011a27 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -674,6 +674,12 @@ static size_t build_ia(uint8_t *buf, size_t buflen, uint16_t status, o_ia_p.addr.s6_addr32[1] |= htonl(a->assigned_subnet_id); o_ia_p.addr.s6_addr32[2] = o_ia_p.addr.s6_addr32[3] = 0; + /* Awful hack: Do NOT delegate local ULA prefixes. + They confuse my Sky VOIP box. Should be able to do this + on a per interface or even per client basis. */ + if (o_ia_p.addr.s6_addr[0] == 0xFD) + continue; + if (!valid_prefix_length(a, addrs[i].prefix_len)) continue; -- 2.30.2