nfs-ganesha 1.4
Classes | Defines | Typedefs | Functions

cidr.h File Reference

#include <inttypes.h>
#include <netinet/in.h>

Go to the source code of this file.

Classes

struct  cidr_addr

Defines

#define CIDR_NOFLAGS   (0)
#define CIDR_NOCOMPACT   (1)
#define CIDR_VERBOSE   (1<<1)
#define CIDR_USEV6   (1<<2)
#define CIDR_USEV4COMPAT   (1<<3)
#define CIDR_NETMASK   (1<<4)
#define CIDR_ONLYADDR   (1<<5)
#define CIDR_ONLYPFLEN   (1<<6)
#define CIDR_WILDCARD   (1<<7)
#define CIDR_FORCEV6   (1<<8)
#define CIDR_FORCEV4   (1<<9)
#define CIDR_REVERSE   (1<<10)
#define CIDR_NOPROTO   0
#define CIDR_IPV4   1
#define CIDR_IPV6   2
#define CIDR_VERSION   "1.1"
#define CIDR_RELEASE   "release"
#define CIDR_REVISION   " (fullermd@over-yonder.net-20061125141312-f6mjjptgl4zqh6wt)"
#define CIDR_VERSION_STR   (CIDR_VERSION "-" CIDR_RELEASE CIDR_REVISION)

Typedefs

typedef struct cidr_addr CIDR

Functions

CIDRcidr_addr_broadcast (const CIDR *)
CIDRcidr_addr_hostmax (const CIDR *)
CIDRcidr_addr_hostmin (const CIDR *)
CIDRcidr_addr_network (const CIDR *)
CIDRcidr_alloc (void)
int cidr_contains (const CIDR *, const CIDR *)
CIDRcidr_dup (const CIDR *)
int cidr_equals (const CIDR *, const CIDR *)
void cidr_free (CIDR *)
CIDRcidr_from_inaddr (const struct in_addr *)
CIDRcidr_from_in6addr (const struct in6_addr *)
CIDRcidr_from_str (const char *)
uint8_t * cidr_get_addr (const CIDR *)
uint8_t * cidr_get_mask (const CIDR *)
int cidr_get_pflen (const CIDR *)
int cidr_get_proto (const CIDR *)
int cidr_is_v4mapped (const CIDR *)
CIDR ** cidr_net_subnets (const CIDR *)
CIDRcidr_net_supernet (const CIDR *)
const char * cidr_numaddr (const CIDR *)
const char * cidr_numaddr_pflen (int)
const char * cidr_numhost (const CIDR *)
const char * cidr_numhost_pflen (int)
struct in_addr * cidr_to_inaddr (const CIDR *, struct in_addr *)
struct in6_addr * cidr_to_in6addr (const CIDR *, struct in6_addr *)
char * cidr_to_str (const CIDR *, int)
const char * cidr_version (void)

Define Documentation

#define CIDR_FORCEV4   (1<<9)

Definition at line 26 of file cidr.h.

#define CIDR_FORCEV6   (1<<8)

Definition at line 25 of file cidr.h.

#define CIDR_IPV4   1

Definition at line 31 of file cidr.h.

#define CIDR_IPV6   2

Definition at line 32 of file cidr.h.

#define CIDR_NETMASK   (1<<4)

Definition at line 21 of file cidr.h.

#define CIDR_NOCOMPACT   (1)

Definition at line 17 of file cidr.h.

#define CIDR_NOFLAGS   (0)

Definition at line 16 of file cidr.h.

#define CIDR_NOPROTO   0

Definition at line 30 of file cidr.h.

#define CIDR_ONLYADDR   (1<<5)

Definition at line 22 of file cidr.h.

#define CIDR_ONLYPFLEN   (1<<6)

Definition at line 23 of file cidr.h.

#define CIDR_RELEASE   "release"

Definition at line 36 of file cidr.h.

#define CIDR_REVERSE   (1<<10)

Definition at line 27 of file cidr.h.

#define CIDR_REVISION   " (fullermd@over-yonder.net-20061125141312-f6mjjptgl4zqh6wt)"

Definition at line 37 of file cidr.h.

#define CIDR_USEV4COMPAT   (1<<3)

Definition at line 20 of file cidr.h.

#define CIDR_USEV6   (1<<2)

Definition at line 19 of file cidr.h.

#define CIDR_VERBOSE   (1<<1)

Definition at line 18 of file cidr.h.

#define CIDR_VERSION   "1.1"

Definition at line 35 of file cidr.h.

#define CIDR_VERSION_STR   (CIDR_VERSION "-" CIDR_RELEASE CIDR_REVISION)

Definition at line 38 of file cidr.h.

#define CIDR_WILDCARD   (1<<7)

Definition at line 24 of file cidr.h.


Typedef Documentation

typedef struct cidr_addr CIDR

Definition at line 61 of file cidr.h.


Function Documentation

CIDR* cidr_addr_broadcast ( const CIDR )

Definition at line 60 of file cidr_addr.c.

CIDR* cidr_addr_hostmax ( const CIDR )

Definition at line 128 of file cidr_addr.c.

CIDR* cidr_addr_hostmin ( const CIDR )

Definition at line 112 of file cidr_addr.c.

CIDR* cidr_addr_network ( const CIDR )

Definition at line 15 of file cidr_addr.c.

CIDR* cidr_alloc ( void  )

Definition at line 18 of file cidr_mem.c.

int cidr_contains ( const CIDR ,
const CIDR  
)

Definition at line 16 of file cidr_compare.c.

CIDR* cidr_dup ( const CIDR )

Definition at line 36 of file cidr_mem.c.

int cidr_equals ( const CIDR ,
const CIDR  
)

Definition at line 100 of file cidr_compare.c.

void cidr_free ( CIDR )

Definition at line 51 of file cidr_mem.c.

CIDR* cidr_from_in6addr ( const struct in6_addr *  )

Definition at line 173 of file cidr_inaddr.c.

CIDR* cidr_from_inaddr ( const struct in_addr *  )

Definition at line 69 of file cidr_inaddr.c.

CIDR* cidr_from_str ( const char *  )

Definition at line 19 of file cidr_from_str.c.

uint8_t* cidr_get_addr ( const CIDR )

Definition at line 78 of file cidr_get.c.

uint8_t* cidr_get_mask ( const CIDR )

Definition at line 104 of file cidr_get.c.

int cidr_get_pflen ( const CIDR )

Definition at line 19 of file cidr_get.c.

int cidr_get_proto ( const CIDR )

Definition at line 130 of file cidr_get.c.

int cidr_is_v4mapped ( const CIDR )

Definition at line 24 of file cidr_misc.c.

CIDR** cidr_net_subnets ( const CIDR )

Definition at line 73 of file cidr_net.c.

CIDR* cidr_net_supernet ( const CIDR )

Definition at line 18 of file cidr_net.c.

const char* cidr_numaddr ( const CIDR )

Definition at line 30 of file cidr_num.c.

const char* cidr_numaddr_pflen ( int  )

Definition at line 16 of file cidr_num.c.

const char* cidr_numhost ( const CIDR )

Definition at line 64 of file cidr_num.c.

const char* cidr_numhost_pflen ( int  )

Definition at line 50 of file cidr_num.c.

struct in6_addr* cidr_to_in6addr ( const CIDR ,
struct in6_addr *   
) [read]

Definition at line 117 of file cidr_inaddr.c.

struct in_addr* cidr_to_inaddr ( const CIDR ,
struct in_addr *   
) [read]

Definition at line 17 of file cidr_inaddr.c.

char* cidr_to_str ( const CIDR ,
int   
)

Definition at line 18 of file cidr_to_str.c.

const char* cidr_version ( void  )

Definition at line 15 of file cidr_misc.c.