]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Introduce struct uip_pseudo_hdr to present UDP pseudo header
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:12 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:17 +0000 (10:42 +0300)
This pseudo header is used for UDP checksum.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/uip.h

index e2204038c66646f9902394f25ef8ea9d8c6a1f4f..35c7c23c66a601566e7de2b35a296d6db730c795 100644 (file)
@@ -75,6 +75,14 @@ struct uip_udp {
        u8 payload[0];
 } __attribute__((packed));
 
+struct uip_pseudo_hdr {
+       u32 sip;
+       u32 dip;
+       u8 zero;
+       u8 proto;
+       u16 len;
+} __attribute__((packed));
+
 struct uip_info {
        struct list_head udp_socket_head;
        struct list_head tcp_socket_head;