mirror of
https://github.com/openwrt/routing.git
synced 2025-12-22 19:04:33 +04:00
net/bird: allow BIRD to support Unique Local Unicast Address (RFC 4193) type IPv6 addresses
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/packages@22243 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
committed by
Jo-Philipp Wich
parent
ce91407257
commit
51e90db672
11
net/bird/patches/0002-ula_ipv6.patch
Normal file
11
net/bird/patches/0002-ula_ipv6.patch
Normal file
@@ -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;
|
||||||
Reference in New Issue
Block a user