lwres_inetntop.docbook revision c651f15b30f1dae5cc2f00878fb5da5b3a35a468
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington<!--
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews - Copyright (C) 2000, 2001 Internet Software Consortium.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington -
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington - Permission to use, copy, modify, and distribute this software for any
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington - purpose with or without fee is hereby granted, provided that the above
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington - copyright notice and this permission notice appear in all copies.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington -
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington-->
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<!-- $Id: lwres_inetntop.docbook,v 1.5 2005/04/07 03:50:03 marka Exp $ -->
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refentry>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refentryinfo>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<date>Jun 30, 2000</date>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refentryinfo>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refmeta>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refentrytitle>lwres_inetntop</refentrytitle>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<manvolnum>3</manvolnum>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refmiscinfo>BIND9</refmiscinfo>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refmeta>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refnamediv>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refname>lwres_net_ntop</refname>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refpurpose>lightweight resolver IP address presentation</refpurpose>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refnamediv>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refsynopsisdiv>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<funcsynopsis>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<funcsynopsisinfo>#include &lt;lwres/net.h&gt;</funcsynopsisinfo>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<funcprototype>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<funcdef>
a769eca4e3b223866b01dc8f7a4dde8d9e49bab0Mark Andrewsconst char *
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<function>lwres_net_ntop</function></funcdef>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<paramdef>int af</paramdef>
b435b1ded3def3159f597953d21dffc1615cb250Brian Wellington<paramdef>const void *src</paramdef>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<paramdef>char *dst</paramdef>
9b6a170d22d61026d31bde87523f3320628b6ebcBrian Wellington<paramdef>size_t size</paramdef>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</funcprototype>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</funcsynopsis>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refsynopsisdiv>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refsect1>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<title>DESCRIPTION</title>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<function>lwres_net_ntop()</function> converts an IP address of
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyprotocol family <parameter>af</parameter> &mdash; IPv4 or IPv6 &mdash;
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyat location <parameter>src</parameter> from network format to its
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyconventional representation as a string. For IPv4 addresses, that
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleystring would be a dotted-decimal. An IPv6 address would be
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyrepresented in colon notation as described in RFC1884.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyThe generated string is copied to <parameter>dst</parameter> provided
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<parameter>size</parameter> indicates it is long enough to store the
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyASCII representation of the address.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refsect1>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<refsect1>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<title>RETURN VALUES</title>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyIf successful, the function returns <parameter>dst</parameter>:
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleya pointer to a string containing the presentation format of the
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyaddress. <function>lwres_net_ntop()</function> returns
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<type>NULL</type> and sets the global variable
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley<constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleythe protocol family given in <parameter>af</parameter> is not
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleysupported.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refsect1>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<refsect1>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<title>SEE ALSO</title>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<para>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<citerefentry>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<refentrytitle>RFC1884</refentrytitle>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews</citerefentry>,
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<citerefentry>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews</citerefentry>,
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<citerefentry>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews<refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews</citerefentry>.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</para>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refsect1>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley</refentry>
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley