Browse Source

Like for dhclient, do no create a route to alias addresses via 127.0.0.1.

Our stack is able to tell if the address is local or not.
ok todd@, krw@
OPENBSD_5_5
mpi 11 years ago
parent
commit
eb8b8e3691
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/etc/netstart

+ 2
- 3
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: netstart,v 1.138 2013/03/20 15:26:28 todd Exp $
# $OpenBSD: netstart,v 1.139 2013/08/22 07:53:11 mpi Exp $
# Strip comments (and leading/trailing whitespace if IFS is set) # Strip comments (and leading/trailing whitespace if IFS is set)
# from a file and spew to stdout # from a file and spew to stdout
@ -103,7 +103,6 @@ ifstart() {
if [ "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then if [ "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then
cmd="$cmd broadcast $bcaddr" cmd="$cmd broadcast $bcaddr"
fi fi
[ "$alias" ] && rtcmd=";route -qn add -host $name 127.0.0.1"
;; ;;
inet6) inet6)
if [ ! -n "$name" ]; then if [ ! -n "$name" ]; then
@ -117,7 +116,7 @@ ifstart() {
cmd="$cmd $mask $bcaddr" cmd="$cmd $mask $bcaddr"
;; ;;
esac esac
cmd="$cmd $ext1 $ext2$rtcmd" rtcmd=
cmd="$cmd $ext1 $ext2"
;; ;;
esac esac
eval "$cmd" eval "$cmd"


Loading…
Cancel
Save