equal
deleted
inserted
replaced
1 /* TCP.H |
1 /* TCP.H |
2 * |
2 * |
3 * Portions copyright (c) 1997-1999 Symbian Ltd. All rights reserved. |
3 * Portions Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
4 */ |
5 */ |
5 |
6 |
6 /** @file |
7 /** @file |
7 @publishedAll |
8 @publishedAll |
8 @released |
9 @released |
23 |
24 |
24 typedef u_long tcp_seq; |
25 typedef u_long tcp_seq; |
25 /** |
26 /** |
26 TCP header. |
27 TCP header. |
27 Per RFC 793, September, 1981. |
28 Per RFC 793, September, 1981. |
28 @internalComponent |
29 @PublishedAll |
29 */ |
30 */ |
30 struct tcphdr { |
31 struct tcphdr { |
31 u_short th_sport; /* source port */ |
32 u_short th_sport; /* source port */ |
32 u_short th_dport; /* destination port */ |
33 u_short th_dport; /* destination port */ |
33 tcp_seq th_seq; /* sequence number */ |
34 tcp_seq th_seq; /* sequence number */ |
39 u_int th_off:4, /* data offset */ |
40 u_int th_off:4, /* data offset */ |
40 th_x2:4; /* (unused) */ |
41 th_x2:4; /* (unused) */ |
41 #endif |
42 #endif |
42 u_char th_flags; |
43 u_char th_flags; |
43 /** |
44 /** |
44 @internalComponent |
45 @PublishedAll |
45 */ |
46 */ |
46 #define TH_FIN 0x01 |
47 #define TH_FIN 0x01 |
47 /** |
48 /** |
48 @internalComponent |
49 @PublishedAll |
49 */ |
50 */ |
50 #define TH_SYN 0x02 |
51 #define TH_SYN 0x02 |
51 /** |
52 /** |
52 @internalComponent |
53 @PublishedAll |
53 */ |
54 */ |
54 #define TH_RST 0x04 |
55 #define TH_RST 0x04 |
55 /** |
56 /** |
56 @internalComponent |
57 @PublishedAll |
57 */ |
58 */ |
58 #define TH_PUSH 0x08 |
59 #define TH_PUSH 0x08 |
59 /** |
60 /** |
60 @internalComponent |
61 @PublishedAll |
61 */ |
62 */ |
62 #define TH_ACK 0x10 |
63 #define TH_ACK 0x10 |
63 /** |
64 /** |
64 @internalComponent |
65 @PublishedAll |
65 */ |
66 */ |
66 #define TH_URG 0x20 |
67 #define TH_URG 0x20 |
67 u_short th_win; /* window */ |
68 u_short th_win; /* window */ |
68 u_short th_sum; /* checksum */ |
69 u_short th_sum; /* checksum */ |
69 u_short th_urp; /* urgent pointer */ |
70 u_short th_urp; /* urgent pointer */ |