View | Details | Raw Unified | Return to bug 263986
Collapse All | Expand All

(-)b/sys/netinet6/in6.h (+2 lines)
Lines 297-302 extern const struct in6_addr in6addr_linklocal_allv2routers; Link Here
297
       (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
297
       (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
298
#define IN6_IS_ADDR_SITELOCAL(a)       \
298
#define IN6_IS_ADDR_SITELOCAL(a)       \
299
       (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
299
       (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
300
#define IN6_IS_ADDR_ULA(a)     \
301
       ((a)->s6_addr[0] == 0xfd)
300
/*
302
/*
301
 * Multicast
303
 * Multicast
(-)b/sys/netinet6/nd6_rtr.c (+2 lines)
Lines 1892-1897 pfxlist_onlink_check(void) Link Here
1892
               LIST_FOREACH(pr, &V_nd_prefix, ndpr_entry) {
1892
               LIST_FOREACH(pr, &V_nd_prefix, ndpr_entry) {
1893
                       /* XXX: a link-local prefix should never be detached */
1893
                       /* XXX: a link-local prefix should never be detached */
1894
                       if (IN6_IS_ADDR_LINKLOCAL(&pr->ndpr_prefix.sin6_addr) ||
1894
                       if (IN6_IS_ADDR_LINKLOCAL(&pr->ndpr_prefix.sin6_addr) ||
1895
                            IN6_IS_ADDR_ULA(&pr->ndpr_prefix.sin6_addr) ||     /* FB: wild hack to avoid deletion of link routes for local provided prefix */
1895
                           pr->ndpr_raf_onlink == 0 ||
1896
                           pr->ndpr_raf_onlink == 0 ||
1896
                           pr->ndpr_raf_auto == 0)
1897
                           pr->ndpr_raf_auto == 0)
1897
                               continue;
1898
                               continue;
Lines 1928-1933 pfxlist_onlink_check(void) Link Here
1928
               int e;
1929
               int e;
1929
               if (IN6_IS_ADDR_LINKLOCAL(&pr->ndpr_prefix.sin6_addr) ||
1930
               if (IN6_IS_ADDR_LINKLOCAL(&pr->ndpr_prefix.sin6_addr) ||
1931
                    IN6_IS_ADDR_ULA(&pr->ndpr_prefix.sin6_addr) ||     /* FB: wild hack to avoid deletion of link routes for local provided prefix */
1930
                   pr->ndpr_raf_onlink == 0 ||
1932
                   pr->ndpr_raf_onlink == 0 ||
1931
                   pr->ndpr_raf_auto == 0)
1933
                   pr->ndpr_raf_auto == 0)
1932
                       continue;
1934
                       continue;

Return to bug 263986