aboutsummaryrefslogtreecommitdiff
path: root/ipv6
diff options
context:
space:
mode:
authorEike Ritter <git@rittere.co.uk>2020-08-04 22:12:12 +0100
committerEike Ritter <git@rittere.co.uk>2020-08-04 22:46:08 +0100
commit1dbdbcc1b6774cac332851801d56728f51901666 (patch)
treed12d2c9d74a46b81038b8d9bcbb4fab00d556d30 /ipv6
parentd7a6bb0621de92ab18805d6944906c18484deb1f (diff)
tayga: Added 64:ff9b:1::/48 as well-known prefix for NAT64 (RFC 8215)
Signed-off-by: Eike Ritter <git@rittere.co.uk>
Diffstat (limited to 'ipv6')
-rw-r--r--ipv6/tayga/patches/003-RFC8215.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ipv6/tayga/patches/003-RFC8215.patch b/ipv6/tayga/patches/003-RFC8215.patch
new file mode 100644
index 000000000..3fbe61260
--- /dev/null
+++ b/ipv6/tayga/patches/003-RFC8215.patch
@@ -0,0 +1,14 @@
+diff -Naur tayga-0.9.2.orig/addrmap.c tayga-0.9.2/addrmap.c
+--- tayga-0.9.2.orig/addrmap.c 2011-05-25 15:11:30.000000000 +0100
++++ tayga-0.9.2/addrmap.c 2020-07-04 16:24:23.397081572 +0100
+@@ -44,7 +44,9 @@
+ int validate_ip6_addr(const struct in6_addr *a)
+ {
+ /* Well-known prefix for NAT64 */
+- if (a->s6_addr32[0] == WKPF && !a->s6_addr32[1] && !a->s6_addr32[2])
++ if (a->s6_addr32[0] == WKPF &&
++ (!a->s6_addr32[1] || (a->s6_addr16[2] == htonl(0x0001)))
++ && !a->s6_addr32[2])
+ return 0;
+
+ /* Reserved per RFC 2373 */