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

◆ NS_IN6ADDRSZ

#define NS_IN6ADDRSZ   16

Definition at line 88 of file inet_ntop.cc.

◆ NS_INADDRSZ

#define NS_INADDRSZ   4

Definition at line 85 of file inet_ntop.cc.

◆ NS_INT16SZ

#define NS_INT16SZ   2

Definition at line 91 of file inet_ntop.cc.

Function Documentation

◆ inet_ntop4()

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(), and size.

Referenced by inet_ntop6(), and xinet_ntop().

◆ inet_ntop6()

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, inet_ntop4(), NS_IN6ADDRSZ, NS_INT16SZ, and size.

Referenced by xinet_ntop().

◆ 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 size.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors