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