static void tap_cleanup(VLANClientState *nc)

{

    TAPState *s = DO_UPCAST(TAPState, nc, nc);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);


    }



    qemu_purge_queued_packets(nc);



    if (s->down_script[0])

        launch_script(s->down_script, s->down_script_arg, s->fd);



    tap_read_poll(s, 0);

    tap_write_poll(s, 0);

    close(s->fd);

}
static void tap_cleanup(VLANClientState *nc)

{

    TAPState *s = DO_UPCAST(TAPState, nc, nc);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);


    }



    qemu_purge_queued_packets(nc);



    if (s->down_script[0])

        launch_script(s->down_script, s->down_script_arg, s->fd);



    tap_read_poll(s, 0);

    tap_write_poll(s, 0);

    close(s->fd);

}
static void FUNC_0(VLANClientState *VAR_0)

{

    TAPState *s = DO_UPCAST(TAPState, VAR_0, VAR_0);



    if (s->vhost_net) {

        vhost_net_cleanup(s->vhost_net);


    }



    qemu_purge_queued_packets(VAR_0);



    if (s->down_script[0])

        launch_script(s->down_script, s->down_script_arg, s->fd);



    tap_read_poll(s, 0);

    tap_write_poll(s, 0);

    close(s->fd);

}
static void FUNC_0(VLANClientState *VAR_0)
{ TAPState *s = DO_UPCAST(TAPState, VAR_0, VAR_0); if (s->vhost_net) { vhost_net_cleanup(s->vhost_net); } qemu_purge_queued_packets(VAR_0); if (s->down_script[0])
launch_script(s->down_script, s->down_script_arg, s->fd); tap_read_poll(s, 0); tap_write_poll(s, 0); close(s->fd); }