From: Asias He Date: Wed, 29 Jun 2011 08:47:11 +0000 (+0800) Subject: kvm tools: Introduce struct uip_udp to present UDP package X-Git-Tag: next-20110824~3^2~181 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0433685947d3f8777c35e0b76fb77cc09b28bc0d;p=karo-tx-linux.git kvm tools: Introduce struct uip_udp to present UDP package Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/include/kvm/uip.h b/tools/kvm/include/kvm/uip.h index b9fa932401ff..e2204038c666 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/include/kvm/uip.h @@ -60,6 +60,21 @@ struct uip_icmp { u16 seq; } __attribute__((packed)); +struct uip_udp { + /* + * FIXME: IP Options (IP hdr len > 20 bytes) are not supported + */ + struct uip_ip ip; + u16 sport; + u16 dport; + /* + * len = UDP hdr + UDP payload + */ + u16 len; + u16 csum; + u8 payload[0]; +} __attribute__((packed)); + struct uip_info { struct list_head udp_socket_head; struct list_head tcp_socket_head;