From c538ff76f57f05a26650813d309fa7d5070978bd Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 25 Aug 1997 20:50:38 +0000 Subject: [PATCH] Explicately pass -host flag to route(8) to avoid confusion with networks. --- src/etc/netstart | 6 +++--- src/etc/rc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 1230b6b4..4547450f 100644 --- a/src/etc/netstart +++ b/src/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 diff --git a/src/etc/rc b/src/etc/rc index b3378b54..5c3d9dd5 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -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 )