From owner-freebsd-stable@freebsd.org Wed Sep 27 21:17:34 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 95941E0F82F for ; Wed, 27 Sep 2017 21:17:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EDFB2579 for ; Wed, 27 Sep 2017 21:17:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [10.194.10.54] (unknown [185.93.6.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 46E594759A; Wed, 27 Sep 2017 23:17:31 +0200 (CEST) From: Dimitry Andric Message-Id: <5CF82983-FDA1-4F83-9D47-D36845A12B97@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_CC06C6CF-F423-405E-B94A-8ADAEE72212F"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Bind9 + TCP_FASTOPEN => no rndc Date: Wed, 27 Sep 2017 23:17:29 +0200 In-Reply-To: <20170927173525.bspia3tpcu35yng3@kessel.vindaloo.com> Cc: freebsd-stable@freebsd.org To: Christopher Sean Hilton References: <20170927173525.bspia3tpcu35yng3@kessel.vindaloo.com> X-Mailer: Apple Mail (2.3273) 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: Wed, 27 Sep 2017 21:17:34 -0000 --Apple-Mail=_CC06C6CF-F423-405E-B94A-8ADAEE72212F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Sep 2017, at 19:35, Christopher Sean Hilton = wrote: >=20 > 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 =3D 1; #else backlog =3D backlog / 2; if (backlog =3D=3D 0) backlog =3D 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 -Dimitry --Apple-Mail=_CC06C6CF-F423-405E-B94A-8ADAEE72212F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWcwVaQAKCRCwXqMKLiCW o2MOAJ9aN9jtBYJ4oTdzXDja6ontQJrEiQCgzjdDxLUVW+7aOhEYb935UBgJhjc= =EHXW -----END PGP SIGNATURE----- --Apple-Mail=_CC06C6CF-F423-405E-B94A-8ADAEE72212F--