]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Introduce struct uip_tcp to present TCP package.
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:18 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:42 +0000 (10:42 +0300)
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/uip.h

index ccc16985c981a3788afa5979c324b8ce1e31bd51..136869444534d9944cf9e70639b0b638444ccd78 100644 (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;