summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1998-02-16 19:21:32 +0000
committerguido <guido@FreeBSD.org>1998-02-16 19:21:32 +0000
commit620810fd0c96fb2b15a15ba8c21d11892452e1d8 (patch)
treefab732f6436faa02abe9a7619720f886b19223c4 /etc/rc.network
parent977c976366588ba7b89384d4c3c0d1260ca46ac7 (diff)
downloadFreeBSD-src-620810fd0c96fb2b15a15ba8c21d11892452e1d8.zip
FreeBSD-src-620810fd0c96fb2b15a15ba8c21d11892452e1d8.tar.gz
Add 2 new rc.conf variables:
forward_sourceroute : controls setting of existing net.inet.ip.sourceroute accept_sourceroute : control setting of new net.inet.ip.accept_sourceroute
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network
index cdc35bf..a66013b 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
+# $Id: rc.network,v 1.17 1998/02/14 04:12:23 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -117,6 +117,16 @@ network_pass1() {
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
fi
+ if [ "X$forward_sourceroute" = X"YES" ]; then
+ echo -n ' do source routing=YES'
+ sysctl -w net.inet.ip.sourceroute=1 >/dev/null 2>&1
+ fi
+
+ if [ "X$accept_sourceroute" = X"YES" ]; then
+ echo -n ' accept source routing=YES'
+ sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null 2>&1
+ fi
+
if [ "X$router_enable" = X"YES" ]; then
echo -n " ${router}"; ${router} ${router_flags}
fi
OpenPOWER on IntegriCloud