7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomistatic inline char
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * Will compare names in accordance with RFC4343
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomiint dns_compare(const char *a, const char *b) ATTR_PURE;
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomiint dns_ncompare(const char *a, const char *b, size_t n) ATTR_PURE;
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * Same as above but done by labels from right to left
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * www.example.org and www.example.net would be compared as
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * org = net (return first difference)
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * example = example
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomiint dns_compare_labels(const char *a, const char *b) ATTR_PURE;
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * Will match names in RFC4592 style
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * this means *.foo.bar will match name.foo.bar
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomi * but *DOES NOT* match something.name.foo.bar
7cb5a6d1f52abfe2e31f1404cce01ca63daacd17Aki Tuomiint dns_match_wildcard(const char *name, const char *mask) ATTR_PURE;