implement dn_comp RFC 1035 domain name compression
implement dn_comp RFC 1035 domain name compression

the input name is validated, the other parameters are assumed to be
valid (the list of already compressed names are not checked for
infinite reference loops or out-of-bound offsets).

names are handled case-sensitively for now.

chardi/musl,chardi/musl,chardi/musl