From 90fccdd8157646022b143dad37072b65707c79d9 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 11 Aug 2022 09:15:35 +0000 Subject: [PATCH] Add information about TCP_INFO. Be a bit vague about struct tcp_info since it is not standardised. --- share/man/man4/tcp.4 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/share/man/man4/tcp.4 b/share/man/man4/tcp.4 index dc3f7696aa4..7a81b9a2803 100644 --- a/share/man/man4/tcp.4 +++ b/share/man/man4/tcp.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tcp.4,v 1.25 2022/03/31 17:27:21 naddy Exp $ +.\" $OpenBSD: tcp.4,v 1.26 2022/08/11 09:15:35 claudio Exp $ .\" $NetBSD: tcp.4,v 1.3 1994/11/30 16:22:35 jtc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)tcp.4 8.1 (Berkeley) 6/5/93 .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: August 11 2022 $ .Dt TCP 4 .Os .Sh NAME @@ -113,6 +113,16 @@ supports several socket options which are set with and tested with .Xr getsockopt 2 . .Bl -ohang +.It Cd TCP_INFO +Retrieve information about a socket's underlying TCP session. +.Dv TCP_INFO +is only used with +.Fn getsockopt . +The argument is a pointer to an instance of +.Vt "struct tcp_info" +(from +.In netinet/tcp.h ) . +.Pp .It Cd TCP_NODELAY Under most circumstances, .Tn TCP -- 2.20.1