inet_pton.cc File Reference
#include "squid.h"
Include dependency graph for inet_pton.cc:

Go to the source code of this file.

Macros

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

Functions

static int inet_pton4 (const char *src, u_char *dst)
 
static int inet_pton6 (const char *src, u_char *dst)
 
int xinet_pton (int af, const char *src, void *dst)
 

Macro Definition Documentation

#define NS_IN6ADDRSZ   16

Definition at line 83 of file inet_pton.cc.

Referenced by inet_pton6().

#define NS_INADDRSZ   4

Definition at line 80 of file inet_pton.cc.

Referenced by inet_pton4(), and inet_pton6().

#define NS_INT16SZ   2

Definition at line 86 of file inet_pton.cc.

Referenced by inet_pton6().

Function Documentation

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

Definition at line 134 of file inet_pton.cc.

References NS_INADDRSZ, and NULL.

Referenced by inet_pton6(), and xinet_pton().

static int inet_pton6 ( const char *  src,
u_char *  dst 
)
static

Definition at line 187 of file inet_pton.cc.

References i, inet_pton4(), NS_IN6ADDRSZ, NS_INADDRSZ, NS_INT16SZ, and NULL.

Referenced by xinet_pton().

int xinet_pton ( int  af,
const char *  src,
void *  dst 
)

Definition at line 109 of file inet_pton.cc.

References inet_pton4(), and inet_pton6().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors