From: Asias He Date: Wed, 29 Jun 2011 08:47:13 +0000 (+0800) Subject: kvm tools: Introduce struct uip_udp_socket X-Git-Tag: next-20110824~3^2~179 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8aa377168c66c87907103a1217cf8e86fa89ea5a;p=karo-tx-linux.git kvm tools: Introduce struct uip_udp_socket struct uip_udp_socket is used to present every "connection" between guest and remote host. 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 35c7c23c66a6..473b9c74c1af 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/include/kvm/uip.h @@ -114,6 +114,15 @@ struct uip_buf { int id; }; +struct uip_udp_socket { + struct sockaddr_in addr; + struct list_head list; + pthread_mutex_t *lock; + u32 dport, sport; + u32 dip, sip; + int fd; +}; + struct uip_tx_arg { struct virtio_net_hdr *vnet; struct uip_info *info;