Date: Sun, 5 May 2013 09:40:42 -0700 From: Richard Sharpe <realrichardsharpe@gmail.com> To: FreeBSD Net <freebsd-net@freebsd.org> Subject: TCP_KEEPIDLE vs TCPTV_KEEP_IDLE Message-ID: <CACyXjPzfw3SAGXa0u6xBQgn79VyGEq7wj9V4GgkRnCazD6-PmA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Samba currently has a way to set socket parameters from the smb.conf. This works fine for things like SO_SNDBUF etc, but not so well for the TCP KeepAlive parameters. In this area Samba has a Linux bias. I am looking at adding support for this under FreeBSD. The simplest way, it seems to me, is to enhance configure to find the appropriate symbols under FreeBSD (and it might be extendable to NetBSD etc) and then map them to the Linux symbols: #ifdef THIS_IS_SOME_SORT_OF_BSD #define TCP_KEEPIDLE TCPTV_KEEP_IDLE #endif However, that does mean that *BSD types would have to know that this happening because the names you would use in the smb.conf file would be Linux-specific, and documentation is often woefully incomplete. Is there a better method? --=20 Regards, Richard Sharpe (=A6=F3=A5H=B8=D1=BC~=A1H=B0=DF=A6=B3=A7=F9=B1d=A1C--=B1=E4=BE=DE)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACyXjPzfw3SAGXa0u6xBQgn79VyGEq7wj9V4GgkRnCazD6-PmA>