about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-07-28 07:37:38 +0000
committerAndreas Jaeger <aj@suse.de>2000-07-28 07:37:38 +0000
commit2ef4fbbd3370f7a2667ee68dbcae805bba98ffc7 (patch)
tree56beebdd90c56860a0bc6c167cd75e3edabdb83b
parent51f46f92a9df6f654316339e8329cad3e66819b9 (diff)
downloadglibc-2ef4fbbd3370f7a2667ee68dbcae805bba98ffc7.tar.gz
glibc-2ef4fbbd3370f7a2667ee68dbcae805bba98ffc7.tar.xz
glibc-2ef4fbbd3370f7a2667ee68dbcae805bba98ffc7.zip
Add TCP options from Linux 2.4.
-rw-r--r--sysdeps/gnu/netinet/tcp.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h
index 1783215643..0823a1e8a5 100644
--- a/sysdeps/gnu/netinet/tcp.h
+++ b/sysdeps/gnu/netinet/tcp.h
@@ -151,9 +151,16 @@ enum
 /*
  * 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 */