add user option for nodelay; define maxseg option (unused now)
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Tue, 14 Jan 1986 09:27:59 +0000 (01:27 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Tue, 14 Jan 1986 09:27:59 +0000 (01:27 -0800)
SCCS-vsn: sys/netinet/tcp.h 6.4

usr/src/sys/netinet/tcp.h

index c58e3ed..7f4f5c3 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)tcp.h       6.3 (Berkeley) %G%
+ *     @(#)tcp.h       6.4 (Berkeley) %G%
  */
 
 typedef        u_long  tcp_seq;
  */
 
 typedef        u_long  tcp_seq;
@@ -42,3 +42,9 @@ struct tcphdr {
  *  but 512 is probably more convenient.
  */
 #define        TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
  *  but 512 is probably more convenient.
  */
 #define        TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
+
+/*
+ * 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 */