kernel - fix bug in objcache_destroy()
[dragonfly.git] / etc / rc.d / netoptions
blob1cd4e645c61e23e8f3686ca21cf37b35d68ea43e
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/netoptions,v 1.138 2003/06/29 05:09:48 mtm Exp $
4 # $DragonFly: src/etc/rc.d/netoptions,v 1.4 2005/11/19 21:47:32 swildner Exp $
7 # PROVIDE: netoptions
8 # REQUIRE: localdaemons
9 # BEFORE: securelevel
11 . /etc/rc.subr
13 load_rc_config 'XXX'
14 dummy_rc_command "$1"
17 echo -n 'Additional TCP options:'
18 case ${log_in_vain} in
19 [Nn][Oo] | '')
20 log_in_vain=0
22 [Yy][Ee][Ss])
23 log_in_vain=1
25 [0-9]*)
28 echo " invalid log_in_vain setting: ${log_in_vain}"
29 log_in_vain=0
31 esac
33 [ "${log_in_vain}" -ne 0 ] && (
34 echo -n " log_in_vain=${log_in_vain}"
35 sysctl net.inet.tcp.log_in_vain="${log_in_vain}" >/dev/null
36 sysctl net.inet.udp.log_in_vain="${log_in_vain}" >/dev/null
38 echo '.'