* Fixup some more headers, following axeld's lead with stdint.h (new_stack didn't compile for me without these).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18010 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema
2006-07-03 03:27:04 +00:00
parent fb7cf8c43e
commit 62b4effa0a
5 changed files with 100 additions and 94 deletions
+15 -13
View File
@@ -37,25 +37,27 @@
#ifndef NETINET_TCP_H
#define NETINET_TCP_H
typedef uint32 tcp_seq;
#include <stdint.h>
typedef uint32_t tcp_seq;
struct tcphdr {
uint16 th_sport; /* src port */
uint16 th_dport; /* dest. port */
tcp_seq th_seq; /* seq number */
tcp_seq th_ack; /* ack number */
uint16_t th_sport; /* src port */
uint16_t th_dport; /* dest. port */
tcp_seq th_seq; /* seq number */
tcp_seq th_ack; /* ack number */
#if B_HOST_IS_BENDIAN
uint8 th_off:4,
th_x2:4;
uint8_t th_off:4,
th_x2:4;
#else
uint8 th_x2:4, /* unused */
th_off:4; /* data offset */
uint8_t th_x2:4, /* unused */
th_off:4; /* data offset */
#endif
uint8 th_flags; /* ACK, FIN, PUSH, RST, SYN, URG */
uint16 th_win; /* advertised window */
uint16 th_sum; /* checksum */
uint16 th_urp; /* urgent offset */
uint8_t th_flags; /* ACK, FIN, PUSH, RST, SYN, URG */
uint16_t th_win; /* advertised window */
uint16_t th_sum; /* checksum */
uint16_t th_urp; /* urgent offset */
} _PACKED;
#define TH_FIN 0x01