summaryrefslogtreecommitdiff
path: root/slirp/tcp.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-08-06 14:23:29 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2011-08-14 23:34:44 -0700
commit4cf4db48bd5ec5d9475d155ea0fc147ec43146ed (patch)
treefa1d472256fa73e208095c04533112c100f95f48 /slirp/tcp.h
parent73e9aa9273b3b8aa70db68d6f4cc09d819e8dd1c (diff)
downloadqemu-4cf4db48bd5ec5d9475d155ea0fc147ec43146ed.tar.gz
qemu-4cf4db48bd5ec5d9475d155ea0fc147ec43146ed.tar.bz2
qemu-4cf4db48bd5ec5d9475d155ea0fc147ec43146ed.zip
slirp: Fix bit field types in IP header structs
-mms-bitfields prevents that the bitfields in current IP header structs are packed into a single byte as it is required. Fix this by using uint8_t as backing type. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/tcp.h')
-rw-r--r--slirp/tcp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/tcp.h b/slirp/tcp.h
index 9d06836626..b3817cb13c 100644
--- a/slirp/tcp.h
+++ b/slirp/tcp.h
@@ -51,10 +51,10 @@ struct tcphdr {
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
#ifdef HOST_WORDS_BIGENDIAN
- u_int th_off:4, /* data offset */
+ uint8_t th_off:4, /* data offset */
th_x2:4; /* (unused) */
#else
- u_int th_x2:4, /* (unused) */
+ uint8_t th_x2:4, /* (unused) */
th_off:4; /* data offset */
#endif
uint8_t th_flags;