Browse Source

Explicately pass -host flag to route(8) to avoid confusion with networks.

OPENBSD_2_2
millert 27 years ago
parent
commit
c538ff76f5
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/etc/netstart
  2. +2
    -2
      src/etc/rc

+ 3
- 3
src/etc/netstart View File

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


+ 2
- 2
src/etc/rc View File

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


Loading…
Cancel
Save