merge_equal (struct dns_transmit *a, struct dns_transmit *b)
{
    const char *ip1 = a->servers + 4 * a->curserver;
    const char *ip2 = b->servers + 4 * b->curserver;

    return byte_equal (ip1, 4, ip2)
            && byte_equal (a->qtype, 2, b->qtype)
            && dns_domain_equal(a->query + 14, b->query + 14);
}
merge_equal (struct dns_transmit *a, struct dns_transmit *b)
{
    const char *ip1 = a->servers + 4 * a->curserver;
    const char *ip2 = b->servers + 4 * b->curserver;

    return byte_equal (ip1, 4, ip2)
            && byte_equal (a->qtype, 2, b->qtype)
            && dns_domain_equal(a->query + 14, b->query + 14);
}