[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.194 and 1.195

version 1.194, 2018/02/19 23:42:29 version 1.195, 2018/02/21 19:57:21
Line 73 
Line 73 
 }  }
   
 # Create interface $1 if it does not yet exist.  # Create interface $1 if it does not yet exist.
   # Usage: ifcreate if1
 ifcreate() {  ifcreate() {
         local _if=$1          local _if=$1
   
Line 80 
Line 81 
 }  }
   
 # Create interfaces for network pseudo-devices referred to by hostname.if files.  # Create interfaces for network pseudo-devices referred to by hostname.if files.
   # Usage: vifscreate
 vifscreate() {  vifscreate() {
         local _vif _hn _if          local _vif _hn _if
   
Line 166 
Line 168 
         done          done
 }  }
   
 # Parse /etc/mygate and add default routes for IPv4 and IPv6  # Parse /etc/mygate and add default routes for IPv4 and IPv6.
 # Usage: defaultroute  # Usage: defaultroute
 defaultroute() {  defaultroute() {
         local _cmd;          local _cmd;
Line 216 
Line 218 
         exit 1          exit 1
 fi  fi
   
   # Load key material for the generation of IPv6 Semantically Opaque Interface
   # Identifiers (SOII) used for link local and SLAAC addresses.
 $PRINT_ONLY || [[ ! -f /etc/soii.key ]] ||  $PRINT_ONLY || [[ ! -f /etc/soii.key ]] ||
         sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)"          sysctl -q "net.inet6.ip6.soiikey=$(</etc/soii.key)"
   
Line 236 
Line 240 
 # automatically invokes the IPv6 address ::1.  # automatically invokes the IPv6 address ::1.
 ifconfig lo0 inet 127.0.0.1/8  ifconfig lo0 inet 127.0.0.1/8
   
   # IPv6 configuration.
 if ifconfig lo0 inet6 >/dev/null 2>&1; then  if ifconfig lo0 inet6 >/dev/null 2>&1; then
         # IPv6 configurations.  
         ip6kernel=YES          ip6kernel=YES
   
         # Disallow link-local unicast dest without outgoing scope identifiers.          # Disallow link-local unicast dest without outgoing scope identifiers.
Line 282 
Line 286 
         ip6kernel=NO          ip6kernel=NO
 fi  fi
   
 # Create all the pseudo interfaces up front  # Create all the pseudo interfaces up front.
 vifscreate  vifscreate
   
 # Configure all the non-loopback interfaces which we know about, but  # Configure all the non-loopback interfaces which we know about, but
Line 294 
Line 298 
 # Configure all the carp interfaces which we know about before default route.  # Configure all the carp interfaces which we know about before default route.
 ifmstart "trunk svlan vlan carp pppoe"  ifmstart "trunk svlan vlan carp pppoe"
   
 # Look for default routes in /etc/mygate.  # Set default routes for IPv4 and IPv6.
 defaultroute  defaultroute
   
 # Multicast routing.  # Multicast routing.
Line 310 
Line 314 
 ifmstart "tun tap gif etherip gre egre mobileip pflow"  ifmstart "tun tap gif etherip gre egre mobileip pflow"
   
 if [[ $ip6kernel == YES ]]; then  if [[ $ip6kernel == YES ]]; then
         # This is to make sure DAD is completed before going further.          # Ensure IPv6 Duplicate Address Detection (DAD) is completed.
         count=0          count=0
         while ((count++ < 10 && $(sysctl -n net.inet6.ip6.dad_pending) != 0)); do          while ((count++ < 10 && $(sysctl -n net.inet6.ip6.dad_pending) != 0)); do
                 sleep 1                  sleep 1

Legend:
Removed from v.1.194  
changed lines
  Added in v.1.195