void net_host_device_add(Monitor *mon, const char *device, const char *opts)

{

    if (!net_host_check_device(device)) {

        monitor_printf(mon, "invalid host network device %s\n", device);

        return;

    }

    if (net_client_init(device, opts ? : "") < 0) {

        monitor_printf(mon, "adding host network device %s failed\n", device);

    }

}

void net_host_device_add(Monitor *mon, const char *device, const char *opts)

{

    if (!net_host_check_device(device)) {

        monitor_printf(mon, "invalid host network device %s\n", device);

        return;

    }

    if (net_client_init(device, opts ? : "") < 0) {

        monitor_printf(mon, "adding host network device %s failed\n", device);

    }

}

void FUNC_0(Monitor *VAR_0, const char *VAR_1, const char *VAR_2)

{

    if (!net_host_check_device(VAR_1)) {

        monitor_printf(VAR_0, "invalid host network VAR_1 %s\n", VAR_1);

        return;

    }

    if (net_client_init(VAR_1, VAR_2 ? : "") < 0) {

        monitor_printf(VAR_0, "adding host network VAR_1 %s failed\n", VAR_1);

    }

}

void FUNC_0(Monitor *VAR_0, const char *VAR_1, const char *VAR_2)
{ if (!net_host_check_device(VAR_1)) { monitor_printf(VAR_0, "invalid host network VAR_1 %s\n", VAR_1); return; } if (net_client_init(VAR_1, VAR_2 ? : "") < 0) { monitor_printf(VAR_0, "adding host network VAR_1 %s failed\n", VAR_1); } }