Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

geo_ip.h File Reference


Detailed Description

Support for geographic IP mapping.

Author:
Raphael Manfredi
Date:
2004

#include "common.h"
#include "lib/host_addr.h"

Go to the source code of this file.

Functions

guint16 gip_country (const host_addr_t addr)
 Retrieves the country an address is assigned to.
void gip_init (void)
 Called on startup.
void gip_close (void)
 Frees all entries in the hostiles.


Function Documentation

void gip_close void   ) 
 

Frees all entries in the hostiles.

guint16 gip_country const host_addr_t  ha  ) 
 

Retrieves the country an address is assigned to.

Parameters:
ha the host address to look up.
Returns:
the country mapped to this IP address as an numerical encoded country code, or ISO3166_INVALID when unknown.

void gip_init void   ) 
 

Called on startup.

Loads the bogons.txt into memory.


Generated on Sat Jun 30 17:53:26 2007 for gtk-gnutella by  doxygen 1.3.9.1