xref: /kvmtool/include/kvm/virtio-net.h (revision 69205aa12bc4d49078ce129299c9d8f748a4f1c6)
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 	const char *trans;
11 	char guest_mac[6];
12 	char host_mac[6];
13 	struct kvm *kvm;
14 	int mode;
15 	int vhost;
16 	int fd;
17 };
18 
19 void virtio_net__init(const struct virtio_net_params *params);
20 
21 #define NET_MODE_USER	0
22 #define NET_MODE_TAP	1
23 
24 #endif /* KVM__VIRTIO_NET_H */
25