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

Macros

#define IN6PTON_XDIGIT   0x00010000
 
#define IN6PTON_DIGIT   0x00020000
 
#define IN6PTON_COLON_MASK   0x00700000
 
#define IN6PTON_COLON_1   0x00100000 /* single : requested */
 
#define IN6PTON_COLON_2   0x00200000 /* second : requested */
 
#define IN6PTON_COLON_1_2   0x00400000 /* :: requested */
 
#define IN6PTON_DOT   0x00800000 /* . */
 
#define IN6PTON_DELIM   0x10000000
 
#define IN6PTON_NULL   0x20000000 /* first/tail */
 
#define IN6PTON_UNKNOWN   0x40000000
 

Functions

int in4_pton (const char *src, int srclen, uint8_t *dst, int delim, const char **end)
 
int in6_pton (const char *src, int srclen, uint8_t *dst, int delim, const char **end)
 

Macro Definition Documentation

#define IN6PTON_COLON_1   0x00100000 /* single : requested */

Referenced by in6_pton().

#define IN6PTON_COLON_1_2   0x00400000 /* :: requested */

Referenced by in6_pton().

#define IN6PTON_COLON_2   0x00200000 /* second : requested */

Referenced by in6_pton().

#define IN6PTON_COLON_MASK   0x00700000

Referenced by in4_pton(), and in6_pton().

#define IN6PTON_DELIM   0x10000000

Referenced by in4_pton(), and in6_pton().

#define IN6PTON_DIGIT   0x00020000

Referenced by in4_pton().

#define IN6PTON_DOT   0x00800000 /* . */

Referenced by in4_pton(), and in6_pton().

#define IN6PTON_NULL   0x20000000 /* first/tail */

Referenced by in6_pton().

#define IN6PTON_UNKNOWN   0x40000000
#define IN6PTON_XDIGIT   0x00010000

Referenced by in6_pton().

Function Documentation

int in4_pton ( const char *  src,
int  srclen,
uint8_t *  dst,
int  delim,
const char **  end 
)

References IN6PTON_COLON_MASK, IN6PTON_DELIM, IN6PTON_DIGIT, IN6PTON_DOT, and s.

Referenced by in6_pton().

Here is the caller graph for this function:

int in6_pton ( const char *  src,
int  srclen,
uint8_t *  dst,
int  delim,
const char **  end 
)