Man page for lwres_net_ntop

June 2, 2007 – 7:44 pm

LWRES_INETNTOP


Section: BIND9 (3)
Updated: Jun 30, 2000
Index
Return to Main Contents

 

NAME

lwres_net_ntop – lightweight resolver IP address presentation
 

SYNOPSIS


#include <lwres/net.h>



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


 

DESCRIPTION

lwres_net_ntop()

converts an IP address of protocol family
af
––– IPv4 or IPv6 ––– at location
src
from network format to its conventional representation as a string. For IPv4 addresses, that string would be a dotted–decimal. An IPv6 address would be represented in colon notation as described in RFC1884.

The generated string is copied to
dst
provided
size
indicates it is long enough to store the ASCII representation of the address.
 

RETURN VALUES

If successful, the function returns
dst: a pointer to a string containing the presentation format of the address.
lwres_net_ntop()
returns
NULL
and sets the global variable
errno
to
EAFNOSUPPORT
if the protocol family given in
af
is not supported.
 

SEE ALSO

RFC1884(),
inet_ntop(3),
errno(3).
 

COPYRIGHT

Copyright © 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")

Copyright © 2000, 2001 Internet Software Consortium.



 

Index



NAME

SYNOPSIS

DESCRIPTION

RETURN VALUES

SEE ALSO

COPYRIGHT



Related posts:

  1. man inet_ntop – Man page for inet_ntop
  2. Man page for lwres_getipnode
  3. man APR::IpSubnet – Man page for APR::IpSubnet
  4. man APR::IpSubnet – Man page for APR::IpSubnet
  5. man getaddrinfo – Man page for getaddrinfo
  6. man getnameinfo – Man page for getnameinfo
  7. man in – Man page for in
  8. man in.h – Man page for in.h
  9. man ccsd – Man page for ccsd
  10. man netdb – Man page for netdb

Post a Comment