Revision a3a766e7 net.c

b/net.c
2451 2451
    return idx;
2452 2452
}
2453 2453

  
2454
#if defined(CONFIG_SLIRP)
2454 2455
static int net_init_slirp_configs(const char *name, const char *value, void *opaque)
2455 2456
{
2456 2457
    struct slirp_config_str *config;
......
2546 2547

  
2547 2548
    return ret;
2548 2549
}
2550
#endif /* CONFIG_SLIRP */
2549 2551

  
2550 2552
#ifdef _WIN32
2551 2553
static int net_init_tap_win32(QemuOpts *opts, Monitor *mon)
......
3227 3229

  
3228 3230
int net_client_parse(const char *optarg)
3229 3231
{
3232
#if defined(CONFIG_SLIRP)
3230 3233
    /* handle legacy -net channel,port:chr */
3231 3234
    if (!strncmp(optarg, "channel,", strlen("channel,"))) {
3232 3235
        int ret;
......
3248 3251

  
3249 3252
        return ret;
3250 3253
    }
3251

  
3254
#endif
3252 3255
    if (!qemu_opts_parse(&qemu_net_opts, optarg, "type")) {
3253 3256
        return -1;
3254 3257
    }

Also available in: Unified diff