lwres_inetntop.docbook revision 1753d3c4d74241a847794f7e7cfd94cc79be6600
98N/A<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
98N/A "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
109N/A [<!ENTITY mdash "&#8212;">]>
98N/A<!--
943N/A - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
98N/A - Copyright (C) 2000, 2001 Internet Software Consortium.
98N/A -
919N/A - Permission to use, copy, modify, and/or distribute this software for any
919N/A - purpose with or without fee is hereby granted, provided that the above
919N/A - copyright notice and this permission notice appear in all copies.
919N/A -
919N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
919N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
919N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
919N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
919N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
919N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
919N/A - PERFORMANCE OF THIS SOFTWARE.
919N/A-->
919N/A
919N/A<refentry>
919N/A
919N/A <refentryinfo>
919N/A <date>June 18, 2007</date>
98N/A </refentryinfo>
98N/A
98N/A <refmeta>
98N/A <refentrytitle>lwres_inetntop</refentrytitle>
493N/A <manvolnum>3</manvolnum>
98N/A <refmiscinfo>BIND9</refmiscinfo>
98N/A </refmeta>
1054N/A
98N/A <docinfo>
911N/A <copyright>
1054N/A <year>2004</year>
1054N/A <year>2005</year>
911N/A <year>2007</year>
98N/A <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
1054N/A </copyright>
98N/A <copyright>
98N/A <year>2000</year>
98N/A <year>2001</year>
493N/A <holder>Internet Software Consortium.</holder>
98N/A </copyright>
705N/A </docinfo>
705N/A
705N/A <refnamediv>
705N/A <refname>lwres_net_ntop</refname>
98N/A <refpurpose>lightweight resolver IP address presentation</refpurpose>
493N/A </refnamediv>
493N/A <refsynopsisdiv>
98N/A <funcsynopsis>
493N/A<funcsynopsisinfo>#include &lt;lwres/net.h&gt;</funcsynopsisinfo>
98N/A<funcprototype>
1054N/A <funcdef>
98N/Aconst char *
98N/A<function>lwres_net_ntop</function></funcdef>
<paramdef>int <parameter>af</parameter></paramdef>
<paramdef>const void *<parameter>src</parameter></paramdef>
<paramdef>char *<parameter>dst</parameter></paramdef>
<paramdef>size_t <parameter>size</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para><function>lwres_net_ntop()</function>
converts an IP address of protocol family
<parameter>af</parameter> &mdash; IPv4 or IPv6 &mdash; at
location <parameter>src</parameter> 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.
</para>
<para>
The generated string is copied to <parameter>dst</parameter>
provided
<parameter>size</parameter> indicates it is long enough to
store the
ASCII representation of the address.
</para>
</refsect1>
<refsect1>
<title>RETURN VALUES</title>
<para>
If successful, the function returns <parameter>dst</parameter>:
a pointer to a string containing the presentation format of the
address. <function>lwres_net_ntop()</function> returns
<type>NULL</type> and sets the global variable
<constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
the protocol family given in <parameter>af</parameter> is
not
supported.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para><citerefentry>
<refentrytitle>RFC1884</refentrytitle>
</citerefentry>,
<citerefentry>
<refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>.
</para>
</refsect1>
</refentry><!--
- Local variables:
- mode: sgml
- End:
-->