summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 15:20:03 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 15:20:03 +0000
commit7697079b73360cef3d8f1cd014a87bd923464b26 (patch)
tree5665db3aa5efe6b7a3f37782b930715d9ef13f9b /net.h
parent7d5aca9ee6e92e3a746b9c7b59d31489f68a66f0 (diff)
downloadqemu-7697079b73360cef3d8f1cd014a87bd923464b26.tar.gz
qemu-7697079b73360cef3d8f1cd014a87bd923464b26.tar.bz2
qemu-7697079b73360cef3d8f1cd014a87bd923464b26.zip
qemu: dynamic nic info index allocation (Marcelo Tosatti)
Dynamically allocate nic info index, so to reuse indexes when devices are removed. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6595 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'net.h')
-rw-r--r--net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net.h b/net.h
index 84c3454746..6ddd06fa1a 100644
--- a/net.h
+++ b/net.h
@@ -65,6 +65,7 @@ struct NICInfo {
const char *name;
VLANState *vlan;
void *private;
+ int used;
};
extern int nb_nics;