1LWRES_INETNTOP(3)                    BIND9                   LWRES_INETNTOP(3)
2
3
4

NAME

6       lwres_net_ntop - lightweight resolver IP address presentation
7

SYNOPSIS

9       #include <lwres/net.h>
10
11       const char * lwres_net_ntop(int af, const void *src, char *dst,
12                                   size_t size);
13

DESCRIPTION

15       lwres_net_ntop() converts an IP address of protocol family af — IPv4 or
16       IPv6 — at location src from network format to its conventional
17       representation as a string. For IPv4 addresses, that string would be a
18       dotted-decimal. An IPv6 address would be represented in colon notation
19       as described in RFC1884.
20
21       The generated string is copied to dst provided size indicates it is
22       long enough to store the ASCII representation of the address.
23

RETURN VALUES

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

SEE ALSO

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

AUTHOR

34       Internet Systems Consortium, Inc.
35
37       Copyright © 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018-2020 Internet
38       Systems Consortium, Inc. ("ISC")
39
40
41
42ISC                               2007-06-18                 LWRES_INETNTOP(3)
Impressum