Commit | Line | Data |
---|---|---|
2b4b57cd | 1 | /* tcp.h 1.17 81/11/18 */ |
6e8b2eca BJ |
2 | |
3 | /* | |
eb44bfb2 | 4 | * TCP header. |
2b4b57cd | 5 | * Per RFC 793, September, 1981. |
6e8b2eca | 6 | */ |
eb44bfb2 BJ |
7 | struct tcphdr { |
8 | u_short th_sport; /* source port */ | |
9 | u_short th_dport; /* destination port */ | |
10 | seq_t th_seq; /* sequence number */ | |
11 | seq_t th_ackno; /* acknowledgement number */ | |
6e8b2eca | 12 | u_char |
eb44bfb2 BJ |
13 | th_x2:4, /* (unused) */ |
14 | th_off:4; /* data offset */ | |
a3d78bbd BJ |
15 | u_char th_flags; |
16 | #define TH_FIN 001 | |
17 | #define TH_SYN 002 | |
18 | #define TH_RST 004 | |
19 | #define TH_EOL 010 | |
20 | #define TH_ACK 020 | |
21 | #define TH_URG 040 | |
eb44bfb2 BJ |
22 | u_short th_win; /* window */ |
23 | u_short th_sum; /* checksum */ | |
24 | u_short th_urp; /* urgent pointer */ | |
121f5f3a | 25 | }; |