Browse Source

Don't delete the 224/4 route in netstart, unless it's being done to ensure that

a -reject route can be added. Restores the ability to set an interface route
before daemons are started, lost during the previous simplification.
ok millert mpi
OPENBSD_6_0
sthen 8 years ago
parent
commit
560ae5101e
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/etc/netstart

+ 4
- 3
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: netstart,v 1.167 2015/12/29 19:37:31 rpe Exp $
# $OpenBSD: netstart,v 1.168 2016/03/27 20:32:42 sthen Exp $
# Turn off Strict Bourne shell mode. # Turn off Strict Bourne shell mode.
set +o sh set +o sh
@ -268,9 +268,10 @@ done
done done
# Multicast routing. # Multicast routing.
route -qn delete 224.0.0.0/4 >/dev/null 2>&1
[[ $multicast != YES ]] &&
if [[ $multicast != YES ]]; then
route -qn delete 224.0.0.0/4 >/dev/null 2>&1
route -qn add -net 224.0.0.0/4 -interface 127.0.0.1 -reject >/dev/null route -qn add -net 224.0.0.0/4 -interface 127.0.0.1 -reject >/dev/null
fi
# Configure PPPoE, GIF, GRE, TUN and PFLOW interfaces, delayed because they # Configure PPPoE, GIF, GRE, TUN and PFLOW interfaces, delayed because they
# require routes to be set. TUN might depend on PPPoE, and GIF or GRE may # require routes to be set. TUN might depend on PPPoE, and GIF or GRE may


Loading…
Cancel
Save