version 1.111, 2005/11/02 18:45:26 |
version 1.112, 2005/12/06 17:24:18 |
|
|
# NO YES none installed daemon will run |
# NO YES none installed daemon will run |
# YES/interface NO -interface YES=def. iface |
# YES/interface NO -interface YES=def. iface |
# Any other combination -reject config error |
# Any other combination -reject config error |
|
route -qn delete 224.0.0.0/4 > /dev/null 2>&1 |
case "$multicast_host:$multicast_router" in |
case "$multicast_host:$multicast_router" in |
NO:NO) |
NO:NO) |
route -qn add -net 224.0.0.0/4 -interface 127.0.0.1 -reject > /dev/null |
route -qn add -net 224.0.0.0/4 -interface 127.0.0.1 -reject > /dev/null |
|
|
NO:YES) |
NO:YES) |
;; |
;; |
*:NO) |
*:NO) |
set `if [ $multicast_host = YES ]; then |
maddr=`if [ "$multicast_host" = "YES" ]; then |
ed -s '!route -qn show -inet' <<EOF |
ed -s '!route -qn show -inet' <<EOF |
/^default/p |
/^default/p |
EOF |
EOF |
|
|
ed -s "!ifconfig $multicast_host" <<EOF |
ed -s "!ifconfig $multicast_host" <<EOF |
/^ inet /p |
/^ inet /p |
EOF |
EOF |
fi` |
fi 2> /dev/null` |
route -qn add -net 224.0.0.0/4 -interface $2 > /dev/null |
if [ "X${maddr}" != "X" ]; then |
|
set $maddr |
|
route -qn add -net 224.0.0.0/4 -interface $2 > /dev/null |
|
else |
|
route -qn add -net 224.0.0.0/4 -interface \ |
|
127.0.0.1 -reject > /dev/null |
|
fi |
;; |
;; |
*:*) |
*:*) |
echo 'config error, multicasting disabled until rc.conf is fixed' |
echo 'config error, multicasting disabled until rc.conf is fixed' |