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

Go to the source code of this file.

Macros

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

Functions

static const char * inet_ntop4 (const u_char *src, char *dst, size_t size)
 
static const char * inet_ntop6 (const u_char *src, char *dst, size_t size)
 
const char * xinet_ntop (int af, const void *src, char *dst, size_t size)
 

Macro Definition Documentation

#define NS_IN6ADDRSZ   16

Definition at line 88 of file inet_ntop.cc.

Referenced by inet_ntop6().

#define NS_INADDRSZ   4

Definition at line 85 of file inet_ntop.cc.

#define NS_INT16SZ   2

Definition at line 91 of file inet_ntop.cc.

Referenced by inet_ntop6().

Function Documentation

static const char * inet_ntop4 ( const u_char *  src,
char *  dst,
size_t  size 
)
static

Definition at line 137 of file inet_ntop.cc.

References min(), NULL, and size.

Referenced by inet_ntop6(), and xinet_ntop().

static const char * inet_ntop6 ( const u_char *  src,
char *  dst,
size_t  size 
)
static

Definition at line 157 of file inet_ntop.cc.

References cur, i, inet_ntop4(), len, NS_IN6ADDRSZ, NS_INT16SZ, and NULL.

Referenced by xinet_ntop().

const char* xinet_ntop ( int  af,
const void *  src,
char *  dst,
size_t  size 
)

Definition at line 111 of file inet_ntop.cc.

References inet_ntop4(), inet_ntop6(), and NULL.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors