Lines Matching refs:what
9 static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int… in test_dns_label_unescape_one() argument
12 const char *w = what; in test_dns_label_unescape_one()
14 log_info("%s, %s, %zu, →%d/%d", what, expect, buffer_sz, ret, ret_ldh); in test_dns_label_unescape_one()
21 w = what; in test_dns_label_unescape_one()
27 w = what; in test_dns_label_unescape_one()
29 const int ret_noe = strchr(what, '\\') ? -EINVAL : ret; in test_dns_label_unescape_one()
60 static void test_dns_name_to_wire_format_one(const char *what, const char *expect, size_t buffer_sz… in test_dns_name_to_wire_format_one() argument
64 log_info("%s, %s, %zu, →%d", what, expect, buffer_sz, ret); in test_dns_name_to_wire_format_one()
66 r = dns_name_to_wire_format(what, buffer, buffer_sz, false); in test_dns_name_to_wire_format_one()
122 static void test_dns_label_unescape_suffix_one(const char *what, const char *expect1, const char *e… in test_dns_label_unescape_suffix_one() argument
127 log_info("%s, %s, %s, %zu, %d, %d", what, expect1, expect2, buffer_sz, ret1, ret2); in test_dns_label_unescape_suffix_one()
129 label = what + strlen(what); in test_dns_label_unescape_suffix_one()
131 r = dns_label_unescape_suffix(what, &label, buffer, buffer_sz); in test_dns_label_unescape_suffix_one()
136 r = dns_label_unescape_suffix(what, &label, buffer, buffer_sz); in test_dns_label_unescape_suffix_one()
164 static void test_dns_label_escape_one(const char *what, size_t l, const char *expect, int ret) { in test_dns_label_escape_one() argument
168 log_info("%s, %zu, %s, →%d", what, l, expect, ret); in test_dns_label_escape_one()
170 r = dns_label_escape_new(what, l, &t); in test_dns_label_escape_one()
186 static void test_dns_name_normalize_one(const char *what, const char *expect, int ret) { in test_dns_name_normalize_one() argument
190 r = dns_name_normalize(what, 0, &t); in test_dns_name_normalize_one()