Message ID | 1309423279-3093-8-git-send-email-asias.hejun@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tools/kvm/include/kvm/uip.h b/tools/kvm/include/kvm/uip.h index e220403..35c7c23 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/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;
This pseudo header is used for UDP checksum. Signed-off-by: Asias He <asias.hejun@gmail.com> --- tools/kvm/include/kvm/uip.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)