Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man4 We now have more than one TCP socket option: ...



details:   https://anonhg.NetBSD.org/src/rev/45a85895b500
branches:  trunk
changeset: 565989:45a85895b500
user:      jonathan <jonathan%NetBSD.org@localhost>
date:      Sun Apr 25 02:13:37 2004 +0000

description:
We now have more than one TCP socket option: TCP_MAXSEG, with further
socket options (TCP_MD5SIG) in the works. Break TCP socket-options
into a list, and add a list element for TCP_MAXSEG, with text borrowed
from FreeBSD. (NB: our implementation may need improving to match that
rather general text.)

In preparation for adding list elements for TCP_MD5SIG.

diffstat:

 share/man/man4/tcp.4 |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 1fab558c0acf -r 45a85895b500 share/man/man4/tcp.4
--- a/share/man/man4/tcp.4      Sun Apr 25 00:24:08 2004 +0000
+++ b/share/man/man4/tcp.4      Sun Apr 25 02:13:37 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: tcp.4,v 1.14 2003/11/23 07:25:11 jhawk Exp $
+.\"    $NetBSD: tcp.4,v 1.15 2004/04/25 02:13:37 jonathan Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -103,10 +103,12 @@
 Normally this address corresponds to the peer entity's network.
 .Pp
 .Tn TCP
-supports one socket option which is set with
+supports a number of  socket options which can be set with
 .Xr setsockopt 2
 and tested with
-.Xr getsockopt 2 .
+.Xr getsockopt 2 :
+.Bl -tag -width TCP_MD5SIGx
+.It Dv TCP_NODELAY
 Under most circumstances,
 .Tn TCP
 sends data when it is presented;
@@ -123,12 +125,22 @@
 (from
 .Aq Pa netinet/tcp.h ,
 to defeat this algorithm.
+.It Dv TCP_MAXSEG
+By default, a sender\- and receiver-TCP
+will negotiate among themselves to determine the maximum segment size
+to be used for each connection.  The
+.Dv TCP_MAXSEG
+option allows the user to determine the result of this negotiation,
+and to reduce it if desired.
+.El
+.Pp
 The option level for the
 .Xr setsockopt 2
 call is the protocol number for
 .Tn TCP ,
 available from
 .Xr getprotobyname 3 .
+.Pp
 In the historical
 .Bx
 .Tn TCP



Home | Main Index | Thread Index | Old Index