Make multicasts go out default interface
This commit is contained in:
parent
3a163b361a
commit
40eb7bc241
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3393
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $Id: netstart,v 1.13 1994/09/15 01:19:43 phk Exp $
|
# $Id: netstart,v 1.14 1994/09/29 17:27:45 pst Exp $
|
||||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
defaultrouter=NO
|
defaultrouter=NO
|
||||||
@ -38,6 +38,10 @@ done
|
|||||||
# set the address for the loopback interface
|
# set the address for the loopback interface
|
||||||
ifconfig lo0 inet localhost
|
ifconfig lo0 inet localhost
|
||||||
|
|
||||||
|
# set interface for multicasts to default interface
|
||||||
|
# this needs to happen before router discovery
|
||||||
|
route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname
|
||||||
|
|
||||||
if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
|
if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
|
||||||
route add default $defaultrouter
|
route add default $defaultrouter
|
||||||
elif [ -f /etc/defaultrouter ] ; then
|
elif [ -f /etc/defaultrouter ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user