diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-25 20:50:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-25 20:50:39 +0000 |
commit | 013266990ca470da7c5883aa505bab733928503a (patch) | |
tree | 8d41dd5cfeb271bc4cac2a6efcd7b5dbb5ae16eb /etc | |
parent | 211da3b010bf6a261ce0aa26d911485402e05346 (diff) |
Explicately pass -host flag to route(8) to avoid confusion with networks.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/netstart | 6 | ||||
-rw-r--r-- | etc/rc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/etc/netstart b/etc/netstart index 1230b6b4368..4547450f228 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.27 1997/08/19 21:55:15 niklas Exp $ +# $OpenBSD: netstart,v 1.28 1997/08/25 20:50:37 millert Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=NO # for 'normal' use: routed_flags=-q @@ -71,7 +71,7 @@ fi ifconfig lo0 inet localhost # use loopback, not the wire -route add $hostname localhost +route add -host $hostname localhost route add -net 127 127.0.0.1 -reject # configure all of the non-loopback interfaces which we know about. @@ -132,7 +132,7 @@ route add -net 127 127.0.0.1 -reject # /etc/mygate, if it exists, contains the name of my gateway host # that name must be in /etc/hosts. if [ -f /etc/mygate ]; then - route add default `cat /etc/mygate` + route add -host default `cat /etc/mygate` fi # default multicast route @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.43 1997/08/23 15:01:24 mickey Exp $ +# $OpenBSD: rc,v 1.44 1997/08/25 20:50:38 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -86,7 +86,7 @@ if [ -f /etc/ifaliases ]; then set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'` while [ $# -ge 3 ] ; do ifconfig $1 inet alias $2 netmask $3 - route add $2 localhost + route add -host $2 localhost shift 3 done ) |