Included Files
- #include "src/iroffer_headers.h"
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <signal.h>
- #include <netdb.h>
- #include <unistd.h>
- #include <fcntl.h>
- #include <time.h>
- #include <pwd.h>
- #include <fnmatch.h>
- #include <sys/types.h>
- #include <sys/times.h>
- #include <sys/socket.h>
- #include <sys/time.h>
- #include <sys/wait.h>
- #include <errno.h>
- #include <dirent.h>
- #include <stdarg.h>
- #include <sys/utsname.h>
- #include <sys/resource.h>
- #include <sys/stat.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <sys/ioctl.h>
- #include <grp.h>
- #include <assert.h>
- #include <termios.h>
- #include <sys/mman.h>
- #include <sys/param.h>
- #include <sys/mount.h>
- #include <sys/statvfs.h>
- #include </usr/local/include/openssl/ssl.h>
- #include "src/plumb_md5.h"
- #include </usr/local/include/GeoIP.h>
Preprocessor definitions
#define _LONGLONG 1
#define GEOIP_FLAGS GEOIP_MEMORY_CACHE
typedef struct {...} ir_geoip
| struct
|
|
| {
|
|
|
GeoIP* gi;
|
|
|
time_t loaded;
|
|
|
char code[8];
|
|
| }
|
|
Local Variables
geoip4
static ir_geoip geoip4
geoip6
static ir_geoip geoip6
void geoip_new_connection ( transfer* const tr )
void geoip_shutdown ( void )
unsigned int http_check_geoip ( ir_uint32 remoteip )
unsigned int http_check_geoip6 ( struct in6_addr* remoteip )
static const char* check_geoip ( ir_uint32 remoteip )
static const char* check_geoip6 ( struct in6_addr* remoteip )
static void geoip_close ( ir_geoip* geoip )
static void geoip_open ( ir_geoip* geoip, const char* geoipdatabase )
static const char* geoip_return_null ( ir_geoip* geoip )
static const char* geoip_return_reusult ( ir_geoip* geoip, const char* result )
static time_t geoip_time ( const char* name )
static unsigned int http_check_country ( const char* country )