2 <!ENTITY mdash "—">]>
4 - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
5 - Copyright (C) 2000, 2001 Internet Software Consortium.
7 - Permission to use, copy, modify, and/or distribute this software for any
8 - purpose with or without fee is hereby granted, provided that the above
9 - copyright notice and this permission notice appear in all copies.
11 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 - PERFORMANCE OF THIS SOFTWARE.
20 <!-- Converted by db4-upgrade version 1.0 -->
21 <refentry xmlns="http://docbook.org/ns/docbook" version="5.0">
23 <date>2007-06-18</date>
26 <corpname>ISC</corpname>
27 <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
31 <refentrytitle>lwres_inetntop</refentrytitle>
32 <manvolnum>3</manvolnum>
33 <refmiscinfo>BIND9</refmiscinfo>
43 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
48 <holder>Internet Software Consortium.</holder>
53 <refname>lwres_net_ntop</refname>
54 <refpurpose>lightweight resolver IP address presentation</refpurpose>
58 <funcsynopsisinfo>#include <lwres/net.h></funcsynopsisinfo>
62 <function>lwres_net_ntop</function></funcdef>
63 <paramdef>int <parameter>af</parameter></paramdef>
64 <paramdef>const void *<parameter>src</parameter></paramdef>
65 <paramdef>char *<parameter>dst</parameter></paramdef>
66 <paramdef>size_t <parameter>size</parameter></paramdef>
71 <refsection><info><title>DESCRIPTION</title></info>
74 <para><function>lwres_net_ntop()</function>
75 converts an IP address of protocol family
76 <parameter>af</parameter> — IPv4 or IPv6 — at
77 location <parameter>src</parameter> from network format to its
78 conventional representation as a string. For IPv4 addresses,
79 that string would be a dotted-decimal. An IPv6 address would be
80 represented in colon notation as described in RFC1884.
84 The generated string is copied to <parameter>dst</parameter>
86 <parameter>size</parameter> indicates it is long enough to
88 ASCII representation of the address.
92 <refsection><info><title>RETURN VALUES</title></info>
96 If successful, the function returns <parameter>dst</parameter>:
97 a pointer to a string containing the presentation format of the
98 address. <function>lwres_net_ntop()</function> returns
99 <type>NULL</type> and sets the global variable
100 <constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
101 the protocol family given in <parameter>af</parameter> is
107 <refsection><info><title>SEE ALSO</title></info>
110 <refentrytitle>RFC1884</refentrytitle>
113 <refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
116 <refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>