aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-12-08 13:11:47 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-12 08:17:30 -0600
commit782e9e6554d2404689a156282622046538bccd17 (patch)
tree287cf852f8ac83f9e9bd87fae32810f997b88e70 /net.h
parentdefault devices: add global cmd line option. (diff)
downloadqemu-kvm-782e9e6554d2404689a156282622046538bccd17.tar.gz
qemu-kvm-782e9e6554d2404689a156282622046538bccd17.tar.bz2
qemu-kvm-782e9e6554d2404689a156282622046538bccd17.zip
default devices: network
Add a default_net variable which specified whenever a default network should be created. It is cleared in case any -net option is specified and it is also added to the new -nodefaults switch. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit cb4522ccf67ba84d246291d9f75bd7f3df137d1a)
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 d583d590a..4971fcbbb 100644
--- a/net.h
+++ b/net.h
@@ -139,6 +139,7 @@ struct NICInfo {
extern int nb_nics;
extern NICInfo nd_table[MAX_NICS];
+extern int default_net;
/* BT HCI info */