Lines Matching refs:target
95 _cleanup_free_ char *target = NULL; in test_dns_resource_record_get_cname_target() local
100 …me_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "waldo"), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
101 …e_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "foobar"), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
102 …ame_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux"), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
103 …t_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, ""), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
104 …_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "."), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
105 …DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "nope.quux.foobar"), cname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
106 …ame_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux.foobar"), cname, &target) == 0); in test_dns_resource_record_get_cname_target()
107 assert_se(streq(target, "wuff.wuff")); in test_dns_resource_record_get_cname_target()
108 target = mfree(target); in test_dns_resource_record_get_cname_target()
113 …me_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "waldo"), dname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
114 …e_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "foobar"), dname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
115 …ame_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux"), dname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
116 …t_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, ""), dname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
117 …_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "."), dname, &target) == -EUNATCH); in test_dns_resource_record_get_cname_target()
118 …arget(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "yupp.quux.foobar"), dname, &target) == 0); in test_dns_resource_record_get_cname_target()
119 assert_se(streq(target, "yupp.wuff.wuff")); in test_dns_resource_record_get_cname_target()
120 target = mfree(target); in test_dns_resource_record_get_cname_target()
122 …ame_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux.foobar"), cname, &target) == 0); in test_dns_resource_record_get_cname_target()
123 assert_se(streq(target, "wuff.wuff")); in test_dns_resource_record_get_cname_target()