Author: hrs
Date: Mon Jun  6 03:37:33 2011
New Revision: 222733
URL: http://svn.freebsd.org/changeset/base/222733

Log:
  Remove "ifconfig IF inet6 -accept_rtadv" when ipv6_gateway_enable=YES because
  this is no longer needed.

Modified:
  head/etc/network.subr

Modified: head/etc/network.subr
==============================================================================
--- head/etc/network.subr       Mon Jun  6 03:06:43 2011        (r222732)
+++ head/etc/network.subr       Mon Jun  6 03:37:33 2011        (r222733)
@@ -100,25 +100,19 @@ ifconfig_up()
 
        # inet6 specific
        if afexists inet6; then
-               if ipv6if $1; then
-                       if checkyesno ipv6_gateway_enable; then
-                               _ipv6_opts="-accept_rtadv"
-                       fi
+               if checkyesno ipv6_activate_all_interfaces; then
+                       _ipv6_opts="-ifdisabled"
                else
-                       if checkyesno ipv6_activate_all_interfaces; then
-                               _ipv6_opts="-ifdisabled"
-                       else
-                               _ipv6_opts="ifdisabled"
-                       fi
-
-                       # backward compatibility: $ipv6_enable
-                       case $ipv6_enable in
-                       [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
-                               _ipv6_opts="${_ipv6_opts} accept_rtadv"
-                               ;;
-                       esac
+                       _ipv6_opts="ifdisabled"
                fi
 
+               # backward compatibility: $ipv6_enable
+               case $ipv6_enable in
+               [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
+                       _ipv6_opts="${_ipv6_opts} accept_rtadv"
+                       ;;
+               esac
+
                if [ -n "${_ipv6_opts}" ]; then
                        ifconfig $1 inet6 ${_ipv6_opts}
                fi
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to