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 <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2015-06-01 16:39:45 +01:00
committed by Will Deacon
parent dfc0655327
commit 4768afc6f0
+9
View File
@@ -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;