void qemu_net_queue_purge(NetQueue *queue, NetClientState *from)

{

    NetPacket *packet, *next;



    QTAILQ_FOREACH_SAFE(packet, &queue->packets, entry, next) {

        if (packet->sender == from) {

            QTAILQ_REMOVE(&queue->packets, packet, entry);


            g_free(packet);

        }

    }

}
void qemu_net_queue_purge(NetQueue *queue, NetClientState *from)

{

    NetPacket *packet, *next;



    QTAILQ_FOREACH_SAFE(packet, &queue->packets, entry, next) {

        if (packet->sender == from) {

            QTAILQ_REMOVE(&queue->packets, packet, entry);


            g_free(packet);

        }

    }

}
void FUNC_0(NetQueue *VAR_0, NetClientState *VAR_1)

{

    NetPacket *packet, *next;



    QTAILQ_FOREACH_SAFE(packet, &VAR_0->packets, entry, next) {

        if (packet->sender == VAR_1) {

            QTAILQ_REMOVE(&VAR_0->packets, packet, entry);


            g_free(packet);

        }

    }

}
void FUNC_0(NetQueue *VAR_0, NetClientState *VAR_1)
{ NetPacket *packet, *next; QTAILQ_FOREACH_SAFE(packet, &VAR_0->packets, entry, next) { if (packet->sender == VAR_1) { QTAILQ_REMOVE(&VAR_0->packets, packet, entry); g_free(packet); } } }