summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network_ipv6
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-03-11 20:10:39 +0000
committershin <shin@FreeBSD.org>2000-03-11 20:10:39 +0000
commit2e6d13f82a95de48eb41e380b8ce7457e85f1cb4 (patch)
tree628588d507fd7a540921830f4ae072f0829f4818 /etc/rc.d/network_ipv6
parent3ca445ef55950f966bd5dfb2859dbe63d4d8b9f5 (diff)
downloadFreeBSD-src-2e6d13f82a95de48eb41e380b8ce7457e85f1cb4.zip
FreeBSD-src-2e6d13f82a95de48eb41e380b8ce7457e85f1cb4.tar.gz
Prevent multicast packets from being sent over stf0 interface,
to avoid error messages printed on /var/log/messages. Recently added "stf" interface has IFF_MULTICAST bit set, because IPv6 don't work on non IFF_MULTICAST set interfaces in current implementation. But "stf" interface is multi-dest IPv6 over IPv4 tunnel, so can't treat multicast packet with no special configuration. On the other hand, tools like "rtadvd", "pim6dd", "pim6sd" send messages on IFF_MULTICAST set interfaces by default. So there will be many bogus error message on /var/log/messages, that multicast packets sent to "stf0" failed. So, -strip "stf0" from rtadvd sending interfaces in rc.network6 ("rtadvd" is a daemon used only for local subnet, so it will never need to send its packets over "stf0" interfaces.) -Add default configuration files for "pim6dd" and "pim6sd", and disable "stf0" in those files. Approved by: jkh
Diffstat (limited to 'etc/rc.d/network_ipv6')
-rw-r--r--etc/rc.d/network_ipv64
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index f6a2115..6b499ea 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -151,7 +151,9 @@ network6_pass1() {
case ${rtadvd_enable} in
[Yy][Ee][Ss])
# default
- rtadvd ${ipv6_network_interfaces}
+ rtadvd_interfaces=`echo ${ipv6_network_interfaces} | \
+ sed -e 's/ stf0//'`
+ rtadvd ${rtadvd_interfaces}
#
# Enable Router Renumbering, unicast case
# (use correct src/dst addr)
OpenPOWER on IntegriCloud