mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-28 09:55:57 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user