bind  9.11.23
About: BIND 9.11 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). ESV = Extended Supported Version. Source code distribution.
  Fossies Dox: bind-9.11.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

inet_ntop.c File Reference
#include <config.h>
#include <errno.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <isc/net.h>
#include <isc/print.h>
#include <isc/util.h>
Include dependency graph for inet_ntop.c:

Go to the source code of this file.

Macros

#define NS_INT16SZ   2
 
#define NS_IN6ADDRSZ   16
 

Functions

static const char * inet_ntop4 (const unsigned char *src, char *dst, size_t size)
 
const char * isc_net_ntop (int af, const void *src, char *dst, size_t size)
 

Macro Definition Documentation

◆ NS_IN6ADDRSZ

#define NS_IN6ADDRSZ   16

Definition at line 28 of file inet_ntop.c.

◆ NS_INT16SZ

#define NS_INT16SZ   2

Definition at line 27 of file inet_ntop.c.

Function Documentation

◆ inet_ntop4()

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

const char * inet_ntop4(src, dst, size) format an IPv4 address

Returns
‘dst’ (as a const)
Note
(1) uses no statics
(2) takes a unsigned char* not an in_addr as input
Author
Paul Vixie, 1996.

Definition at line 81 of file inet_ntop.c.

Referenced by isc_net_ntop().

Here is the caller graph for this function:

◆ isc_net_ntop()

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

char * isc_net_ntop(af, src, dst, size) convert a network format address to presentation format.

Returns
pointer to presentation format address (‘dst’), or NULL (see errno).
Author
Paul Vixie, 1996.

Definition at line 52 of file inet_ntop.c.

References AF_INET6, EAFNOSUPPORT, and inet_ntop4().