XYZ File Manager
Current Path:
/usr/include
usr
/
include
/
📁
..
📄
GeoIP.h
(17.42 KB)
📄
GeoIPCity.h
(2.24 KB)
📄
a.out.h
(4.25 KB)
📄
aio.h
(7.56 KB)
📄
aliases.h
(1.98 KB)
📄
alloca.h
(1.17 KB)
📄
ar.h
(1.69 KB)
📄
argp.h
(24.95 KB)
📄
argz.h
(5.91 KB)
📁
arpa
📁
asm
📁
asm-generic
📄
assert.h
(4.46 KB)
📁
bits
📁
bsock
📄
byteswap.h
(1.42 KB)
📁
c++
📄
com_err.h
(2.07 KB)
📄
complex.h
(7.95 KB)
📄
cpio.h
(2.21 KB)
📄
cpuidle.h
(931 B)
📁
criu
📄
crypt.h
(10.9 KB)
📄
ctype.h
(10.71 KB)
📁
curl
📄
dirent.h
(12.32 KB)
📄
dlfcn.h
(8.38 KB)
📁
drm
📄
elf.h
(178.26 KB)
📄
endian.h
(2.25 KB)
📄
envz.h
(2.8 KB)
📄
err.h
(2.29 KB)
📄
errno.h
(1.64 KB)
📄
error.h
(2.36 KB)
📁
et
📄
execinfo.h
(1.49 KB)
📄
fcntl.h
(11.17 KB)
📄
features-time64.h
(1.37 KB)
📄
features.h
(17.69 KB)
📄
fenv.h
(5.65 KB)
📁
finclude
📄
fmtmsg.h
(3.16 KB)
📄
fnmatch.h
(2.24 KB)
📄
fpu_control.h
(3.5 KB)
📄
fstab.h
(3.04 KB)
📄
fts.h
(9.35 KB)
📄
ftw.h
(6.19 KB)
📄
gconv.h
(4.11 KB)
📁
gdb
📄
getopt.h
(1.43 KB)
📄
glob.h
(7.13 KB)
📁
gnu
📄
gnu-versions.h
(2.29 KB)
📄
gnumake.h
(2.84 KB)
📄
grp.h
(6.53 KB)
📄
gshadow.h
(4.42 KB)
📁
gssapi
📄
gssapi.h
(181 B)
📁
gssrpc
📄
iconv.h
(1.81 KB)
📄
idn2.h
(13.57 KB)
📄
ieee754.h
(4.8 KB)
📄
ifaddrs.h
(2.77 KB)
📄
inttypes.h
(8.14 KB)
📁
kadm5
📄
kdb.h
(62.83 KB)
📄
keyutils.h
(11.52 KB)
📄
krad.h
(8.72 KB)
📁
krb5
📄
krb5.h
(402 B)
📄
langinfo.h
(17.43 KB)
📄
lastlog.h
(126 B)
📄
lauxlib.h
(9.1 KB)
📄
lber.h
(15.12 KB)
📄
lber_types.h
(1.43 KB)
📄
ldap.h
(72.36 KB)
📄
ldap_cdefs.h
(9.24 KB)
📄
ldap_features.h
(1.55 KB)
📄
ldap_schema.h
(9.23 KB)
📄
ldap_utf8.h
(3.39 KB)
📄
ldif.h
(4.68 KB)
📄
libgen.h
(1.35 KB)
📄
libintl.h
(4.47 KB)
📄
liblsapi-sha1.h
(569 B)
📄
libpsl.h
(5.66 KB)
📄
libssh2.h
(59.24 KB)
📄
libssh2_publickey.h
(4.83 KB)
📄
libssh2_sftp.h
(16.96 KB)
📁
libxml2
📄
limits.h
(5.57 KB)
📄
link.h
(7.62 KB)
📁
linux
📄
locale.h
(7.5 KB)
📄
lsapidef.h
(4.6 KB)
📄
lscapi.h
(24.21 KB)
📄
lscapi_config.h
(599 B)
📄
lua.h
(15.45 KB)
📄
lua.hpp
(191 B)
📄
luaconf-x86_64.h
(21.01 KB)
📄
luaconf.h
(1.62 KB)
📄
lualib.h
(1.09 KB)
📁
lzma
📄
lzma.h
(9.63 KB)
📄
malloc.h
(5.77 KB)
📄
math.h
(47.63 KB)
📄
mcheck.h
(2.38 KB)
📄
memory.h
(956 B)
📁
misc
📄
mntent.h
(3.28 KB)
📄
monetary.h
(1.92 KB)
📄
mqueue.h
(4.5 KB)
📁
mtd
📁
mysql
📁
net
📁
netash
📁
netatalk
📁
netax25
📄
netdb.h
(27.79 KB)
📁
neteconet
📁
netinet
📁
netipx
📁
netiucv
📁
netpacket
📁
netrom
📁
netrose
📁
nfs
📁
nghttp2
📄
nl_types.h
(1.71 KB)
📄
nss.h
(14.07 KB)
📄
obstack.h
(20.81 KB)
📁
offload
📄
openldap.h
(964 B)
📁
openssl
📄
paths.h
(2.91 KB)
📁
pcp
📄
pcre2.h
(46.15 KB)
📄
pcre2posix.h
(6.52 KB)
📄
poll.h
(22 B)
📄
powercap.h
(1.62 KB)
📄
printf.h
(6.71 KB)
📄
proc_service.h
(3.4 KB)
📄
profile.h
(11.87 KB)
📁
protocols
📄
pthread.h
(47.39 KB)
📄
pty.h
(1.53 KB)
📄
pwd.h
(6.17 KB)
📁
python3.9
📁
rdma
📄
re_comp.h
(963 B)
📄
regex.h
(25.3 KB)
📄
regexp.h
(1.41 KB)
📄
resolv.h
(12.1 KB)
📁
rpc
📁
sasl
📄
sched.h
(4.92 KB)
📁
scsi
📄
search.h
(5.32 KB)
📁
selinux
📄
semaphore.h
(3.38 KB)
📁
sepol
📄
setjmp.h
(3.12 KB)
📄
sgtty.h
(1.31 KB)
📄
shadow.h
(5.34 KB)
📄
signal.h
(12.73 KB)
📄
slapi-plugin.h
(37.45 KB)
📁
sound
📄
spawn.h
(8.1 KB)
📄
stab.h
(264 B)
📄
stdc-predef.h
(2.24 KB)
📄
stdint.h
(8.28 KB)
📄
stdio.h
(30.67 KB)
📄
stdio_ext.h
(2.73 KB)
📄
stdlib.h
(35.46 KB)
📄
string.h
(19 KB)
📄
strings.h
(4.64 KB)
📁
sys
📄
syscall.h
(25 B)
📄
sysexits.h
(5.11 KB)
📄
syslog.h
(24 B)
📄
tar.h
(3.7 KB)
📄
termio.h
(214 B)
📄
termios.h
(3.51 KB)
📄
tgmath.h
(39.24 KB)
📄
thread_db.h
(15.65 KB)
📄
threads.h
(7.51 KB)
📄
time.h
(14.5 KB)
📄
ttyent.h
(2.44 KB)
📄
uchar.h
(1.96 KB)
📄
ucontext.h
(1.99 KB)
📄
ulimit.h
(1.55 KB)
📄
unistd.h
(43.45 KB)
📄
utime.h
(1.86 KB)
📄
utmp.h
(3.15 KB)
📄
utmpx.h
(4 KB)
📄
values.h
(1.91 KB)
📄
verto-module.h
(6.48 KB)
📄
verto.h
(18.98 KB)
📁
video
📄
wait.h
(22 B)
📄
wchar.h
(31.39 KB)
📄
wctype.h
(5.42 KB)
📄
wordexp.h
(2.44 KB)
📁
xen
📄
zconf.h
(15.88 KB)
📄
zlib.h
(94 KB)
Editing: GeoIP.h
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ /* GeoIP.h * * Copyright (C) 2016 MaxMind, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef GEOIP_H #define GEOIP_H #ifdef __cplusplus extern "C" { #endif #include <sys/types.h> #if !defined(_WIN32) #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #else /* !defined(_WIN32) */ #include <winsock2.h> #include <ws2tcpip.h> #define FILETIME_TO_USEC(ft) \ (((unsigned __int64)ft.dwHighDateTime << 32 | ft.dwLowDateTime) / 10) #endif /* !defined(_WIN32) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> /* for fstat */ #include <sys/types.h> /* for fstat */ #define SEGMENT_RECORD_LENGTH 3 #define LARGE_SEGMENT_RECORD_LENGTH 4 #define STANDARD_RECORD_LENGTH 3 #define ORG_RECORD_LENGTH 4 #define MAX_RECORD_LENGTH 4 #define NUM_DB_TYPES (38 + 1) /* 128 bit address in network order */ typedef struct in6_addr geoipv6_t; #define GEOIP_CHKBIT_V6(bit, ptr) \ (ptr[((127UL - bit) >> 3)] & (1UL << (~(127 - bit) & 7))) typedef struct GeoIPTag { FILE *GeoIPDatabase; char *file_path; unsigned char *cache; unsigned char *index_cache; unsigned int *databaseSegments; char databaseType; time_t mtime; int flags; off_t size; char record_length; int charset; /* 0 iso-8859-1 1 utf8 */ int record_iter; /* used in GeoIP_next_record */ int netmask; /* netmask of last lookup - set using depth in _GeoIP_seek_record */ time_t last_mtime_check; off_t dyn_seg_size; /* currently only used by the cityconfidence database */ unsigned int ext_flags; /* bit 0 teredo support enabled */ } GeoIP; typedef struct GeoIPLookup { int netmask; } GeoIPLookup; typedef enum { GEOIP_TEREDO_BIT = 0 } GeoIPExtFlags; typedef enum { GEOIP_CHARSET_ISO_8859_1 = 0, GEOIP_CHARSET_UTF8 = 1 } GeoIPCharset; typedef struct GeoIPRegionTag { char country_code[3]; char region[3]; } GeoIPRegion; typedef enum { GEOIP_STANDARD = 0, GEOIP_MEMORY_CACHE = 1, GEOIP_CHECK_CACHE = 2, GEOIP_INDEX_CACHE = 4, GEOIP_MMAP_CACHE = 8, GEOIP_SILENCE = 16, } GeoIPOptions; typedef enum { GEOIP_COUNTRY_EDITION = 1, GEOIP_REGION_EDITION_REV0 = 7, GEOIP_CITY_EDITION_REV0 = 6, GEOIP_ORG_EDITION = 5, GEOIP_ISP_EDITION = 4, GEOIP_CITY_EDITION_REV1 = 2, GEOIP_REGION_EDITION_REV1 = 3, GEOIP_PROXY_EDITION = 8, GEOIP_ASNUM_EDITION = 9, GEOIP_NETSPEED_EDITION = 10, GEOIP_DOMAIN_EDITION = 11, GEOIP_COUNTRY_EDITION_V6 = 12, GEOIP_LOCATIONA_EDITION = 13, GEOIP_ACCURACYRADIUS_EDITION = 14, GEOIP_CITYCONFIDENCE_EDITION = 15, /* unsupported */ GEOIP_CITYCONFIDENCEDIST_EDITION = 16, /* unsupported */ GEOIP_LARGE_COUNTRY_EDITION = 17, GEOIP_LARGE_COUNTRY_EDITION_V6 = 18, GEOIP_CITYCONFIDENCEDIST_ISP_ORG_EDITION = 19, /* unused, but gaps are not allowed */ GEOIP_CCM_COUNTRY_EDITION = 20, /* unused, but gaps are not allowed */ GEOIP_ASNUM_EDITION_V6 = 21, GEOIP_ISP_EDITION_V6 = 22, GEOIP_ORG_EDITION_V6 = 23, GEOIP_DOMAIN_EDITION_V6 = 24, GEOIP_LOCATIONA_EDITION_V6 = 25, GEOIP_REGISTRAR_EDITION = 26, GEOIP_REGISTRAR_EDITION_V6 = 27, GEOIP_USERTYPE_EDITION = 28, GEOIP_USERTYPE_EDITION_V6 = 29, GEOIP_CITY_EDITION_REV1_V6 = 30, GEOIP_CITY_EDITION_REV0_V6 = 31, GEOIP_NETSPEED_EDITION_REV1 = 32, GEOIP_NETSPEED_EDITION_REV1_V6 = 33, GEOIP_COUNTRYCONF_EDITION = 34, GEOIP_CITYCONF_EDITION = 35, GEOIP_REGIONCONF_EDITION = 36, GEOIP_POSTALCONF_EDITION = 37, GEOIP_ACCURACYRADIUS_EDITION_V6 = 38 } GeoIPDBTypes; typedef enum { GEOIP_ANON_PROXY = 1, GEOIP_HTTP_X_FORWARDED_FOR_PROXY = 2, GEOIP_HTTP_CLIENT_IP_PROXY = 3, } GeoIPProxyTypes; typedef enum { GEOIP_UNKNOWN_SPEED = 0, GEOIP_DIALUP_SPEED = 1, GEOIP_CABLEDSL_SPEED = 2, GEOIP_CORPORATE_SPEED = 3, } GeoIPNetspeedValues; #if defined(_WIN32) && !defined(__MINGW32__) #ifdef GEOIP_EXPORTS #define GEOIP_API __declspec(dllexport) #define GEOIP_DATA __declspec(dllexport) #else #define GEOIP_DATA __declspec(dllimport) #define GEOIP_API #endif /* GEOIP_EXPORTS */ #else #define GEOIP_API #define GEOIP_DATA #endif extern char **GeoIPDBFileName; extern GEOIP_DATA const char *GeoIPDBDescription[NUM_DB_TYPES]; extern GEOIP_DATA const char *GeoIPCountryDBFileName; extern GEOIP_DATA const char *GeoIPRegionDBFileName; extern GEOIP_DATA const char *GeoIPCityDBFileName; extern GEOIP_DATA const char *GeoIPOrgDBFileName; extern GEOIP_DATA const char *GeoIPISPDBFileName; extern GEOIP_DATA const char *GeoIPLocationADBFileName; extern GEOIP_DATA const char *GeoIPAccuracyRadiusFileName; extern GEOIP_DATA const char *GeoIPCityConfidenceFileName; extern char *GeoIP_custom_directory; /* Warning: do not use those arrays as doing so may break your * program with newer GeoIP versions */ extern GEOIP_DATA const char GeoIP_country_code[256][3]; extern GEOIP_DATA const char GeoIP_country_code3[256][4]; extern GEOIP_DATA const char *GeoIP_country_name[256]; extern GEOIP_DATA const char *GeoIP_utf8_country_name[256]; extern GEOIP_DATA const char GeoIP_country_continent[256][3]; GEOIP_API void GeoIP_setup_custom_directory(char *dir); GEOIP_API GeoIP *GeoIP_open_type(int type, int flags); GEOIP_API GeoIP *GeoIP_new(int flags); GEOIP_API GeoIP *GeoIP_open(const char *filename, int flags); /* * WARNING: GeoIP_db_avail() checks for the existence of a database * file but does not check that it has the requested database revision. * For database types which have more than one revision (including Region, * City, and Cityv6), this can lead to unexpected results. Check the * return value of GeoIP_open_type() to find out whether a particular * database type is really available. */ GEOIP_API int GeoIP_db_avail(int type); GEOIP_API void GeoIP_delete(GeoIP *gi); GEOIP_API const char * GeoIP_country_code_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code3_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code3_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_name_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_name_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_name_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); GEOIP_API const char *GeoIP_country_code3_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); /* */ GEOIP_API const char * GeoIP_country_name_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code3_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code_by_name_v6_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code3_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_code3_by_name_v6_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_name_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API const char * GeoIP_country_name_by_name_v6_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_name_v6_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API int GeoIP_id_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_name_v6_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API GeoIPRegion * GeoIP_region_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); /* Warning - don't call this after GeoIP_assign_region_by_inetaddr calls */ GEOIP_API void GeoIPRegion_delete(GeoIPRegion *gir); GEOIP_API void GeoIP_assign_region_by_inetaddr_gl(GeoIP *gi, unsigned long inetaddr, GeoIPRegion *gir, GeoIPLookup *gl); GEOIP_API void GeoIP_assign_region_by_inetaddr_v6_gl(GeoIP *gi, geoipv6_t inetaddr, GeoIPRegion *gir, GeoIPLookup *gl); /* Used to query GeoIP Organization, ISP and AS Number databases */ GEOIP_API char * GeoIP_name_by_ipnum_gl(GeoIP *gi, unsigned long ipnum, GeoIPLookup *gl); GEOIP_API char * GeoIP_name_by_addr_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API char * GeoIP_name_by_name_gl(GeoIP *gi, const char *host, GeoIPLookup *gl); GEOIP_API char * GeoIP_name_by_ipnum_v6_gl(GeoIP *gi, geoipv6_t ipnum, GeoIPLookup *gl); GEOIP_API char * GeoIP_name_by_addr_v6_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API char * GeoIP_name_by_name_v6_gl(GeoIP *gi, const char *name, GeoIPLookup *gl); /** return two letter country code */ GEOIP_API const char *GeoIP_code_by_id(int id); /** return three letter country code */ GEOIP_API const char *GeoIP_code3_by_id(int id); /** return full name of country in utf8 or iso-8859-1 */ GEOIP_API const char *GeoIP_country_name_by_id(GeoIP *gi, int id); /** return full name of country */ GEOIP_API const char *GeoIP_name_by_id(int id); /** return continent of country */ GEOIP_API const char *GeoIP_continent_by_id(int id); /** return id by country code **/ GEOIP_API int GeoIP_id_by_code(const char *country); /** return return number of known countries */ GEOIP_API unsigned GeoIP_num_countries(void); GEOIP_API char *GeoIP_database_info(GeoIP *gi); GEOIP_API unsigned char GeoIP_database_edition(GeoIP *gi); GEOIP_API int GeoIP_charset(GeoIP *gi); GEOIP_API int GeoIP_set_charset(GeoIP *gi, int charset); GEOIP_API int GeoIP_enable_teredo(GeoIP *gi, int true_false); GEOIP_API int GeoIP_teredo(GeoIP *gi); GEOIP_API char ** GeoIP_range_by_ip_gl(GeoIP *gi, const char *addr, GeoIPLookup *gl); GEOIP_API void GeoIP_range_by_ip_delete(char **ptr); /* Convert region code to region name */ GEOIP_API const char *GeoIP_region_name_by_code(const char *country_code, const char *region_code); /* Get timezone from country and region code */ GEOIP_API const char * GeoIP_time_zone_by_country_and_region(const char *country_code, const char *region_code); /* some v4 helper functions as of 1.4.7 exported to the public API */ GEOIP_API unsigned long GeoIP_addr_to_num(const char *addr); GEOIP_API char *GeoIP_num_to_addr(unsigned long ipnum); /* Internal function -- convert iso to utf8; return a malloced utf8 string. */ char *_GeoIP_iso_8859_1__utf8(const char *iso); /* Cleans up memory used to hold file name paths. Returns 1 if successful; * otherwise 0. * */ GEOIP_API int GeoIP_cleanup(void); /* Returns the library version in use. Helpful if you're loading dynamically. */ GEOIP_API const char *GeoIP_lib_version(void); /* deprecated */ GEOIP_API const char *GeoIP_country_code_by_addr(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_code_by_name(GeoIP *gi, const char *host); GEOIP_API const char *GeoIP_country_code3_by_addr(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_code3_by_name(GeoIP *gi, const char *host); GEOIP_API const char *GeoIP_country_name_by_addr(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_name_by_name(GeoIP *gi, const char *host); GEOIP_API const char *GeoIP_country_name_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API const char *GeoIP_country_code_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API const char *GeoIP_country_code3_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API const char *GeoIP_country_name_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API const char *GeoIP_country_code_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API const char *GeoIP_country_code3_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API const char *GeoIP_country_code_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_code_by_name_v6(GeoIP *gi, const char *host); GEOIP_API const char *GeoIP_country_code3_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_code3_by_name_v6(GeoIP *gi, const char *host); GEOIP_API const char *GeoIP_country_name_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API const char *GeoIP_country_name_by_name_v6(GeoIP *gi, const char *host); GEOIP_API int GeoIP_id_by_addr(GeoIP *gi, const char *addr); GEOIP_API int GeoIP_id_by_name(GeoIP *gi, const char *host); GEOIP_API int GeoIP_id_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API int GeoIP_id_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API int GeoIP_id_by_name_v6(GeoIP *gi, const char *host); GEOIP_API int GeoIP_id_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API GeoIPRegion *GeoIP_region_by_addr(GeoIP *gi, const char *addr); GEOIP_API GeoIPRegion *GeoIP_region_by_name(GeoIP *gi, const char *host); GEOIP_API GeoIPRegion *GeoIP_region_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API GeoIPRegion *GeoIP_region_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API GeoIPRegion *GeoIP_region_by_name_v6(GeoIP *gi, const char *host); GEOIP_API GeoIPRegion *GeoIP_region_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API void GeoIP_assign_region_by_inetaddr(GeoIP *gi, unsigned long inetaddr, GeoIPRegion *gir); GEOIP_API void GeoIP_assign_region_by_inetaddr_v6(GeoIP *gi, geoipv6_t inetaddr, GeoIPRegion *gir); GEOIP_API char *GeoIP_name_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API char *GeoIP_name_by_addr(GeoIP *gi, const char *addr); GEOIP_API char *GeoIP_name_by_name(GeoIP *gi, const char *host); GEOIP_API char *GeoIP_name_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API char *GeoIP_name_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API char *GeoIP_name_by_name_v6(GeoIP *gi, const char *name); /** GeoIP_last_netmask is deprecated - it is not thread safe */ GEOIP_API int GeoIP_last_netmask(GeoIP *gi); GEOIP_API char **GeoIP_range_by_ip(GeoIP *gi, const char *addr); /* Deprecated - for backwards compatibility only */ GEOIP_API int GeoIP_country_id_by_addr(GeoIP *gi, const char *addr); GEOIP_API int GeoIP_country_id_by_name(GeoIP *gi, const char *host); GEOIP_API char *GeoIP_org_by_addr(GeoIP *gi, const char *addr); GEOIP_API char *GeoIP_org_by_name(GeoIP *gi, const char *host); GEOIP_API char *GeoIP_org_by_ipnum(GeoIP *gi, unsigned long ipnum); GEOIP_API int GeoIP_country_id_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API char *GeoIP_org_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum); GEOIP_API char *GeoIP_org_by_addr_v6(GeoIP *gi, const char *addr); GEOIP_API char *GeoIP_org_by_name_v6(GeoIP *gi, const char *name); /* End deprecated */ # #ifdef __cplusplus } #endif #endif /* GEOIP_H */
Upload File
Create Folder