3 # Configure routing and miscellaneous network tunables
16 start_cmd="routing_start"
17 stop_cmd="routing_stop"
18 extra_commands="options static"
19 static_cmd="static_start"
20 options_cmd="options_start"
35 case ${defaultrouter} in
39 static_routes="default ${static_routes}"
40 route_default="default ${defaultrouter}"
44 # Setup static routes. This should be done before router discovery.
46 if [ -n "${static_routes}" ]; then
47 for i in ${static_routes}; do
48 eval route_args=\$route_${i}
49 route add ${route_args}
52 # Now ATM static routes
54 if [ -n "${natm_static_routes}" ]; then
55 for i in ${natm_static_routes}; do
56 eval route_args=\$route_${i}
57 atmconfig natm add ${route_args}
65 if [ -z "${_ropts_initdone}" ]; then
66 echo -n 'Additional routing options:'
73 case ${icmp_bmcastecho} in
76 echo -n ' broadcast ping responses=YES'
77 sysctl net.inet.icmp.bmcastecho=1 >/dev/null
81 case ${icmp_drop_redirect} in
84 echo -n ' ignore ICMP redirect=YES'
85 sysctl net.inet.icmp.drop_redirect=1 >/dev/null
89 case ${icmp_log_redirect} in
92 echo -n ' log ICMP redirect=YES'
93 sysctl net.inet.icmp.log_redirect=1 >/dev/null
97 case ${gateway_enable} in
100 echo -n ' IP gateway=YES'
101 sysctl net.inet.ip.forwarding=1 >/dev/null
105 case ${forward_sourceroute} in
108 echo -n ' do source routing=YES'
109 sysctl net.inet.ip.sourceroute=1 >/dev/null
113 case ${accept_sourceroute} in
116 echo -n ' accept source routing=YES'
117 sysctl net.inet.ip.accept_sourceroute=1 >/dev/null
121 case ${ipxgateway_enable} in
124 echo -n ' IPX gateway=YES'
125 sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null
129 case ${arpproxy_all} in
132 echo -n ' ARP proxyall=YES'
133 sysctl net.link.ether.inet.proxyall=1 >/dev/null
137 [ -n "${_ropts_initdone}" ] && echo '.'