int net_init_dump(QemuOpts *opts, const char *name, VLANState *vlan)

{

    int len;

    const char *file;

    char def_file[128];



    assert(vlan);



    file = qemu_opt_get(opts, "file");

    if (!file) {

        snprintf(def_file, sizeof(def_file), "qemu-vlan%d.pcap", vlan->id);

        file = def_file;

    }



    len = qemu_opt_get_size(opts, "len", 65536);



    return net_dump_init(vlan, "dump", name, file, len);

}

int net_init_dump(QemuOpts *opts, const char *name, VLANState *vlan)

{

    int len;

    const char *file;

    char def_file[128];



    assert(vlan);



    file = qemu_opt_get(opts, "file");

    if (!file) {

        snprintf(def_file, sizeof(def_file), "qemu-vlan%d.pcap", vlan->id);

        file = def_file;

    }



    len = qemu_opt_get_size(opts, "len", 65536);



    return net_dump_init(vlan, "dump", name, file, len);

}

int net_init_dump(QemuOpts *opts, const char *name, VLANState *vlan)
int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)

{

    int VAR_3;

    const char *VAR_4;

    char VAR_5[128];



    assert(VAR_2);



    VAR_4 = qemu_opt_get(VAR_0, "VAR_4");

    if (!VAR_4) {

        snprintf(VAR_5, sizeof(VAR_5), "qemu-VAR_2%d.pcap", VAR_2->id);

        VAR_4 = VAR_5;

    }



    VAR_3 = qemu_opt_get_size(VAR_0, "VAR_3", 65536);



    return net_dump_init(VAR_2, "dump", VAR_1, VAR_4, VAR_3);

}

int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)
{ int VAR_3; const char *VAR_4; char VAR_5[128]; assert(VAR_2); VAR_4 = qemu_opt_get(VAR_0, "VAR_4"); if (!VAR_4) { snprintf(VAR_5, sizeof(VAR_5), "qemu-VAR_2%d.pcap", VAR_2->id); VAR_4 = VAR_5; } VAR_3 = qemu_opt_get_size(VAR_0, "VAR_3", 65536); return net_dump_init(VAR_2, "dump", VAR_1, VAR_4, VAR_3); }