Skip to content

Instantly share code, notes, and snippets.

@daemonhorn
Last active January 2, 2023 15:24
Show Gist options
  • Save daemonhorn/83f8cdce3b3d1a7f85e3b28a5fb7a74f to your computer and use it in GitHub Desktop.
Save daemonhorn/83f8cdce3b3d1a7f85e3b28a5fb7a74f to your computer and use it in GitHub Desktop.
PfSense patch to wide-dhcp6 client to support IA_NA on IA_PD interface. This is a temporary workaround for FIOS IPv6 router.
--- prefixconf.c.orig 2017-02-28 19:06:15.000000000 +0000
+++ prefixconf.c 2022-02-13 19:16:41.144605000 +0000
@@ -201,20 +201,6 @@
if (sp->prefix.vltime != 0 && spcreate) {
for (pif = TAILQ_FIRST(iac_pd->pifc_head); pif;
pif = TAILQ_NEXT(pif, link)) {
- /*
- * The requesting router MUST NOT assign any delegated
- * prefixes or subnets from the delegated prefix(es) to
- * the link through which it received the DHCP message
- * from the delegating router.
- * [RFC3633 Section 12.1]
- */
- if (strcmp(pif->ifname, dhcpifp->ifname) == 0) {
- d_printf(LOG_INFO, FNAME,
- "skip %s as a prefix interface",
- dhcpifp->ifname);
- continue;
- }
-
add_ifprefix(sp, pinfo, pif);
}
}
@daemonhorn
Copy link
Author

Oh, and for the record, the FiOS branded router actually uses Roy Marples dhcpcd code, and sends the PD_EXCLUDE option, but my local FiOS DHCPv6 server ignores the PD_EXCLUDE option anyway, YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment