defaultroute (38876) | defaultroute (39267) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.29 1998/08/14 06:55:17 phk Exp $ | 3# $Id: rc.network,v 1.30 1998/09/06 08:20:11 phk 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. --- 93 unchanged lines hidden (view full) --- 105 fi 106 107 echo -n 'Additional routing options:' 108 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then 109 echo -n ' tcp extensions=NO' 110 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 111 fi 112 | 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. --- 93 unchanged lines hidden (view full) --- 105 fi 106 107 echo -n 'Additional routing options:' 108 if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then 109 echo -n ' tcp extensions=NO' 110 sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 111 fi 112 |
113 if [ X"$icmp_bmcastecho" = X"YES" ]; then 114 echo -n ' broadcast ping responses=YES' 115 sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null 2>&1 116 fi 117 |
|
113 if [ "X$gateway_enable" = X"YES" ]; then 114 echo -n ' IP gateway=YES' 115 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 116 fi 117 118 if [ "X$forward_sourceroute" = X"YES" ]; then 119 echo -n ' do source routing=YES' 120 sysctl -w net.inet.ip.sourceroute=1 >/dev/null 2>&1 --- 164 unchanged lines hidden --- | 118 if [ "X$gateway_enable" = X"YES" ]; then 119 echo -n ' IP gateway=YES' 120 sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 121 fi 122 123 if [ "X$forward_sourceroute" = X"YES" ]; then 124 echo -n ' do source routing=YES' 125 sysctl -w net.inet.ip.sourceroute=1 >/dev/null 2>&1 --- 164 unchanged lines hidden --- |