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 <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2011-06-29 16:47:12 +08:00
committed by Will Deacon
parent cbd1f4ac66
commit dfc0655327
+8
View 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;