dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Functions
inet_pton.c File Reference
#include <config.h>
#include <arpa/inet.h>
#include <c-ctype.h>
#include <string.h>
#include <errno.h>
Include dependency graph for inet_pton.c:

Macros

#define NS_INADDRSZ   4
 
#define NS_IN6ADDRSZ   16
 
#define NS_INT16SZ   2
 

Functions

static int inet_pton4 (const char *src, unsigned char *dst)
 
int inet_pton (int af, const char *restrict src, void *restrict dst)
 
static int inet_pton4 (const char *restrict src, unsigned char *restrict dst)
 

Macro Definition Documentation

◆ NS_IN6ADDRSZ

#define NS_IN6ADDRSZ   16

Referenced by inet_pton4().

◆ NS_INADDRSZ

#define NS_INADDRSZ   4

Referenced by inet_pton4().

◆ NS_INT16SZ

#define NS_INT16SZ   2

Referenced by inet_pton4().

Function Documentation

◆ inet_pton()

int inet_pton ( int  af,
const char *restrict  src,
void *restrict  dst 
)

Referenced by parse_ipaddr_init(), and parse_ipaddr_v6().

Here is the call graph for this function:

◆ inet_pton4() [1/2]

static int inet_pton4 ( const char *  src,
unsigned char *  dst 
)
static

Referenced by inet_pton(), and inet_pton4().

◆ inet_pton4() [2/2]

static int inet_pton4 ( const char *restrict  src,
unsigned char *restrict  dst 
)
static
Here is the call graph for this function: