Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 2010 01:35:09 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/etc network.subr src/etc/defaults rc.conf src/etc/rc.d ip6addrctl netif netoptions src/share/man/man5 rc.conf.5
Message-ID:  <201004090139.o391dgN1049774@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dougb       2010-04-09 01:35:09 UTC

  FreeBSD src repository

  Modified files:
    etc                  network.subr 
    etc/defaults         rc.conf 
    etc/rc.d             ip6addrctl netif netoptions 
    share/man/man5       rc.conf.5 
  Log:
  SVN rev 206408 on 2010-04-09 01:35:09Z by dougb
  
  Improve the handling of IPv6 configuration in rc.d. The ipv6_enable
  and ipv6_ifconfig_<interface> options have already been deprecated,
  these changes do not alter that.
  
  With these changes any value set for ipv6_enable will emit a
  warning. In order to avoid a POLA violation for the deprecation
  of the option ipv6_enable=NO will still disable configuration
  for all interfaces other than lo0. ipv6_enable=YES will not have
  any effect, but will emit an additional warning. Support and
  warnings for this option will be removed in FreeBSD 10.x.
  
  Consistent with the current code, in order for IPv6 to be configured
  on an interface (other than lo0) an ifconfig_<interface>_ipv6
  option will have to be added to /etc/rc.conf[.local].
  
  1. Clean up and minor optimizations for the following functions:
  ifconfig_up (the ipv6 elements)
  ipv6if
  ipv6_autoconfif
  get_if_var
  _ifconfig_getargs
  The cleanups generally were to move the "easy" tests earlier in the
  functions, and consolidate duplicate code.
  
  2. Stop overloading ipv6_prefer with the ability to disable IPv6
  configuration.
  
  3. Remove noafif() which was only ever called from ipv6_autoconfif.
  Instead, simplify and integrate the tests into that function, and
  convert the test to use is_wired_interface() instead of listing
  wireless interfaces explicitly.
  
  4. Integrate backwards compatibility for ipv6_ifconfig_<interface>
  into _ifconfig_getargs. This dramatically simplifies the code in
  all of the callers, and avoids a lot of other code duplication.
  
  5. In rc.d/netoptions, add code for an ipv6_privacy option to use
  RFC 4193 style pseudo-random addresses (this is what windows does
  by default, FYI).
  
  6. Add support for the [NO]RTADV options in ifconfig_getargs() and
  ipv6_autoconfif(). In the latter, include support for the explicit
  addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done
  in the current code.
  
  7. In rc.d/netif add a warning if $ipv6_enable is set, and remove
  the set_rcvar_obsolete for it. Also remove the latter from
  rc.d/ip6addrctl.
  
  8. In /etc/defaults/rc.conf:
  
  Add an example for RTADV configuration.
  
  Set ipv6_network_interfaces to AUTO.
  
  Switch ipv6_prefer to YES. If ipv6_enable is not set this will have
  no effect.
  
  Add a default for ipv6_privacy (NO).
  
  9. Document all of this in rc.conf.5.
  
  Revision  Changes    Path
  1.372     +4 -3      src/etc/defaults/rc.conf
  1.207     +78 -121   src/etc/network.subr
  1.9       +0 -2      src/etc/rc.d/ip6addrctl
  1.36      +8 -1      src/etc/rc.d/netif
  1.152     +7 -0      src/etc/rc.d/netoptions
  1.373     +74 -55    src/share/man/man5/rc.conf.5



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