From dfc06553276d83c020522dae87e4bc8200991a1f Mon Sep 17 00:00:00 2001 From: Asias He Date: Wed, 29 Jun 2011 16:47:12 +0800 Subject: [PATCH] kvm tools: Introduce struct uip_pseudo_hdr to present UDP pseudo header This pseudo header is used for UDP checksum. Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- include/kvm/uip.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/kvm/uip.h b/include/kvm/uip.h index e220403..35c7c23 100644 --- a/include/kvm/uip.h +++ b/include/kvm/uip.h @@ -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;