kvm tools: Introduce struct uip_tcp to present TCP package.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2015-06-01 16:39:45 +01:00
committed by Will Deacon
parent dd7a270b55
commit f2fdf98480
+16
View File
@@ -89,6 +89,22 @@ struct uip_udp {
u8 payload[0];
} __attribute__((packed));
struct uip_tcp {
/*
* FIXME: IP Options (IP hdr len > 20 bytes) are not supported
*/
struct uip_ip ip;
u16 sport;
u16 dport;
u32 seq;
u32 ack;
u8 off;
u8 flg;
u16 win;
u16 csum;
u16 urgent;
} __attribute__((packed));
struct uip_pseudo_hdr {
u32 sip;
u32 dip;