Date: Sat, 03 Oct 2009 01:10:15 +0400 From: Anonymous <swell.k@gmail.com> To: Hiroki Sato <hrs@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r197698 - head/etc/rc.d Message-ID: <86tyyh4i4o.fsf@gmail.com> In-Reply-To: <200910020227.n922RnBd086217__26713.9191426852$1254450512$gmane$org@svn.freebsd.org> (Hiroki Sato's message of "Fri, 2 Oct 2009 02:27:49 %2B0000 (UTC)") References: <200910020227.n922RnBd086217__26713.9191426852$1254450512$gmane$org@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hiroki Sato <hrs@FreeBSD.org> writes:
> Modified: head/etc/rc.d/netoptions
[...]
>
> if checkyesno tcp_extensions; then
> + ${SYSCTL_W} net.inet.tcp.rfc1323=1 >/dev/null
> + else
> netoptions_init
> - echo -n ' rfc1323 extensions=NO'
> + echo -n ' rfc1323 extensions=${tcp_extensions}'
^^^^^^^^^^^^^^^^^
Here.
> ${SYSCTL_W} net.inet.tcp.rfc1323=0 >/dev/null
> fi
>
> - if ! checkyesno tcp_keepalive; then
> + if checkyesno tcp_keepalive; then
> + ${SYSCTL_W} net.inet.tcp.always_keepalive=1 >/dev/null
> + else
> netoptions_init
> - echo -n ' TCP keepalive=NO'
> + echo -n ' TCP keepalive=${tcp_keepalive}'
^^^^^^^^^^^^^^^^
Here.
> ${SYSCTL_W} net.inet.tcp.always_keepalive=0 >/dev/null
> fi
>
> if checkyesno tcp_drop_synfin; then
> netoptions_init
> - echo -n ' drop SYN+FIN packets=YES'
> + echo -n ' drop SYN+FIN packets=${tcp_drop_synfin}'
^^^^^^^^^^^^^^^^^^
And here. These are *single* quotes, no parameter expansion can occur.
I keep getting following in `dmesg -a'
Additional TCP/IP options:
drop SYN+FIN packets=${tcp_drop_synfin}
.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86tyyh4i4o.fsf>
