Lines Matching refs:record

68 	GeoIPRecord *record;
91 if (state != NULL && state->record != NULL)
92 GeoIPRecord_delete(state->record);
140 if (state->record != NULL) {
141 GeoIPRecord_delete(state->record);
142 state->record = NULL;
159 isc_uint8_t scope, dns_geoip_subtype_t subtype, GeoIPRecord *record,
200 state->record = record;
318 city_string(GeoIPRecord *record, dns_geoip_subtype_t subtype, int *maxlen) {
322 REQUIRE(record != NULL);
344 return (record->country_code);
346 return (record->country_code3);
348 return (record->country_name);
350 return (record->region);
352 s = GeoIP_region_name_by_code(record->country_code,
353 record->region);
357 return (record->city);
359 return (record->postal_code);
361 return (record->continent_code);
363 s = GeoIP_time_zone_by_country_and_region(record->country_code,
364 record->region);
403 GeoIPRecord *record = NULL;
416 record = prev_state->record;
418 *scope = record->netmask;
421 if (record == NULL) {
423 record = GeoIP_record_by_ipnum(db, ipnum);
426 record = GeoIP_record_by_ipnum_v6(db, *ipnum6);
428 if (record == NULL)
432 *scope = record->netmask;
434 set_state(family, ipnum, ipnum6, record->netmask, subtype,
435 record, NULL, NULL, NULL, 0);
438 return (record);
658 GeoIPRecord *record;
729 record = city_lookup(db, subtype, family,
731 if (record == NULL)
734 s = city_string(record, subtype, &maxlen);
745 record = city_lookup(db, subtype, family,
747 if (record == NULL)
750 if (elt->as_int == record->metro_code)
759 record = city_lookup(db, subtype, family,
761 if (record == NULL)
764 if (elt->as_int == record->area_code)