packetfree (struct dns_transmit *d)
{
    if (!d->packet)
        return;
    alloc_free (d->packet);
    d->packet = 0;
}
packetfree (struct dns_transmit *d)
{
    if (!d->packet)
        return;
    alloc_free (d->packet);
    d->packet = 0;
}