Searched defs:n_labels (Results 1 - 2 of 2) sorted by relevance

/systemd/src/shared/
H A Ddns-domain.c1151 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 Dtest-dns-domain.c503 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 15 milliseconds