From owner-freebsd-net@FreeBSD.ORG Mon May 6 13:45:20 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9D7F6668; Mon, 6 May 2013 13:45:20 +0000 (UTC) (envelope-from realrichardsharpe@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 04CF66A9; Mon, 6 May 2013 13:45:19 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hm14so2558350wib.5 for ; Mon, 06 May 2013 06:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=Y9R4vCxpCWg53p29QOj8h5Xv4onWOTG+pe3tTvE6BZc=; b=Xh/1DeTsSHNCdeNuqyiE9pl1X19lG/u+LoeDsHkft00IAsSmgTbZ9bZvTSJ00Kgrgi TLcATLua8MH+xYOzb/qbbpHH1bBS2sRqmIRdff4bYWQ9JIEsygyj5TafqwyMvXBY4ulu vVIGVZWOFA/+onS52qKvpDuj/zYUYn/lhDg5mnSktu6WdVoTLj/vbjKmafNmeAmSRuQv J1QgpGb0godvuCMRyhRTB41Vd+gTnpPk64rC3XlDLo9dMifvaKX31RpxIUcW7MC/4gmS 76JnH6U8CXA6vbq/mjG80canlKsvJcOkbRf2IhIhkYifSlCZaD9BNcFnk5UNn/SWpxU+ O9cQ== MIME-Version: 1.0 X-Received: by 10.195.13.75 with SMTP id ew11mr12869934wjd.25.1367847919230; Mon, 06 May 2013 06:45:19 -0700 (PDT) Received: by 10.194.179.194 with HTTP; Mon, 6 May 2013 06:45:19 -0700 (PDT) In-Reply-To: <20130506133541.GB15182@glebius.int.ru> References: <20130506082235.GV15182@FreeBSD.org> <20130506132332.GZ15182@glebius.int.ru> <20130506132821.GA15182@glebius.int.ru> <20130506133541.GB15182@glebius.int.ru> Date: Mon, 6 May 2013 06:45:19 -0700 Message-ID: Subject: Re: TCP_KEEPIDLE vs TCPTV_KEEP_IDLE From: Richard Sharpe To: Gleb Smirnoff Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 13:45:20 -0000 On Mon, May 6, 2013 at 6:35 AM, Gleb Smirnoff wrote: > On Mon, May 06, 2013 at 06:32:37AM -0700, Richard Sharpe wrote: > R> On Mon, May 6, 2013 at 6:28 AM, Gleb Smirnoff wr= ote: > R> > On Mon, May 06, 2013 at 06:26:14AM -0700, Richard Sharpe wrote: > R> > R> Thank you for that answer. I don't have the option to install Fre= eBSD > R> > R> 9.1. Maybe we will move to 9.1 in the future. > R> > R> > R> > R> However, I now understand the issues better. Of course that does > R> > R> complicate my proposal on Samba technical, just a little. > R> > > R> > I don't understand the proposal. Samba correctly compiles with suppo= rt > R> > for the discussed socket options on those operating systems that sup= port > R> > them. No "fixes" to Samba are required, everything works correctly. > R> > R> Perhaps there are others out there like us who have to stick with > R> earlier versions of FreeBSD where the symbols Samba currently uses are > R> not supported. > R> > R> In the spirit of few or no surprises for users, a small amount of > R> #ifdef stuff will work. > R> > R> Of course, my fellow Samba team members might decide that it is not wo= rth it. > > No, small amount of ifdef stuff would not work. FreeBSD 8.0 doesn't have > these socket options, you can't bring support for them defining their val= ues. > > Even if you manage to compile samba with support for these socket options= , > it will fail at runtime, getting EINVAL error from the setsockopt() syste= m > call. OK, I see what you mean. A trawl over the kernel code shows that these values are only used for setting up the defaults. OK, that closes one avenue for me. --=20 Regards, Richard Sharpe (=A6=F3=A5H=B8=D1=BC~=A1H=B0=DF=A6=B3=A7=F9=B1d=A1C--=B1=E4=BE=DE)