10139N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") 10139N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 10139N/A - Permission to use, copy, modify, and distribute this software for any 10139N/A - purpose with or without fee is hereby granted, provided that the above 10139N/A - copyright notice and this permission notice appear in all copies. 10139N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10139N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10139N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 10139N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 10139N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 10139N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 10139N/A - PERFORMANCE OF THIS SOFTWARE. 10139N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
10139N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
10139N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><
div class="refentry" lang="en">
10139N/A<
a name="id2456972"></
a><
div class="titlepage"></
div>
10139N/A<
p>lwres_net_ntop — lightweight resolver IP address presentation</
p>
10139N/A<
table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
10139N/A<
b class="fsfunc">lwres_net_ntop</
b>(</
code></
td>
10139N/A<
var class="pdparam">af</
var>, </
td>
10139N/A<
var class="pdparam">src</
var>, </
td>
10139N/A<
var class="pdparam">dst</
var>, </
td>
10139N/A<
var class="pdparam">size</
var><
code>)</
code>;</
td>
10139N/A<
div class="refsect1" lang="en">
10139N/A<
a name="id2514622"></
a><
h2>DESCRIPTION</
h2>
10139N/A<
p><
code class="function">lwres_net_ntop()</
code>
10139N/A converts an IP address of protocol family
10139N/A <
em class="parameter"><
code>af</
code></
em> — IPv4 or IPv6 — at
10139N/A location <
em class="parameter"><
code>src</
code></
em> from network format to its
10139N/A conventional representation as a string. For IPv4 addresses,
10139N/A that string would be a dotted-decimal. An IPv6 address would be
10139N/A represented in colon notation as described in RFC1884.
10139N/A The generated string is copied to <
em class="parameter"><
code>dst</
code></
em>
10139N/A <
em class="parameter"><
code>size</
code></
em> indicates it is long enough to
10139N/A ASCII representation of the address.
10139N/A<
div class="refsect1" lang="en">
10139N/A<
a name="id2514654"></
a><
h2>RETURN VALUES</
h2>
10139N/A If successful, the function returns <
em class="parameter"><
code>dst</
code></
em>:
10139N/A a pointer to a string containing the presentation format of the
10139N/A address. <
code class="function">lwres_net_ntop()</
code> returns
10139N/A <
span class="type">NULL</
span> and sets the global variable
10139N/A <
code class="constant">errno</
code> to <
span class="errorcode">EAFNOSUPPORT</
span> if
10139N/A the protocol family given in <
em class="parameter"><
code>af</
code></
em> is
10139N/A<
div class="refsect1" lang="en">
10139N/A<
a name="id2514688"></
a><
h2>SEE ALSO</
h2>
10139N/A<
p><
span class="citerefentry"><
span class="refentrytitle">RFC1884</
span></
span>,
10139N/A <
span class="citerefentry"><
span class="refentrytitle">inet_ntop</
span>(3)</
span>,
10139N/A <
span class="citerefentry"><
span class="refentrytitle">errno</
span>(3)</
span>.