From d499929ea1d462e883e7593e9a3cfba82ad46d2b Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Sat, 11 Mar 2000 20:10:39 +0000 Subject: 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 --- etc/pim6dd.conf | 1 + etc/pim6sd.conf | 1 + etc/rc.d/network_ipv6 | 4 +++- etc/rc.network6 | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 etc/pim6dd.conf create mode 100644 etc/pim6sd.conf (limited to 'etc') diff --git a/etc/pim6dd.conf b/etc/pim6dd.conf new file mode 100644 index 000000000000..44cf790b4739 --- /dev/null +++ b/etc/pim6dd.conf @@ -0,0 +1 @@ +phyint stf0 disable diff --git a/etc/pim6sd.conf b/etc/pim6sd.conf new file mode 100644 index 000000000000..44cf790b4739 --- /dev/null +++ b/etc/pim6sd.conf @@ -0,0 +1 @@ +phyint stf0 disable diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index f6a2115a38d5..6b499ead0e3f 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) diff --git a/etc/rc.network6 b/etc/rc.network6 index f6a2115a38d5..6b499ead0e3f 100644 --- a/etc/rc.network6 +++ b/etc/rc.network6 @@ -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) -- cgit v1.3