diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-06 18:19:44 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-11-06 19:52:24 -0600 |
commit | 1a227126a525baec2030ec9cfc9cd8a503ba6c7a (patch) | |
tree | f726ff3ffee9737545f38261d6c5b0492f834b21 /rc.inet1 | |
parent | c9a9f841de46625aafec7879a5cc1780a3d87ee9 (diff) | |
download | slacknetsetup-1a227126a525baec2030ec9cfc9cd8a503ba6c7a.tar.xz |
Remove IP6ALIASES block. IP6ADDR->IP6ADDRS.
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -172,7 +172,7 @@ if_up() { # If the interface is a bridge, then create it first: [ -n "${BRNICS[$i]}" ] && br_open $i # Skip unconfigured interfaces: - if [ -z "${IPADDR[$i]}" ] && [ "${USE_DHCP[$i]}" != "yes" ] && [ -z "${IP6ADDR[$i]}" ] && \ + if [ -z "${IPADDR[$i]}" ] && [ "${USE_DHCP[$i]}" != "yes" ] && [ -z "${IP6ADDRS[$i]}" ] && \ [ "${USE_DHCP6[$i]}" != "yes" ] && [ "${USE_SLAAC[$i]}" != "yes" ]; then debug_log "skipping ${1} early, interface is not configured in /etc/rc.d/rc.inet1.conf" return @@ -327,22 +327,6 @@ if_up() { fi done fi - if [ -e /proc/sys/net/ipv6 ] && [ -n "${IP6ALIASES[$i]}" ]; then - # IPv6's Duplicate Address Detection (DAD) causes a race condition when bringing up interfaces, as - # described here: https://www.agwa.name/blog/post/beware_the_ipv6_dad_race_condition - # Disable DAD while bringing up the interface - but note that this means the loss of detection of a - # duplicate address. It's a trade off, unfortunately. - echo "0" >/proc/sys/net/ipv6/conf/$1/accept_dad - for ipalias in ${IP6ALIASES[$i]}; do - ip="${ipalias%/*}" - nm="${ipalias#*/}" - [ -z "$nm" ] || [ "$ip" == "$nm" ] && nm="64" - # Unlike IPv4, v6 addresses don't get a label: - echo "/etc/rc.d/rc.inet1: /sbin/ip -6 address add ${ip}/${nm} dev ${1}" | $LOGGER - /sbin/ip -6 address add ${ip}/${nm} dev ${1} || \ - echo "/etc/rc.d/rc.inet1: failed to add IP ${ip} to ${1}" | $LOGGER - done - fi # Force an MTU (possibly over-riding that set by DHCP or RA): if [ -n "${MTU[$i]}" ]; then echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev ${1} mtu ${MTU[$i]}" | $LOGGER |