git: netinet6: Improve handling of auto link-local address configuration

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


commit fca046ffd622e08c1b9b73e7e73d272f6cee9c7d
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Mar 2 23:59:12 2024 +0800

    netinet6: Improve handling of auto link-local address configuration
    
    Add a new per-interface flag 'ND6_IFF_AUTO_LINKLOCAL' and convert the
    sysctl 'net.inet6.ip6.auto_linklocal' to be the default value of this
    new per-interface flag.  This allows to fine control the automatic
    link-local address configuration on a per-interface basis.
    
    Update ndp(8) to support to toggle the 'ND6_IFF_AUTO_LINKLOCAL' flag by
    adding the 'auto_linklocal' option.
    
    Document the 'IPV6CTL_AUTO_LINKLOCAL' option in the inet6(4) man page.
    
    Derived from FreeBSD.

Summary of changes:
 share/man/man4/inet6.4      |  7 ++++++-
 sys/netinet6/in6_ifattach.c | 19 +++----------------
 sys/netinet6/in6_proto.c    | 12 ++++++++++--
 sys/netinet6/nd6.c          | 10 ++++++++++
 sys/netinet6/nd6.h          |  3 ++-
 usr.sbin/ndp/ndp.8          | 11 ++++++++++-
 usr.sbin/ndp/ndp.c          |  7 +++++++
 7 files changed, 48 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fca046ffd622e08c1b9b73e7e73d272f6cee9c7d


-- 
DragonFly BSD source repository


More information about the Commits mailing list