TCP_* options from Linux 2.4
Andreas Jaeger
aj@suse.de
Fri Jul 28 00:51:00 GMT 2000
>>>>> Mark Kettenis writes:
> From: Ulrich Drepper <drepper@redhat.com>
> Date: 27 Jul 2000 09:01:38 -0700
> Andreas Jaeger <aj@suse.de> writes:
>> Shall I add them to sysdeps/gnu/netinet/tcp.h - or do I have to make a
>> Linux specific version? Hurd developers, please advise.
> Seem to be Linux-specific.
> Yes, but the networking code in the Hurd is nicked from Linux. Right
> now we use code from Linux 2.2, but we might upgrade it to Linux 2.4
> in the future. So feel free to add them to the common header.
> But I think it is wise to check for each of these options if they are
> really user-settable. Linux headers tend to contain a lot of junk...
According to Andi Kleen: They're user-settable. I've committed the
appended patch now.
Andreas
2000-07-28 Andreas Jaeger <aj@suse.de>
* sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
============================================================
Index: sysdeps/gnu/netinet/tcp.h
--- sysdeps/gnu/netinet/tcp.h 1999/11/17 20:31:19 1.3
+++ sysdeps/gnu/netinet/tcp.h 2000/07/28 06:42:48
@@ -151,9 +151,16 @@
/*
* User-settable options (used with setsockopt).
*/
-#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
-#define TCP_MAXSEG 0x02 /* set maximum segment size */
-#define TCP_CORK 0x03 /* control sending of partial frames */
+#define TCP_NODELAY 0x01 /* Don't delay send to coalesce packets */
+#define TCP_MAXSEG 0x02 /* Set maximum segment size */
+#define TCP_CORK 0x03 /* Control sending of partial frames */
+#define TCP_KEEPIDLE 0x04 /* Start keeplives after this period */
+#define TCP_KEEPINTVL 0x05 /* Interval between keepalives */
+#define TCP_KEEPCNT 0x06 /* Number of keepalives before death */
+#define TCP_SYNCNT 0x07 /* Number of SYN retransmits */
+#define TCP_LINGER2 0x08 /* Life time of orphaned FIN-WAIT-2 state */
+#define TCP_DEFER_ACCEPT 0x09 /* Wake up listener only when data arrive */
+#define TCP_WINDOW_CLAMP 0x10 /* Bound advertised window */
#define SOL_TCP 6 /* TCP level */
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
More information about the Libc-hacker
mailing list