net/bird: allow BIRD to support Unique Local Unicast Address (RFC 4193) type IPv6...
authorAlexandros C. Couloumbis <alex@ozo.com>
Sat, 17 Jul 2010 10:17:58 +0000 (10:17 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 8 Oct 2013 19:16:09 +0000 (19:16 +0000)
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/packages@22243 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/bird/patches/0002-ula_ipv6.patch [new file with mode: 0644]

diff --git a/net/bird/patches/0002-ula_ipv6.patch b/net/bird/patches/0002-ula_ipv6.patch
new file mode 100644 (file)
index 0000000..a9fc6c9
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/lib/ipv6.c
++++ b/lib/ipv6.c
+@@ -73,6 +73,8 @@ ipv6_classify(ip_addr *a)
+     return IADDR_HOST | SCOPE_LINK;
+   if ((x & 0xffc00000) == 0xfec00000)         /* Site-Local Address */
+     return IADDR_HOST | SCOPE_SITE;
++  if ((x & 0xfe000000) == 0xfc000000)         /* Unique Local Unicast Address (RFC 4193) */
++    return IADDR_HOST | SCOPE_SITE;
+   if ((x & 0xff000000) == 0xff000000)         /* Multicast Address */
+     {
+       unsigned int scope = (x >> 16) & 0x0f;