61 |
u_int16_t th_dport; /* destination port */ |
u_int16_t th_dport; /* destination port */ |
62 |
tcp_seq th_seq; /* sequence number */ |
tcp_seq th_seq; /* sequence number */ |
63 |
tcp_seq th_ack; /* acknowledgement number */ |
tcp_seq th_ack; /* acknowledgement number */ |
64 |
# if __BYTE_ORDER == __LITTLE_ENDIAN |
#if __BYTE_ORDER == __LITTLE_ENDIAN |
65 |
u_int8_t th_x2:4; /* (unused) */ |
u_int8_t th_x2:4; /* (unused) */ |
66 |
u_int8_t th_off:4; /* data offset */ |
u_int8_t th_off:4; /* data offset */ |
67 |
# endif |
#elif __BYTE_ORDER == __BIG_ENDIAN |
|
# if __BYTE_ORDER == __BIG_ENDIAN |
|
68 |
u_int8_t th_off:4; /* data offset */ |
u_int8_t th_off:4; /* data offset */ |
69 |
u_int8_t th_x2:4; /* (unused) */ |
u_int8_t th_x2:4; /* (unused) */ |
70 |
# endif |
#else |
71 |
|
# error "Please fix <bits/endian.h>" |
72 |
|
#endif |
73 |
u_int8_t th_flags; |
u_int8_t th_flags; |
74 |
# define TH_FIN 0x01 |
# define TH_FIN 0x01 |
75 |
# define TH_SYN 0x02 |
# define TH_SYN 0x02 |
181 |
u_int32_t tcpi_reordering; |
u_int32_t tcpi_reordering; |
182 |
}; |
}; |
183 |
|
|
184 |
#endif /* __BSDTCP_H__ */ |
#endif /* __BSD_TCP_H__ */ |