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
This commit is contained in:
Yoshinobu Inoue 2000-03-11 20:10:39 +00:00
parent 8fca8c97c6
commit d499929ea1
4 changed files with 8 additions and 2 deletions

1
etc/pim6dd.conf Normal file
View File

@ -0,0 +1 @@
phyint stf0 disable

1
etc/pim6sd.conf Normal file
View File

@ -0,0 +1 @@
phyint stf0 disable

View File

@ -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)

View File

@ -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)