2002-07-18 05:00:17 +00:00
|
|
|
#!/bin/sh
|
2000-10-08 19:20:36 +00:00
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
2000-10-08 19:20:36 +00:00
|
|
|
#
|
1997-04-27 03:59:19 +00:00
|
|
|
|
2002-07-18 05:00:17 +00:00
|
|
|
# PROVIDE: network3
|
|
|
|
# REQUIRE: localdaemons
|
|
|
|
# KEYWORD: FreeBSD
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
load_rc_config 'XXX'
|
|
|
|
|
|
|
|
echo -n 'Additional TCP options:'
|
|
|
|
case ${log_in_vain} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
log_in_vain=0
|
|
|
|
;;
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
log_in_vain=1
|
|
|
|
;;
|
|
|
|
[0-9]*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo " invalid log_in_vain setting: ${log_in_vain}"
|
|
|
|
log_in_vain=0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
[ "${log_in_vain}" -ne 0 ] && (
|
|
|
|
echo -n " log_in_vain=${log_in_vain}"
|
|
|
|
sysctl net.inet.tcp.log_in_vain="${log_in_vain}" >/dev/null
|
|
|
|
sysctl net.inet.udp.log_in_vain="${log_in_vain}" >/dev/null
|
|
|
|
)
|
|
|
|
echo '.'
|