git: netinet6: Improve flexibility of receiving Router Advertisement

Aaron LI aly at crater.dragonflybsd.org
Sun Mar 3 00:50:51 PST 2024


commit 30152012e0a16634262829b116f460bb99962bfa
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Mar 3 15:57:05 2024 +0800

    netinet6: Improve flexibility of receiving Router Advertisement
    
    Convert the sysctl 'net.inet6.ip6.accept_rtadv' to be the default value
    of the per-interface flag 'ND6_IFF_ACCEPT_RTADV', making it no longer a
    global knob.  Now the receiving RA is allowed if ip6_forwarding==0 *and*
    'ND6_IFF_ACCEPT_RTADV' is set on that interface.
    
    ndp(8) already supports to toggle the 'ND6_IFF_ACCEPT_RTADV' flag via
    the 'accept_rtadv' option.
    
    Derived from FreeBSD.

Summary of changes:
 share/man/man4/inet6.4   |  3 ++-
 sys/netinet6/icmp6.c     |  2 +-
 sys/netinet6/in6_proto.c |  4 +++-
 sys/netinet6/ip6_var.h   |  2 +-
 sys/netinet6/nd6.c       | 20 +++++++++++---------
 sys/netinet6/nd6_nbr.c   |  4 +++-
 sys/netinet6/nd6_rtr.c   | 10 ++++------
 usr.sbin/ndp/ndp.8       |  6 ++----
 8 files changed, 27 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/30152012e0a16634262829b116f460bb99962bfa


-- 
DragonFly BSD source repository


More information about the Commits mailing list