netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cidr.c File Reference
#include <stdint.h>
#include <string.h>
#include <netinet/in.h>
#include "cidr.h"
Include dependency graph for cidr.c:

Functions

uint32_t ipv4_cidr2mask_host (uint8_t cidr)
 
uint32_t ipv4_cidr2mask_net (uint8_t cidr)
 
void ipv6_cidr2mask_host (uint8_t cidr, uint32_t *res)
 
void ipv6_cidr2mask_net (uint8_t cidr, uint32_t *res)
 
void ipv6_addr2addr_host (uint32_t *addr, uint32_t *res)
 

Function Documentation

uint32_t ipv4_cidr2mask_host ( uint8_t  cidr)

Referenced by ipv4_cidr2mask_net().

Here is the caller graph for this function:

uint32_t ipv4_cidr2mask_net ( uint8_t  cidr)

References ipv4_cidr2mask_host().

Here is the call graph for this function:

void ipv6_addr2addr_host ( uint32_t *  addr,
uint32_t *  res 
)
void ipv6_cidr2mask_host ( uint8_t  cidr,
uint32_t *  res 
)

Referenced by ipv6_cidr2mask_net().

Here is the caller graph for this function:

void ipv6_cidr2mask_net ( uint8_t  cidr,
uint32_t *  res 
)

References ipv6_cidr2mask_host().

Here is the call graph for this function: