Revision b6dce92e slirp/tcp.h
b/slirp/tcp.h | ||
---|---|---|
33 | 33 |
#ifndef _TCP_H_ |
34 | 34 |
#define _TCP_H_ |
35 | 35 |
|
36 |
typedef u_int32_t tcp_seq;
|
|
36 |
typedef uint32_t tcp_seq;
|
|
37 | 37 |
|
38 | 38 |
#define PR_SLOWHZ 2 /* 2 slow timeouts per second (approx) */ |
39 | 39 |
#define PR_FASTHZ 5 /* 5 fast timeouts per second (not important) */ |
... | ... | |
46 | 46 |
* Per RFC 793, September, 1981. |
47 | 47 |
*/ |
48 | 48 |
struct tcphdr { |
49 |
u_int16_t th_sport; /* source port */
|
|
50 |
u_int16_t th_dport; /* destination port */
|
|
49 |
uint16_t th_sport; /* source port */
|
|
50 |
uint16_t th_dport; /* destination port */
|
|
51 | 51 |
tcp_seq th_seq; /* sequence number */ |
52 | 52 |
tcp_seq th_ack; /* acknowledgement number */ |
53 | 53 |
#ifdef HOST_WORDS_BIGENDIAN |
... | ... | |
57 | 57 |
u_int th_x2:4, /* (unused) */ |
58 | 58 |
th_off:4; /* data offset */ |
59 | 59 |
#endif |
60 |
u_int8_t th_flags;
|
|
60 |
uint8_t th_flags;
|
|
61 | 61 |
#define TH_FIN 0x01 |
62 | 62 |
#define TH_SYN 0x02 |
63 | 63 |
#define TH_RST 0x04 |
64 | 64 |
#define TH_PUSH 0x08 |
65 | 65 |
#define TH_ACK 0x10 |
66 | 66 |
#define TH_URG 0x20 |
67 |
u_int16_t th_win; /* window */
|
|
68 |
u_int16_t th_sum; /* checksum */
|
|
69 |
u_int16_t th_urp; /* urgent pointer */
|
|
67 |
uint16_t th_win; /* window */
|
|
68 |
uint16_t th_sum; /* checksum */
|
|
69 |
uint16_t th_urp; /* urgent pointer */
|
|
70 | 70 |
}; |
71 | 71 |
|
72 | 72 |
#include "tcp_var.h" |
Also available in: Unified diff