2002-07-18 07:00:17 +02:00
|
|
|
#!/bin/sh
|
2000-10-08 21:20:36 +02:00
|
|
|
#
|
1999-08-28 01:37:10 +02:00
|
|
|
# $FreeBSD$
|
2000-10-08 21:20:36 +02:00
|
|
|
#
|
1997-04-27 05:59:19 +02:00
|
|
|
|
2003-06-29 07:09:48 +02:00
|
|
|
# PROVIDE: netoptions
|
2003-08-06 02:35:13 +02:00
|
|
|
# REQUIRE: localpkg
|
2003-05-05 17:38:41 +02:00
|
|
|
# BEFORE: securelevel
|
2004-03-08 13:25:05 +01:00
|
|
|
# KEYWORD: FreeBSD nojail
|
2002-07-18 07:00:17 +02:00
|
|
|
|
|
|
|
. /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 ] && (
|
2002-10-12 12:31:31 +02:00
|
|
|
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
|
2002-07-18 07:00:17 +02:00
|
|
|
)
|
|
|
|
echo '.'
|