Date: Thu, 5 Dec 2019 20:43:35 +0100 From: Michael Tuexen <tuexen@freebsd.org> To: Jeremy Harris <jgh@wizmail.org> Cc: freebsd-transport@freebsd.org Subject: Re: TCP Fast Open Message-ID: <F24D850E-C6B6-4600-9B28-2439D70447A0@freebsd.org> In-Reply-To: <f59092f1-9f93-d5c3-e7a2-06ba88bd7385@wizmail.org> References: <5276cc23-d37f-e55e-11c5-030314e9e32c@wizmail.org> <1206B1BE-3B7E-45D0-8C2B-6012A5CB6298@freebsd.org> <2752006b-cd6b-7b8b-d23b-ae2c794dc104@wizmail.org> <f59092f1-9f93-d5c3-e7a2-06ba88bd7385@wizmail.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 5. Dec 2019, at 20:01, Jeremy Harris <jgh@wizmail.org> wrote: >=20 > On 05/12/2019 18:41, Jeremy Harris wrote: >> On 05/12/2019 18:28, Michael Tuexen wrote: >>> sudo sysctl net.inet.tcp.fastopen.ccache_list >>=20 >> Empty content: >=20 > Huh - cancel that. I re-enabled the setsockopt( TCP_FASTOPEN), > and now the cookie shows up there, and in SYN options. > Unsure why it wasn't there before, but never mind. >=20 > Onward to looking at observability. Under linux I'm having > to use getsockopt/TCP_INFO, and it doesn't quite do what I'd > want... Are you asking how to figure out whether TFO was used or not? In that case you can use=20 getsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, &on, &len); If on =3D=3D 0, TFO was not used, on !=3D 0, TFO was used. Best regards Michael > --=20 > Cheers, > Jeremy > _______________________________________________ > freebsd-transport@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-transport > To unsubscribe, send any mail to = "freebsd-transport-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F24D850E-C6B6-4600-9B28-2439D70447A0>