diff options
author | brian <brian@FreeBSD.org> | 2012-10-25 08:37:08 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2012-10-25 08:37:08 +0000 |
commit | 4bbccef318a2a1a9f753547573ebbe36b0879f36 (patch) | |
tree | 1a3c38235c6d090cf24ee25b56480a76090cb1cf /etc/rc.d | |
parent | 0d0775ec92a3f43e3b8060f719afb32106df37f7 (diff) | |
download | FreeBSD-src-4bbccef318a2a1a9f753547573ebbe36b0879f36.zip FreeBSD-src-4bbccef318a2a1a9f753547573ebbe36b0879f36.tar.gz |
Enable "accept_rtadvd" on interfaces running rtadvd.
Without this, rtadvd runs but never advertises a default (IPv6) route.
MFC after: 1 week
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/rtadvd | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd index 48a3a64..8125f38 100755 --- a/etc/rc.d/rtadvd +++ b/etc/rc.d/rtadvd @@ -36,17 +36,24 @@ rtadvd_precmd() # case ${rtadvd_interfaces} in [Aa][Uu][Tt][Oo]|'') + command_args= for i in `list_net_interfaces`; do case $i in lo0) continue ;; esac if ipv6if $i; then - rtadvd_interfaces="${rtadvd_interfaces} ${i}" + command_args="${command_args} ${i}" fi done ;; + *) + command_args="${rtadvd_interfaces}" + ;; esac - command_args="${rtadvd_interfaces}" + + for iface in ${command_args}; do + ifconfig ${iface} inet6 -accept_rtadv + done # Enable Router Renumbering, unicast case # (use correct src/dst addr) |