From: Alexandros C. Couloumbis Date: Sat, 17 Jul 2010 10:17:58 +0000 (+0000) Subject: net/bird: allow BIRD to support Unique Local Unicast Address (RFC 4193) type IPv6... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02532f3df80bfd6792f43468a148d6cd8f2953e5;p=openwrt%2Fsvn-archive%2Farchive.git net/bird: allow BIRD to support Unique Local Unicast Address (RFC 4193) type IPv6 addresses SVN-Revision: 22243 --- diff --git a/net/bird/patches/0002-ula_ipv6.patch b/net/bird/patches/0002-ula_ipv6.patch new file mode 100644 index 0000000000..a9fc6c9fb3 --- /dev/null +++ b/net/bird/patches/0002-ula_ipv6.patch @@ -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;