source: trunk/target/linux/generic/patches-2.6.32/301-ipv6_send_rs_when_forwarding.patch @ 24195

Last change on this file since 24195 was 24195, checked in by jow, 5 years ago

[kernel] backport two changes from kernel.org:
65e9b62d4503849b10bedfc29bff0473760cc597
ipv6: add special mode accept_ra=2 to accept RA while configured as router

c3bccac2fa76f1619dfe4fb7b9bee69de7f066d8
ipv6: add special mode forwarding=2 to send RS while configured as router

File size: 428 bytes
  • net/ipv6/addrconf.c

    a b static void addrconf_dad_completed(struc 
    28882888           start sending router solicitations. 
    28892889         */ 
    28902890 
    2891         if (ifp->idev->cnf.forwarding == 0 && 
     2891        if ((ifp->idev->cnf.forwarding == 0 || 
     2892             ifp->idev->cnf.forwarding == 2) && 
    28922893            ifp->idev->cnf.rtr_solicits > 0 && 
    28932894            (dev->flags&IFF_LOOPBACK) == 0 && 
    28942895            (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { 
Note: See TracBrowser for help on using the repository browser.