Lines Matching refs:address
49 from_string (const char *address) in from_string() argument
52 if (inet_pton (AF_INET6, address, &addr) != 1) in from_string()
53 FAIL_EXIT1 ("inet_pton (\"%s\")", address); in from_string()
60 call_gai (int family, const char *address, const char *scope, in call_gai() argument
70 char *fulladdr = xasprintf ("%s%%%s", address, scope); in call_gai()
119 expect_failure (const char *address, const char *scope) in expect_failure() argument
122 printf ("info: expecting failure for %s%%%s\n", address, scope); in expect_failure()
123 struct in6_addr addr = from_string (address); in expect_failure()
129 address, scope); in expect_failure()
135 address, scope); in expect_failure()
139 if (call_gai (AF_UNSPEC, address, scope, &sa)) in expect_failure()
143 address, scope); in expect_failure()
145 if (call_gai (AF_INET6, address, scope, &sa)) in expect_failure()
149 address, scope); in expect_failure()
155 expect_success (const char *address, const char *scope, uint32_t expected) in expect_success() argument
158 printf ("info: expecting success for %s%%%s\n", address, scope); in expect_success()
159 struct in6_addr addr = from_string (address); in expect_success()
165 address, scope); in expect_success()
171 address, scope); in expect_success()
178 if (call_gai (AF_UNSPEC, address, scope, &sa)) in expect_success()
179 check_ai ("AF_UNSPEC", address, scope, &sa, &addr, expected); in expect_success()
184 address, scope); in expect_success()
187 if (call_gai (AF_INET6, address, scope, &sa)) in expect_success()
188 check_ai ("AF_INET6", address, scope, &sa, &addr, expected); in expect_success()
193 address, scope); in expect_success()