]> git.proxmox.com Git - mirror_qemu.git/blobdiff - slirp/tcp.h
slirp: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types
[mirror_qemu.git] / slirp / tcp.h
index c7e3457b7a6187550e7b4475cb6e0ce8ee383ed0..9d06836626f6a53c7413deb677f633293db3bf18 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef _TCP_H_
 #define _TCP_H_
 
-typedef        u_int32_t       tcp_seq;
+typedef        uint32_t tcp_seq;
 
 #define      PR_SLOWHZ       2               /* 2 slow timeouts per second (approx) */
 #define      PR_FASTHZ       5               /* 5 fast timeouts per second (not important) */
@@ -46,8 +46,8 @@ typedef       u_int32_t       tcp_seq;
  * Per RFC 793, September, 1981.
  */
 struct tcphdr {
-       u_int16_t       th_sport;               /* source port */
-       u_int16_t       th_dport;               /* destination port */
+       uint16_t th_sport;              /* source port */
+       uint16_t th_dport;              /* destination port */
        tcp_seq th_seq;                 /* sequence number */
        tcp_seq th_ack;                 /* acknowledgement number */
 #ifdef HOST_WORDS_BIGENDIAN
@@ -57,16 +57,16 @@ struct tcphdr {
        u_int   th_x2:4,                /* (unused) */
                th_off:4;               /* data offset */
 #endif
-       u_int8_t        th_flags;
+       uint8_t th_flags;
 #define        TH_FIN  0x01
 #define        TH_SYN  0x02
 #define        TH_RST  0x04
 #define        TH_PUSH 0x08
 #define        TH_ACK  0x10
 #define        TH_URG  0x20
-       u_int16_t       th_win;                 /* window */
-       u_int16_t       th_sum;                 /* checksum */
-       u_int16_t       th_urp;                 /* urgent pointer */
+       uint16_t th_win;                /* window */
+       uint16_t th_sum;                /* checksum */
+       uint16_t th_urp;                /* urgent pointer */
 };
 
 #include "tcp_var.h"