network.subr (33337) | network.subr (33439) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $ | 3# $Id: rc.network,v 1.17 1998/02/14 04:12:23 alex Exp $ |
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all the user-configurable behavior is no longer in 7# this file, but rather in /etc/rc.conf. Please check that file 8# first before contemplating any changes here. If you do need to change 9# this file for some reason, we would like to know about it. 10 11# First pass startup stuff. --- 100 unchanged lines hidden (view full) --- 112 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 113 fi 114 115 if [ "X$gateway_enable" = X"YES" ]; then 116 echo -n ' IP gateway=YES' 117 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 118 fi 119 | 4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all the user-configurable behavior is no longer in 7# this file, but rather in /etc/rc.conf. Please check that file 8# first before contemplating any changes here. If you do need to change 9# this file for some reason, we would like to know about it. 10 11# First pass startup stuff. --- 100 unchanged lines hidden (view full) --- 112 sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 113 fi 114 115 if [ "X$gateway_enable" = X"YES" ]; then 116 echo -n ' IP gateway=YES' 117 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 118 fi 119 |
120 if [ "X$forward_sourceroute" = X"YES" ]; then 121 echo -n ' do source routing=YES' 122 sysctl -w net.inet.ip.sourceroute=1 >/dev/null 2>&1 123 fi 124 125 if [ "X$accept_sourceroute" = X"YES" ]; then 126 echo -n ' accept source routing=YES' 127 sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null 2>&1 128 fi 129 |
|
120 if [ "X$router_enable" = X"YES" ]; then 121 echo -n " ${router}"; ${router} ${router_flags} 122 fi 123 124 if [ "X$ipxgateway_enable" = X"YES" ]; then 125 echo -n ' IPX gateway=YES' 126 sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 127 fi --- 120 unchanged lines hidden --- | 130 if [ "X$router_enable" = X"YES" ]; then 131 echo -n " ${router}"; ${router} ${router_flags} 132 fi 133 134 if [ "X$ipxgateway_enable" = X"YES" ]; then 135 echo -n ' IPX gateway=YES' 136 sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1 137 fi --- 120 unchanged lines hidden --- |