Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2011 02:37:38 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netinet6 in6.c nd6.c
Message-ID:  <201106060237.p562bpvo064838@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

hrs         2011-06-06 02:37:38 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet6         in6.c nd6.c 
  Log:
  SVN rev 222730 on 2011-06-06 02:37:38Z by hrs
  
  - Make the code more proactively clear an ND6_IFF_IFDISABLED flag when
    an explicit action for INET6 configuration happens.  The changes are:
  
    1. When an ND6 flag is changed via SIOCSIFINFO_FLAGS ioctl,
       setting ND6_IFF_ACCEPT_RTADV and/or ND6_IFF_AUTO_LINKLOCAL now triggers
       an attempt to clear the ND6_IFF_IFDISABLED flag.
  
    2. When an AF_INET6 address is added successfully to an interface and
       it is marked as ND6_IFF_IFDISABLED, an attempt to clear the
       ND6_IFF_IFDISABLED happens.
  
    This simplifies ND6_IFF_IFDISABLED flag manipulation by users via ifconfig(8);
    in most cases manual configuration is no longer needed.
  
  - When ND6_IFF_AUTO_LINKLOCAL is set and no link-local address is assigned to
    an interface, SIOCSIFINFO_FLAGS ioctl now calls in6_ifattach() to configure
    a link-local address.
  
    This change ensures link-local address configuration when "ifconfig IF inet6"
    command is invoked.  For example, "ifconfig IF inet6 auto_linklocal" now
    always try to configure an LL addr even if ND6_IFF_AUTO_LINKLOCAL is already
    set to 1 (i.e. down/up cycle is no longer needed).
  
  Reviewed by:    bz
  
  Revision  Changes    Path
  1.137     +25 -1     src/sys/netinet6/in6.c
  1.145     +30 -0     src/sys/netinet6/nd6.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106060237.p562bpvo064838>