Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
3 * Portions copyright (c) 1997-1999 Symbian Ltd. All rights reserved.
12 * Copyright (c) 1982, 1986 Regents of the University of California.
13 * All rights reserved. The Berkeley software License Agreement
14 * specifies the terms and conditions for redistribution.
17 #ifndef _NETINET_TCP_H
18 #define _NETINET_TCP_H
24 typedef u_long tcp_seq;
27 Per RFC 793, September, 1981.
31 u_short th_sport; /* source port */
32 u_short th_dport; /* destination port */
33 tcp_seq th_seq; /* sequence number */
34 tcp_seq th_ack; /* acknowledgement number */
35 #ifdef _BIT_FIELDS_LTOH
36 u_int th_x2:4, /* (unused) */
37 th_off:4; /* data offset */
39 u_int th_off:4, /* data offset */
40 th_x2:4; /* (unused) */
67 u_short th_win; /* window */
68 u_short th_sum; /* checksum */
69 u_short th_urp; /* urgent pointer */
74 #define TCPOPT_MAXSEG 2
77 Default maximum segment size for TCP.
78 With an IP MSS of 576, this is 536,
79 but 512 is probably more convenient.
84 #define TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
88 User-settable options (used with setsockopt).
90 #define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
91 #define TCP_MAXSEG 0x02 /* set maximum segment size */
93 #define TCP_NOTIFY_THRESHOLD 0x10
94 #define TCP_ABORT_THRESHOLD 0x11
95 #define TCP_CONN_NOTIFY_THRESHOLD 0x12
96 #define TCP_CONN_ABORT_THRESHOLD 0x13
103 #endif /* _NETINET_TCP_H */