Revision cb4522cc

b/net.c
39 39
static QTAILQ_HEAD(, VLANState) vlans;
40 40
static QTAILQ_HEAD(, VLANClientState) non_vlan_clients;
41 41

  
42
int default_net = 1;
43

  
42 44
/***********************************************************/
43 45
/* network device redirectors */
44 46

  
......
1317 1319

  
1318 1320
int net_init_clients(void)
1319 1321
{
1320
    if (QTAILQ_EMPTY(&qemu_net_opts.head)) {
1322
    if (default_net) {
1321 1323
        /* if no clients, we use a default config */
1322 1324
        qemu_opts_set(&qemu_net_opts, NULL, "type", "nic");
1323 1325
#ifdef CONFIG_SLIRP
......
1353 1355
        return -1;
1354 1356
    }
1355 1357

  
1358
    default_net = 0;
1356 1359
    return 0;
1357 1360
}
b/net.h
139 139

  
140 140
extern int nb_nics;
141 141
extern NICInfo nd_table[MAX_NICS];
142
extern int default_net;
142 143

  
143 144
/* BT HCI info */
144 145

  
b/vl.c
5476 5476
                default_parallel = 0;
5477 5477
                default_monitor = 0;
5478 5478
                default_vga = 0;
5479
                default_net = 0;
5479 5480
                break;
5480 5481
#ifndef _WIN32
5481 5482
            case QEMU_OPTION_chroot:

Also available in: Unified diff