static USBDevice *usb_net_init(const char *cmdline)

{

    USBDevice *dev;

    QemuOpts *opts;

    int idx;



    opts = qemu_opts_parse(&qemu_net_opts, cmdline, NULL);

    if (!opts) {



    qemu_opt_set(opts, "type", "nic");

    qemu_opt_set(opts, "model", "usb");



    idx = net_client_init(NULL, opts, 0);

    if (idx == -1) {





    dev = usb_create(NULL /* FIXME */, "usb-net");




    qdev_set_nic_properties(&dev->qdev, &nd_table[idx]);

    qdev_init_nofail(&dev->qdev);

    return dev;

static USBDevice *usb_net_init(const char *cmdline)

{

    USBDevice *dev;

    QemuOpts *opts;

    int idx;



    opts = qemu_opts_parse(&qemu_net_opts, cmdline, NULL);

    if (!opts) {



    qemu_opt_set(opts, "type", "nic");

    qemu_opt_set(opts, "model", "usb");



    idx = net_client_init(NULL, opts, 0);

    if (idx == -1) {





    dev = usb_create(NULL , "usb-net");




    qdev_set_nic_properties(&dev->qdev, &nd_table[idx]);

    qdev_init_nofail(&dev->qdev);

    return dev;

static USBDevice *FUNC_0(const char *cmdline)

{

    USBDevice *dev;

    QemuOpts *opts;

    int VAR_0;



    opts = qemu_opts_parse(&qemu_net_opts, cmdline, NULL);

    if (!opts) {



    qemu_opt_set(opts, "type", "nic");

    qemu_opt_set(opts, "model", "usb");



    VAR_0 = net_client_init(NULL, opts, 0);

    if (VAR_0 == -1) {





    dev = usb_create(NULL , "usb-net");




    qdev_set_nic_properties(&dev->qdev, &nd_table[VAR_0]);

    qdev_init_nofail(&dev->qdev);

    return dev;

static USBDevice *FUNC_0(const char *cmdline)
{ USBDevice *dev; QemuOpts *opts; int VAR_0; opts = qemu_opts_parse(&qemu_net_opts, cmdline, NULL); if (!opts) { qemu_opt_set(opts, "type", "nic"); qemu_opt_set(opts, "model", "usb"); VAR_0 = net_client_init(NULL, opts, 0); if (VAR_0 == -1) { dev = usb_create(NULL , "usb-net"); qdev_set_nic_properties(&dev->qdev, &nd_table[VAR_0]); qdev_init_nofail(&dev->qdev); return dev;