From 560ae5101eab4b78509aed9912f4a767d3f06c16 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Sun, 27 Mar 2016 20:32:42 +0000 Subject: [PATCH] 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 --- src/etc/netstart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index dd58efa5..edb02bca 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/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. set +o sh @@ -268,9 +268,10 @@ done done # 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 +fi # 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