svn commit: r292706 - in head/sys: conf netinet

Marc UBM Bocklet ubm at u-boot-man.de
Fri Dec 25 08:29:50 UTC 2015


On Thu, 24 Dec 2015 19:09:49 +0000 (UTC)
Patrick Kelsey <pkelsey at FreeBSD.org> wrote:


> Added: head/sys/netinet/tcp_fastopen.c
> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/sys/netinet/tcp_fastopen.c	Thu Dec 24 19:09:48 2015	(r292706)
> @@ -0,0 +1,442 @@
> +/*-
> + * Copyright (c) 2015 Patrick Kelsey
> + * All rights reserved.
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + *    notice, this list of conditions and the following disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + *    notice, this list of conditions and the following disclaimer in the
> + *    documentation and/or other materials provided with the distribution.
> + *
> + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
> + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> + * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
> + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
> + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
> + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
> + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> + * SUCH DAMAGE.
> + */
> +
> +/*
> + * This is a server-side implementation of TCP Fast Open (TFO) [RFC7413].
> + *
> + * This implementation is currently considered to be experimental and is not
> + * included in kernel builds by default.  To include this code, add the
> + * following line to your kernel config:
> + *
> + * options TCP_RFC7413
> + *
> + * The generated TFO cookies are the 64-bit output of
> + * SipHash24(<16-byte-key><client-ip>).  Multiple concurrent valid keys are
> + * supported so that time-based rolling cookie invalidation policies can be
> + * implemented in the system.  The default number of concurrent keys is 2.
> + * This can be adjusted in the kernel config as follows:
> + *
> + * options TCP_RFC7413_MAX_KEYS=<num-keys>
> + *
> + *
> + * The following TFO-specific sysctls are defined:
> + *
> + * net.inet.tcp.fastopen.acceptany (RW, default 0)

There's a typo here, it should probably be "acceptancy"?

Bye,
Marc



More information about the svn-src-all mailing list