15 start_cmd="netoptions_start"
21 if [ -z "${_netoptions_initdone}" ]; then
22 echo -n 'Additional TCP/IP options:'
23 _netoptions_initdone=yes
31 for _af in inet inet6; do
32 afexists ${_af} && eval netoptions_${_af}
34 [ -n "${_netoptions_initdone}" ] && echo '.'
39 case ${log_in_vain} in
42 echo -n " log_in_vain=${log_in_vain}"
43 ${SYSCTL_W} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
44 ${SYSCTL_W} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
47 ${SYSCTL_W} net.inet.tcp.log_in_vain=0 >/dev/null
48 ${SYSCTL_W} net.inet.udp.log_in_vain=0 >/dev/null
52 if checkyesno tcp_extensions; then
53 ${SYSCTL_W} net.inet.tcp.rfc1323=1 >/dev/null
56 echo -n " rfc1323 extensions=${tcp_extensions}"
57 ${SYSCTL_W} net.inet.tcp.rfc1323=0 >/dev/null
60 if checkyesno tcp_keepalive; then
61 ${SYSCTL_W} net.inet.tcp.always_keepalive=1 >/dev/null
64 echo -n " TCP keepalive=${tcp_keepalive}"
65 ${SYSCTL_W} net.inet.tcp.always_keepalive=0 >/dev/null
68 if checkyesno tcp_drop_synfin; then
70 echo -n " drop SYN+FIN packets=${tcp_drop_synfin}"
71 ${SYSCTL_W} net.inet.tcp.drop_synfin=1 >/dev/null
73 ${SYSCTL_W} net.inet.tcp.drop_synfin=0 >/dev/null
76 case ${ip_portrange_first} in
79 echo -n " ip_portrange_first=$ip_portrange_first"
80 ${SYSCTL_W} net.inet.ip.portrange.first=$ip_portrange_first >/dev/null
84 case ${ip_portrange_last} in
87 echo -n " ip_portrange_last=$ip_portrange_last"
88 ${SYSCTL_W} net.inet.ip.portrange.last=$ip_portrange_last >/dev/null
95 if checkyesno ipv6_ipv4mapping; then
97 echo -n " ipv4-mapped-ipv6=${ipv6_ipv4mapping}"
98 ${SYSCTL_W} net.inet6.ip6.v6only=0 >/dev/null
100 ${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null