• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/GeoIP-1.5.1/libGeoIP/

Lines Matching defs:GeoIP

2 /* GeoIP.h
75 } GeoIP;
170 * program with newer GeoIP versions */
184 GEOIP_API GeoIP* GeoIP_open_type (int type, int flags);
185 GEOIP_API GeoIP* GeoIP_new(int flags);
186 GEOIP_API GeoIP* GeoIP_open(const char * filename, int flags);
188 GEOIP_API void GeoIP_delete(GeoIP* gi);
190 GEOIP_API const char *GeoIP_country_code_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
191 GEOIP_API const char *GeoIP_country_code_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
192 GEOIP_API const char *GeoIP_country_code3_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
193 GEOIP_API const char *GeoIP_country_code3_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
194 GEOIP_API const char *GeoIP_country_name_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
195 GEOIP_API const char *GeoIP_country_name_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
196 GEOIP_API const char *GeoIP_country_name_by_ipnum_gl (GeoIP* gi, unsigned long ipnum, GeoIPLookup * gl);
197 GEOIP_API const char *GeoIP_country_code_by_ipnum_gl (GeoIP* gi, unsigned long ipnum, GeoIPLookup * gl);
198 GEOIP_API const char *GeoIP_country_code3_by_ipnum_gl (GeoIP* gi, unsigned long ipnum, GeoIPLookup * gl);
201 GEOIP_API const char *GeoIP_country_name_by_ipnum_v6_gl (GeoIP* gi, geoipv6_t ipnum, GeoIPLookup * gl);
202 GEOIP_API const char *GeoIP_country_code_by_ipnum_v6_gl (GeoIP* gi, geoipv6_t ipnum, GeoIPLookup * gl);
203 GEOIP_API const char *GeoIP_country_code3_by_ipnum_v6_gl (GeoIP* gi, geoipv6_t ipnum, GeoIPLookup * gl);
205 GEOIP_API const char *GeoIP_country_code_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
206 GEOIP_API const char *GeoIP_country_code_by_name_v6_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
207 GEOIP_API const char *GeoIP_country_code3_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
208 GEOIP_API const char *GeoIP_country_code3_by_name_v6_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
209 GEOIP_API const char *GeoIP_country_name_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
210 GEOIP_API const char *GeoIP_country_name_by_name_v6_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
212 GEOIP_API int GeoIP_id_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
213 GEOIP_API int GeoIP_id_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
214 GEOIP_API int GeoIP_id_by_ipnum_gl (GeoIP* gi, unsigned long ipnum, GeoIPLookup * gl);
216 GEOIP_API int GeoIP_id_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
217 GEOIP_API int GeoIP_id_by_name_v6_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
218 GEOIP_API int GeoIP_id_by_ipnum_v6_gl (GeoIP* gi, geoipv6_t ipnum, GeoIPLookup * gl);
220 GEOIP_API GeoIPRegion * GeoIP_region_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
221 GEOIP_API GeoIPRegion * GeoIP_region_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
222 GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum_gl (GeoIP *gi, unsigned long ipnum, GeoIPLookup * gl);
224 GEOIP_API GeoIPRegion * GeoIP_region_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
225 GEOIP_API GeoIPRegion * GeoIP_region_by_name_v6_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
226 GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum_v6_gl (GeoIP *gi, geoipv6_t ipnum, GeoIPLookup * gl);
231 GEOIP_API void GeoIP_assign_region_by_inetaddr_gl(GeoIP* gi, unsigned long inetaddr, GeoIPRegion *gir, GeoIPLookup * gl);
232 GEOIP_API void GeoIP_assign_region_by_inetaddr_v6_gl(GeoIP* gi, geoipv6_t inetaddr, GeoIPRegion *gir, GeoIPLookup * gl);
234 /* Used to query GeoIP Organization, ISP and AS Number databases */
235 GEOIP_API char *GeoIP_name_by_ipnum_gl (GeoIP* gi, unsigned long ipnum, GeoIPLookup * gl);
236 GEOIP_API char *GeoIP_name_by_addr_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
237 GEOIP_API char *GeoIP_name_by_name_gl (GeoIP* gi, const char *host, GeoIPLookup * gl);
239 GEOIP_API char *GeoIP_name_by_ipnum_v6_gl (GeoIP* gi, geoipv6_t ipnum, GeoIPLookup * gl);
240 GEOIP_API char *GeoIP_name_by_addr_v6_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
241 GEOIP_API char *GeoIP_name_by_name_v6_gl (GeoIP* gi, const char *name, GeoIPLookup * gl);
250 GEOIP_API const char* GeoIP_country_name_by_id(GeoIP* gi, int id);
264 GEOIP_API char *GeoIP_database_info (GeoIP* gi);
265 GEOIP_API unsigned char GeoIP_database_edition (GeoIP* gi);
267 GEOIP_API int GeoIP_charset (GeoIP* gi);
268 GEOIP_API int GeoIP_set_charset (GeoIP* gi, int charset);
269 GEOIP_API int GeoIP_enable_teredo (GeoIP* gi, int true_false );
270 GEOIP_API int GeoIP_teredo (GeoIP* gi );
272 GEOIP_API char **GeoIP_range_by_ip_gl (GeoIP* gi, const char *addr, GeoIPLookup * gl);
297 GEOIP_API const char *GeoIP_country_code_by_addr (GeoIP* gi, const char *addr);
298 GEOIP_API const char *GeoIP_country_code_by_name (GeoIP* gi, const char *host);
299 GEOIP_API const char *GeoIP_country_code3_by_addr (GeoIP* gi, const char *addr);
300 GEOIP_API const char *GeoIP_country_code3_by_name (GeoIP* gi, const char *host);
301 GEOIP_API const char *GeoIP_country_name_by_addr (GeoIP* gi, const char *addr);
302 GEOIP_API const char *GeoIP_country_name_by_name (GeoIP* gi, const char *host);
303 GEOIP_API const char *GeoIP_country_name_by_ipnum (GeoIP* gi, unsigned long ipnum);
304 GEOIP_API const char *GeoIP_country_code_by_ipnum (GeoIP* gi, unsigned long ipnum);
305 GEOIP_API const char *GeoIP_country_code3_by_ipnum (GeoIP* gi, unsigned long ipnum);
307 GEOIP_API const char *GeoIP_country_name_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
308 GEOIP_API const char *GeoIP_country_code_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
309 GEOIP_API const char *GeoIP_country_code3_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
311 GEOIP_API const char *GeoIP_country_code_by_addr_v6 (GeoIP* gi, const char *addr);
312 GEOIP_API const char *GeoIP_country_code_by_name_v6 (GeoIP* gi, const char *host);
313 GEOIP_API const char *GeoIP_country_code3_by_addr_v6 (GeoIP* gi, const char *addr);
314 GEOIP_API const char *GeoIP_country_code3_by_name_v6 (GeoIP* gi, const char *host);
315 GEOIP_API const char *GeoIP_country_name_by_addr_v6 (GeoIP* gi, const char *addr);
316 GEOIP_API const char *GeoIP_country_name_by_name_v6 (GeoIP* gi, const char *host);
318 GEOIP_API int GeoIP_id_by_addr (GeoIP* gi, const char *addr);
319 GEOIP_API int GeoIP_id_by_name (GeoIP* gi, const char *host);
320 GEOIP_API int GeoIP_id_by_ipnum (GeoIP* gi, unsigned long ipnum);
322 GEOIP_API int GeoIP_id_by_addr_v6 (GeoIP* gi, const char *addr);
323 GEOIP_API int GeoIP_id_by_name_v6 (GeoIP* gi, const char *host);
324 GEOIP_API int GeoIP_id_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
326 GEOIP_API GeoIPRegion * GeoIP_region_by_addr (GeoIP* gi, const char *addr);
327 GEOIP_API GeoIPRegion * GeoIP_region_by_name (GeoIP* gi, const char *host);
328 GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum (GeoIP *gi, unsigned long ipnum);
330 GEOIP_API GeoIPRegion * GeoIP_region_by_addr_v6 (GeoIP* gi, const char *addr);
331 GEOIP_API GeoIPRegion * GeoIP_region_by_name_v6 (GeoIP* gi, const char *host);
332 GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum_v6 (GeoIP *gi, geoipv6_t ipnum);
334 GEOIP_API void GeoIP_assign_region_by_inetaddr(GeoIP* gi, unsigned long inetaddr, GeoIPRegion *gir);
335 GEOIP_API void GeoIP_assign_region_by_inetaddr_v6(GeoIP* gi, geoipv6_t inetaddr, GeoIPRegion *gir);
337 GEOIP_API char *GeoIP_name_by_ipnum (GeoIP* gi, unsigned long ipnum);
338 GEOIP_API char *GeoIP_name_by_addr (GeoIP* gi, const char *addr);
339 GEOIP_API char *GeoIP_name_by_name (GeoIP* gi, const char *host);
341 GEOIP_API char *GeoIP_name_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
342 GEOIP_API char *GeoIP_name_by_addr_v6 (GeoIP* gi, const char *addr);
343 GEOIP_API char *GeoIP_name_by_name_v6 (GeoIP* gi, const char *name);
347 GEOIP_API int GeoIP_last_netmask (GeoIP* gi);
348 GEOIP_API char **GeoIP_range_by_ip (GeoIP* gi, const char *addr);
351 GEOIP_API int GeoIP_country_id_by_addr (GeoIP* gi, const char *addr);
352 GEOIP_API int GeoIP_country_id_by_name (GeoIP* gi, const char *host);
353 GEOIP_API char *GeoIP_org_by_addr (GeoIP* gi, const char *addr);
354 GEOIP_API char *GeoIP_org_by_name (GeoIP* gi, const char *host);
355 GEOIP_API char *GeoIP_org_by_ipnum (GeoIP* gi, unsigned long ipnum);
357 GEOIP_API int GeoIP_country_id_by_addr_v6 (GeoIP* gi, const char *addr);
358 GEOIP_API char *GeoIP_org_by_ipnum_v6 (GeoIP* gi, geoipv6_t ipnum);
359 GEOIP_API char *GeoIP_org_by_addr_v6 (GeoIP* gi, const char *addr);
360 GEOIP_API char *GeoIP_org_by_name_v6 (GeoIP* gi, const char *name);