Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/tcp.4
Show All 28 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" 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 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 | .\" From: @(#)tcp.4 8.1 (Berkeley) 6/5/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd August 26, 2019 | .Dd September 31, 2019 | ||||
bz: Please don't forget to update on commit. | |||||
.Dt TCP 4 | .Dt TCP 4 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm tcp | .Nm tcp | ||||
.Nd Internet Transmission Control Protocol | .Nd Internet Transmission Control Protocol | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/types.h | .In sys/types.h | ||||
.In sys/socket.h | .In sys/socket.h | ||||
▲ Show 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
administrator to add a tcp-md5 key entry to the system's security | administrator to add a tcp-md5 key entry to the system's security | ||||
associations database (SADB) using the | associations database (SADB) using the | ||||
.Xr setkey 8 | .Xr setkey 8 | ||||
utility. | utility. | ||||
This entry can only be specified on a per-host basis at this time. | This entry can only be specified on a per-host basis at this time. | ||||
.Pp | .Pp | ||||
If an SADB entry cannot be found for the destination, | If an SADB entry cannot be found for the destination, | ||||
the system does not send any outgoing segments and drops any inbound segments. | the system does not send any outgoing segments and drops any inbound segments. | ||||
.It Dv TCP_STATS | |||||
Manage collection of connection level statistics using the | |||||
.Xr stats 3 | |||||
framework. | |||||
.Pp | .Pp | ||||
Each dropped segment is taken into account in the TCP protocol statistics. | Each dropped segment is taken into account in the TCP protocol statistics. | ||||
.It Dv TCP_TXTLS_ENABLE | .It Dv TCP_TXTLS_ENABLE | ||||
Enable in-kernel Transport Layer Security (TLS) for data written to this | Enable in-kernel Transport Layer Security (TLS) for data written to this | ||||
socket. | socket. | ||||
The | The | ||||
.Vt struct tls_so_enable | .Vt struct tls_so_enable | ||||
argument defines the encryption and authentication algorithms and keys | argument defines the encryption and authentication algorithms and keys | ||||
▲ Show 20 Lines • Show All 348 Lines • ▼ Show 20 Lines | |||||
Default is false. | Default is false. | ||||
.It Va insecure_syn | .It Va insecure_syn | ||||
Use criteria defined in RFC793 instead of RFC5961 for accepting SYN segments. | Use criteria defined in RFC793 instead of RFC5961 for accepting SYN segments. | ||||
Default is false. | Default is false. | ||||
.It Va ts_offset_per_conn | .It Va ts_offset_per_conn | ||||
When initializing the TCP timestamps, use a per connection offset instead of a | When initializing the TCP timestamps, use a per connection offset instead of a | ||||
per host pair offset. | per host pair offset. | ||||
Default is to use per connection offsets as recommended in RFC 7323. | Default is to use per connection offsets as recommended in RFC 7323. | ||||
.It Va perconn_stats_enable | |||||
Controls the default collection of statistics for all connections using the | |||||
.Xr stats 3 | |||||
framework. | |||||
0 disables, 1 enables, 2 enables random sampling across log id connection | |||||
groups with all connections in a group receiving the same setting. | |||||
.It Va perconn_stats_sample_rates | |||||
A CSV list of template_spec=percent key-value pairs which controls the per | |||||
template sampling rates when | |||||
.Xr stats 3 | |||||
sampling is enabled. | |||||
.El | .El | ||||
.Sh ERRORS | .Sh ERRORS | ||||
A socket operation may fail with one of the following errors returned: | A socket operation may fail with one of the following errors returned: | ||||
.Bl -tag -width Er | .Bl -tag -width Er | ||||
.It Bq Er EISCONN | .It Bq Er EISCONN | ||||
when trying to establish a connection on a socket which | when trying to establish a connection on a socket which | ||||
already has one; | already has one; | ||||
.It Bo Er ENOBUFS Bc or Bo Er ENOMEM Bc | .It Bo Er ENOBUFS Bc or Bo Er ENOMEM Bc | ||||
Show All 23 Lines | |||||
.It Bq Er EINVAL | .It Bq Er EINVAL | ||||
when trying to change TCP function blocks at an invalid point in the session; | when trying to change TCP function blocks at an invalid point in the session; | ||||
.It Bq Er ENOENT | .It Bq Er ENOENT | ||||
when trying to use a TCP function block that is not available; | when trying to use a TCP function block that is not available; | ||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr getsockopt 2 , | .Xr getsockopt 2 , | ||||
.Xr socket 2 , | .Xr socket 2 , | ||||
.Xr stats 3 , | |||||
.Xr sysctl 3 , | .Xr sysctl 3 , | ||||
.Xr blackhole 4 , | .Xr blackhole 4 , | ||||
.Xr inet 4 , | .Xr inet 4 , | ||||
.Xr intro 4 , | .Xr intro 4 , | ||||
.Xr ip 4 , | .Xr ip 4 , | ||||
.Xr mod_cc 4 , | .Xr mod_cc 4 , | ||||
.Xr siftr 4 , | .Xr siftr 4 , | ||||
.Xr syncache 4 , | .Xr syncache 4 , | ||||
Show All 35 Lines |
Please don't forget to update on commit.