inet_ntop.c File Reference

#include <config.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <isc/net.h>
#include <isc/print.h>

Go to the source code of this file.

Defines

#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)


Detailed Description

Definition in file inet_ntop.c.


Define Documentation

#define NS_INT16SZ   2

Definition at line 34 of file inet_ntop.c.

Referenced by inet_pton6(), and locator_pton().

#define NS_IN6ADDRSZ   16

Definition at line 35 of file inet_ntop.c.

Referenced by add_nameserver(), and inet_pton6().


Function Documentation

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 88 of file inet_ntop.c.

Referenced by 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 59 of file inet_ntop.c.

References AF_INET6, and inet_ntop4().


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha