Lines Matching +defs:string +defs:match

23 #include <string.h>
31 #include <isc/string.h>
172 const char *string) {
183 strlcpy(elt.as_string, string, sizeof(elt.as_string));
190 const char *string) {
201 strlcpy(elt.as_string, string, sizeof(elt.as_string));
208 bool match;
216 match = do_lookup_string("10.53.0.1", dns_geoip_country_code, "AU");
217 assert_true(match);
219 match = do_lookup_string("10.53.0.1", dns_geoip_country_name,
221 assert_true(match);
223 match = do_lookup_string("192.0.2.128", dns_geoip_country_code, "O1");
224 assert_true(match);
226 match = do_lookup_string("192.0.2.128", dns_geoip_country_name,
228 assert_true(match);
233 bool match;
241 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
243 assert_true(match);
245 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
247 assert_true(match);
252 bool match;
260 match = do_lookup_string("10.53.0.1", dns_geoip_city_continentcode,
262 assert_true(match);
264 match = do_lookup_string("10.53.0.1", dns_geoip_city_countrycode, "US");
265 assert_true(match);
267 match = do_lookup_string("10.53.0.1", dns_geoip_city_countryname,
269 assert_true(match);
271 match = do_lookup_string("10.53.0.1", dns_geoip_city_region, "CA");
272 assert_true(match);
274 match = do_lookup_string("10.53.0.1", dns_geoip_city_regionname,
276 assert_true(match);
278 match = do_lookup_string("10.53.0.1", dns_geoip_city_name,
280 assert_true(match);
282 match = do_lookup_string("10.53.0.1", dns_geoip_city_postalcode,
284 assert_true(match);
289 bool match;
297 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
299 assert_true(match);
301 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
303 assert_true(match);
305 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
308 assert_true(match);
310 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
312 assert_true(match);
314 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
316 assert_true(match);
318 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
320 assert_true(match);
322 match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
324 assert_true(match);
329 bool match;
337 match = do_lookup_string("10.53.0.3", dns_geoip_as_asnum, "AS100003");
338 assert_true(match);
343 bool match;
351 match = do_lookup_string("10.53.0.1", dns_geoip_isp_name,
353 assert_true(match);
358 bool match;
366 match = do_lookup_string("10.53.0.2", dns_geoip_org_name,
368 assert_true(match);
373 bool match;
381 match = do_lookup_string("10.53.0.5", dns_geoip_domain_name, "five.es");
382 assert_true(match);