$Revision: 1.5 $
IP handling (ip). iproutines.h - header file for conversions routines. defines data structures for IP module.
Status: NOT REVUED, TESTED
Design and implementation by: Marek Bukowy
the length of a string that should be able to hold a prefix / range when used with b2a functions.
#define IP_addr_e2b( a, b )
#define IP_pref_e2b( a, b )
#define IP_rang_e2b( a, b )
#define IP_addr_a2b( a, b )
#define IP_pref_a2b( a, b )
#define IP_rang_a2b( a, b )
enum | |
{ | |
IP_V4; | |
IP_V6; | |
} |
typedef struct {...} ip_addr_t
struct | |
{ | |
unsigned int words[4]; | 32/128 bit ip addr. SUBJECT TO CHANGE |
char space; | char is shorter than ip_space_t but still compatible |
} |
typedef struct {...} ip_prefix_t
struct | |
{ | |
unsigned bits; | length in bits. |
ip_addr_t ip; | the IP of the prefix |
} |
typedef struct {...} ip_range_t
struct | |
{ | |
ip_addr_t begin; | IP where the range begins. |
ip_addr_t end; | IP where it ends |
} |
typedef unsigned int ip_rangesize_t
enum | |
{ | |
IP_PLAIN; | |
IP_EXPN; | |
} |