OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
Server IP: 82.112.239.19
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/29/2025 10:07:18 PM
rwxr-xr-x
📄
FlexLexer.h
6.73 KB
01/30/2022 08:23:38 AM
rw-r--r--
📄
GeoIP.h
17.42 KB
01/17/2018 07:23:18 PM
rw-r--r--
📄
GeoIPCity.h
2.24 KB
01/17/2018 07:23:18 PM
rw-r--r--
📄
a.out.h
4.25 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
aio.h
7.56 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
aliases.h
1.98 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
alloca.h
1.17 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
ar.h
1.69 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
argp.h
24.95 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
argz.h
5.91 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
arpa
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
asm
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📁
asm-generic
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
assert.h
4.46 KB
03/10/2025 10:34:44 AM
rw-r--r--
📁
bits
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
bsock
-
08/27/2024 05:43:51 PM
rwxr-xr-x
📄
byteswap.h
1.42 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
complex.h
7.95 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
cpio.h
2.21 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
cpuidle.h
931 bytes
06/11/2025 12:06:00 PM
rw-r--r--
📁
criu
-
08/27/2024 05:56:55 PM
rwxr-xr-x
📄
crypt.h
10.9 KB
02/10/2022 04:05:00 AM
rw-r--r--
📄
ctype.h
10.71 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
dirent.h
12.22 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
dlfcn.h
7.52 KB
03/10/2025 10:34:46 AM
rw-r--r--
📁
drm
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
elf.h
178.14 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
endian.h
2.25 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
envz.h
2.8 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
err.h
2.29 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
errno.h
1.64 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
error.h
2.36 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
execinfo.h
1.49 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
fcntl.h
11.17 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
features-time64.h
1.37 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
features.h
17.69 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
fenv.h
5.65 KB
03/10/2025 10:34:45 AM
rw-r--r--
📁
finclude
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
fmtmsg.h
3.16 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
fnmatch.h
2.24 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
fpu_control.h
3.5 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
fstab.h
3.04 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
fts.h
9.35 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
ftw.h
6.19 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
gconv.h
4.11 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
gelf.h
11.14 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
getopt.h
1.43 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
glob.h
7.13 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
gnu
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
gnu-versions.h
2.29 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
gnumake.h
2.84 KB
01/03/2020 07:11:27 AM
rw-r--r--
📄
grp.h
6.53 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
gshadow.h
4.42 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
iconv.h
1.81 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
ieee754.h
4.8 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
ifaddrs.h
2.77 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
inttypes.h
8.14 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
langinfo.h
17.43 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
lastlog.h
126 bytes
03/10/2025 10:35:12 AM
rw-r--r--
📄
lauxlib.h
9.1 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
libelf.h
19.84 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
libgen.h
1.35 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
libintl.h
4.47 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
liblsapi-sha1.h
569 bytes
02/21/2025 10:42:38 AM
rw-r--r--
📁
libxml2
-
03/12/2025 06:46:00 PM
rwxr-xr-x
📄
limits.h
5.57 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
link.h
7.05 KB
03/10/2025 10:35:12 AM
rw-r--r--
📁
linux
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
locale.h
7.5 KB
03/10/2025 10:34:43 AM
rw-r--r--
📄
lsapidef.h
4.6 KB
02/21/2025 10:42:38 AM
rw-r--r--
📄
lscapi.h
24.21 KB
02/21/2025 10:42:38 AM
rw-r--r--
📄
lscapi_config.h
599 bytes
02/21/2025 10:42:38 AM
rw-r--r--
📄
lua.h
15.45 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
lua.hpp
191 bytes
09/26/2023 06:28:33 PM
rw-r--r--
📄
luaconf-x86_64.h
21.01 KB
09/26/2023 06:28:33 PM
rw-r--r--
📄
luaconf.h
1.62 KB
09/26/2023 05:46:00 PM
rw-r--r--
📄
lualib.h
1.09 KB
09/26/2023 06:28:33 PM
rw-r--r--
📁
lzma
-
08/27/2024 05:53:19 PM
rwxr-xr-x
📄
lzma.h
9.63 KB
03/17/2020 02:28:50 PM
rw-r--r--
📄
malloc.h
5.77 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
math.h
47.63 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
mcheck.h
2.38 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
memory.h
956 bytes
03/10/2025 10:34:47 AM
rw-r--r--
📁
misc
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
mntent.h
3.28 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
monetary.h
1.92 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
mqueue.h
4.5 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
mtd
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📁
mysql
-
08/27/2024 05:35:53 PM
rwxr-xr-x
📁
net
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netash
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netatalk
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netax25
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
netdb.h
27.79 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
neteconet
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netinet
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netipx
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netiucv
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netpacket
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netrom
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
netrose
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📁
nfs
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
nl_types.h
1.71 KB
03/10/2025 10:34:44 AM
rw-r--r--
📄
nlist.h
1.56 KB
03/01/2024 08:12:17 PM
rw-r--r--
📄
nss.h
14.07 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
obstack.h
20.81 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
openssl
-
04/07/2025 07:53:04 PM
rwxr-xr-x
📄
paths.h
2.91 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
pcp
-
01/29/2025 10:11:54 PM
rwxr-xr-x
📄
poll.h
22 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
powercap.h
1.62 KB
06/11/2025 12:06:00 PM
rw-r--r--
📄
printf.h
6.71 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
proc_service.h
3.4 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
protocols
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
pthread.h
47.24 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
pty.h
1.53 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
pwd.h
6.17 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
python3.9
-
04/17/2025 10:53:24 AM
rwxr-xr-x
📁
rdma
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
re_comp.h
963 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
regex.h
25.3 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
regexp.h
1.41 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
resolv.h
12.02 KB
03/10/2025 10:35:11 AM
rw-r--r--
📁
rpc
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
sched.h
4.92 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
scsi
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
search.h
5.32 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
semaphore.h
3.38 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
setjmp.h
3.12 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
sgtty.h
1.31 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
shadow.h
5.34 KB
03/10/2025 10:35:10 AM
rw-r--r--
📄
signal.h
12.73 KB
03/10/2025 10:34:46 AM
rw-r--r--
📁
sound
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
spawn.h
7.84 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
stab.h
264 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
stdc-predef.h
2.24 KB
03/10/2025 10:34:42 AM
rw-r--r--
📄
stdint.h
8.28 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdio.h
30.67 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdio_ext.h
2.73 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
stdlib.h
35.46 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
string.h
18.33 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
strings.h
4.64 KB
03/10/2025 10:34:47 AM
rw-r--r--
📁
sys
-
03/18/2025 09:44:14 PM
rwxr-xr-x
📄
syscall.h
25 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
sysexits.h
5.11 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
syslog.h
24 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
tar.h
3.7 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
termio.h
214 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
termios.h
3.51 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
tgmath.h
39.24 KB
03/10/2025 10:34:45 AM
rw-r--r--
📄
thread_db.h
15.65 KB
03/10/2025 10:35:11 AM
rw-r--r--
📄
threads.h
7.51 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
time.h
14.49 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
ttyent.h
2.44 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
uchar.h
1.96 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
ucontext.h
1.99 KB
03/10/2025 10:34:46 AM
rw-r--r--
📄
ulimit.h
1.55 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
unistd.h
43.45 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
utime.h
1.86 KB
03/10/2025 10:34:48 AM
rw-r--r--
📄
utmp.h
3.15 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
utmpx.h
4 KB
03/10/2025 10:35:12 AM
rw-r--r--
📄
values.h
1.91 KB
03/10/2025 10:34:42 AM
rw-r--r--
📁
video
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
wait.h
22 bytes
03/10/2025 10:34:48 AM
rw-r--r--
📄
wchar.h
31.39 KB
03/10/2025 10:34:47 AM
rw-r--r--
📄
wctype.h
5.42 KB
03/10/2025 10:34:49 AM
rw-r--r--
📄
wordexp.h
2.44 KB
03/10/2025 10:34:48 AM
rw-r--r--
📁
xen
-
06/20/2025 01:51:24 AM
rwxr-xr-x
📄
zconf.h
15.88 KB
09/26/2023 09:22:15 AM
rw-r--r--
📄
zdict.h
25.03 KB
12/20/2021 10:49:18 PM
rw-r--r--
📄
zlib.h
94 KB
09/26/2023 09:22:15 AM
rw-r--r--
📄
zstd.h
145.16 KB
12/20/2021 10:49:18 PM
rw-r--r--
📄
zstd_errors.h
3.73 KB
12/20/2021 10:49:18 PM
rw-r--r--
Editing: GeoIP.h
Close
/* -*- 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 */