From owner-freebsd-stable@freebsd.org Thu Sep 28 14:20:52 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F38FE32E0B for ; Thu, 28 Sep 2017 14:20:52 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from yavin.vindaloo.com (yavin.vindaloo.com [173.199.117.73]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "yavin.vindaloo.com", Issuer "Vindaloo Sign CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F11D6EB2; Thu, 28 Sep 2017 14:20:51 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from anza.vindaloo.com (ool-45714982.dyn.optonline.net [69.113.73.130]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smtp.vindaloo.com", Issuer "Vindaloo Sign CA" (verified OK)) by yavin.vindaloo.com (Postfix) with ESMTPS id 2DEEED7A87; Thu, 28 Sep 2017 10:20:50 -0400 (EDT) Received: from csh-desktop-vm00.loopone.com (h4.82.141.40.ip.windstream.net [40.141.82.4]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by anza.vindaloo.com (Postfix) with ESMTPSA id A05E71019B; Thu, 28 Sep 2017 10:20:49 -0400 (EDT) Date: Thu, 28 Sep 2017 10:20:47 -0400 From: Christopher Sean Hilton To: Dimitry Andric Cc: freebsd-stable@freebsd.org Subject: Re: Bind9 + TCP_FASTOPEN => no rndc Message-ID: <20170928142047.dgzji5mdic632u7w@csh-desktop-vm00.loopone.com> References: <20170927173525.bspia3tpcu35yng3@kessel.vindaloo.com> <5CF82983-FDA1-4F83-9D47-D36845A12B97@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5CF82983-FDA1-4F83-9D47-D36845A12B97@FreeBSD.org> User-Agent: NeoMutt/20170914 (1.9.0) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 14:20:52 -0000 On Wed, Sep 27, 2017 at 09:17:29PM +0000, Dimitry Andric wrote: > On 27 Sep 2017, at 19:35, Christopher Sean Hilton wrote: > > > > I'm trying to configure bind 9.11 as a nameserver on FreeBSD > > 11-STABLE. When the bind9 port compile it enables TCP_FASTOPEN but the > > changes haven't yet been baked into the GENERIC Kernel. I can't find a > > way to disable the use of TCP_FASTOPEN in bind at startup. Is the only > > way to fix this problem to build a new kernel with TCP_FASTOPEN > > enabled? > > It looks like bind enables use of TCP_FASTOPEN whenever its configure > script finds the define in the system headers. But it does not check > whether the functionality actually works with setsockopt. > > In any case, the message is harmless noise, as any errors are ignored: > > #if defined(ISC_PLATFORM_HAVETFO) && defined(TCP_FASTOPEN) > #ifdef __APPLE__ > backlog = 1; > #else > backlog = backlog / 2; > if (backlog == 0) > backlog = 1; > #endif > if (setsockopt(sock->fd, IPPROTO_TCP, TCP_FASTOPEN, > (void *)&backlog, sizeof(backlog)) < 0) { > isc__strerror(errno, strbuf, sizeof(strbuf)); > UNEXPECTED_ERROR(__FILE__, __LINE__, > "setsockopt(%d, TCP_FASTOPEN) failed with %s", > sock->fd, strbuf); > /* TCP_FASTOPEN is experimental so ignore failures */ > } > #endif > Great, I assumed that the FASTOPEN failure was related to the inablity to open the rndc socket. I'll have to debug the rndc socket seperately. Thanks for help! -- Chris -- Chris __o "All I was trying to do was get home from work." _`\<,_ -Rosa Parks ___(*)/_(*)____.___o____..___..o...________ooO..._____________________ Christopher Sean Hilton [chris/at/vindaloo/dot/com]