Searched refs:n_labels (Results 1 - 3 of 3) sorted by relevance
/systemd/src/shared/ |
H A D | dns-domain.h | 102 int dns_name_suffix(const char *name, unsigned n_labels, const char **ret); 105 int dns_name_skip(const char *a, unsigned n_labels, const char **ret); 106 int dns_name_equal_skip(const char *a, unsigned n_labels, const char *b);
|
H A D | dns-domain.c | 1151 int dns_name_suffix(const char *name, unsigned n_labels, const char **ret) { argument 1162 if ((unsigned) n < n_labels) 1165 *ret = labels[n - n_labels]; 1166 return (int) (n - n_labels); 1169 int dns_name_skip(const char *a, unsigned n_labels, const char **ret) { argument 1175 for (; n_labels > 0; n_labels --) { 1213 int dns_name_equal_skip(const char *a, unsigned n_labels, const char *b) { argument 1219 r = dns_name_skip(a, n_labels, &a);
|
/systemd/src/test/ |
H A D | test-dns-domain.c | 503 static void test_dns_name_suffix_one(const char *name, unsigned n_labels, const char *result, int ret) { argument 506 assert_se(ret == dns_name_suffix(name, n_labels, &p)); 543 static void test_dns_name_equal_skip_one(const char *a, unsigned n_labels, const char *b, int ret) { argument 544 assert_se(dns_name_equal_skip(a, n_labels, b) == ret);
|
Completed in 16 milliseconds