about summary refs log tree commit diff
path: root/resolv/tst-resolv-binary.c
Commit message (Collapse)AuthorAgeFilesLines
* resolv: Support binary labels in test frameworkFlorian Weimer2018-01-081-0/+120
The old implementation based on hsearch_r used an ad-hoc C string encoding and produced an incorrect format on the wire for domain names which contained bytes which needed escaping when printed. This commit switches to ns_name_pton for the wire format conversion (now that we have separate tests for it) and uses a tsearch tree with a suitable comparison function to locate compression targets.