Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pfxlen.h File Reference
#include <asm/byteorder.h>
#include <linux/netfilter.h>
#include <net/tcp.h>

Go to the source code of this file.

Macros

#define ip_set_mask_from_to(from, to, cidr)
 

Functions

u32 ip_set_range_to_cidr (u32 from, u32 to, u8 *cidr)
 

Variables

union nf_inet_addr ip_set_netmask_map []
 
union nf_inet_addr ip_set_hostmask_map []
 

Macro Definition Documentation

#define ip_set_mask_from_to (   from,
  to,
  cidr 
)
Value:
do { \
from &= ip_set_hostmask(cidr); \
to = from | ~ip_set_hostmask(cidr); \
} while (0)

Definition at line 38 of file pfxlen.h.

Function Documentation

u32 ip_set_range_to_cidr ( u32  from,
u32  to,
u8 cidr 
)

Definition at line 296 of file pfxlen.c.

Variable Documentation

union nf_inet_addr ip_set_hostmask_map[]

Definition at line 161 of file pfxlen.c.

union nf_inet_addr ip_set_netmask_map[]

Definition at line 18 of file pfxlen.c.