1 #ifndef KVM__VIRTIO_NET_H 2 #define KVM__VIRTIO_NET_H 3 4 struct kvm; 5 6 struct virtio_net_parameters { 7 struct kvm *kvm; 8 const char *host_ip; 9 char guest_mac[6]; 10 const char *script; 11 int mode; 12 }; 13 14 void virtio_net__init(const struct virtio_net_parameters *params); 15 16 #define NET_MODE_USER 0 17 #define NET_MODE_TAP 1 18 19 #endif /* KVM__VIRTIO_NET_H */ 20