xref: /kvmtool/include/kvm/virtio-net.h (revision 9a6d73f16d0195c0f57e651d92aa6aa02a52bb00)
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 };
15 
16 void virtio_net__init(const struct virtio_net_params *params);
17 
18 #define NET_MODE_USER	0
19 #define NET_MODE_TAP	1
20 
21 #endif /* KVM__VIRTIO_NET_H */
22