]> git.proxmox.com Git - qemu.git/blobdiff - net.h
net: allow NICs to be connected to netdevs
[qemu.git] / net.h
diff --git a/net.h b/net.h
index e23047c3ec81534234bfce49827f40da6f2cfa66..fa59c3d22cfb0815129482dcf8de39e6cc474248 100644 (file)
--- a/net.h
+++ b/net.h
@@ -28,6 +28,7 @@ struct VLANClientState {
     void *opaque;
     QTAILQ_ENTRY(VLANClientState) next;
     struct VLANState *vlan;
+    VLANClientState *peer;
     char *model;
     char *name;
     char info_str[256];
@@ -56,6 +57,7 @@ struct VLANState {
 
 VLANState *qemu_find_vlan(int id, int allocate);
 VLANClientState *qemu_new_vlan_client(VLANState *vlan,
+                                      VLANClientState *peer,
                                       const char *model,
                                       const char *name,
                                       NetCanReceive *can_receive,