domain_match
matched = domain_match((char *)dnsname, name_length, expected);
return domain_match(buf, name_length, expected);