xref: /kvmtool/include/kvm/virtio-net.h (revision f19edd1e9832f14334e7deb13adccbb1928d4124)
1 #ifndef KVM__VIRTIO_NET_H
2 #define KVM__VIRTIO_NET_H
3 
4 struct kvm;
5 
6 struct virtio_net_params {
7 	const char *guest_ip;
8 	const char *host_ip;
9 	const char *script;
10 	char guest_mac[6];
11 	char host_mac[6];
12 	struct kvm *kvm;
13 	int mode;
14 	int vhost;
15 	int fd;
16 };
17 
18 void virtio_net__init(const struct virtio_net_params *params);
19 
20 #define NET_MODE_USER	0
21 #define NET_MODE_TAP	1
22 
23 #endif /* KVM__VIRTIO_NET_H */
24