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