X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net.h;h=5b883a96bacee1d9cff5a49b40a7efbbe4a1b2f8;hb=2e97f03ed7719d95e739c4050459b5026ef3cc6c;hp=44c31a9b321f468ca4a3dbbca2bd97b5d9d45a66;hpb=a083a89d7277f3268a251ce635d9aae5559242bd;p=qemu.git diff --git a/net.h b/net.h index 44c31a9b3..5b883a96b 100644 --- a/net.h +++ b/net.h @@ -17,12 +17,14 @@ typedef struct NICConf { MACAddr macaddr; VLANState *vlan; VLANClientState *peer; + int32_t bootindex; } NICConf; #define DEFINE_NIC_PROPERTIES(_state, _conf) \ DEFINE_PROP_MACADDR("mac", _state, _conf.macaddr), \ DEFINE_PROP_VLAN("vlan", _state, _conf.vlan), \ - DEFINE_PROP_NETDEV("netdev", _state, _conf.peer) + DEFINE_PROP_NETDEV("netdev", _state, _conf.peer), \ + DEFINE_PROP_INT32("bootindex", _state, _conf.bootindex, -1) /* VLANs support */ @@ -131,7 +133,8 @@ struct NICInfo { char *devaddr; VLANState *vlan; VLANClientState *netdev; - int used; + int used; /* is this slot in nd_table[] being used? */ + int instantiated; /* does this NICInfo correspond to an instantiated NIC? */ int nvectors; };