summaryrefslogtreecommitdiff
path: root/src/shared/dns-domain.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-20 02:02:45 +0200
committerTom Gundersen <teg@jklm.no>2015-07-28 00:07:32 +0200
commitae72b22c40569de7dba810073ea9da299491ef60 (patch)
tree91b07210c5c0a539be3797b3b679865e2eeba14b /src/shared/dns-domain.h
parent5dfd7011ba4821010825bf1259006bfb9918201c (diff)
shared: dns-name - add dns_name_between()
Given three DNS names this function indicates if the second argument lies strictly between the first and the third according to the canonical DNS name order. Note that the order is circular, so the last name is considered to be before the first.
Diffstat (limited to 'src/shared/dns-domain.h')
-rw-r--r--src/shared/dns-domain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/dns-domain.h b/src/shared/dns-domain.h
index 5728ce34bb..bd50ad3e6d 100644
--- a/src/shared/dns-domain.h
+++ b/src/shared/dns-domain.h
@@ -50,6 +50,7 @@ unsigned long dns_name_hash_func(const void *s, const uint8_t hash_key[HASH_KEY_
int dns_name_compare_func(const void *a, const void *b);
extern const struct hash_ops dns_name_hash_ops;
+int dns_name_between(const char *a, const char *b, const char *c);
int dns_name_equal(const char *x, const char *y);
int dns_name_endswith(const char *name, const char *suffix);