Ticket #7631: addr2.patch

File addr2.patch, 627 bytes (added by mpadams, 8 years ago)

ULA patch for BIRD 1.2.3

  • lib/ipv6.c

    diff -urpN bird-1.2.3-/lib/ipv6.c bird-1.2.3/lib/ipv6.c
    old new ipv6_classify(ip_addr *a) 
    7373    return IADDR_HOST | SCOPE_LINK; 
    7474  if ((x & 0xffc00000) == 0xfec00000)        /* Site-Local Address */ 
    7575    return IADDR_HOST | SCOPE_SITE; 
     76  if ((x & 0xfe000000) == 0xfc000000)        /* Unique Local Unicast Address (RFC 4193) */ 
     77    return IADDR_HOST | SCOPE_SITE; 
    7678  if ((x & 0xff000000) == 0xff000000)        /* Multicast Address */ 
    7779    { 
    7880      unsigned int scope = (x >> 16) & 0x0f;