lwres_inetntop.html revision 5347c0fcb04eaea19d9f39795646239f487c6207
2086N/A<!--
2086N/A - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
2086N/A -
2086N/A - This Source Code Form is subject to the terms of the Mozilla Public
2086N/A - License, v. 2.0. If a copy of the MPL was not distributed with this
2086N/A - file, You can obtain one at http://mozilla.org/MPL/2.0/.
2086N/A-->
6983N/A<html>
6983N/A<head>
2086N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
2086N/A<title>lwres_inetntop</title>
2086N/A<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
2086N/A</head>
6983N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
6983N/A<a name="id-1"></a><div class="titlepage"></div>
6983N/A<div class="refnamediv">
6983N/A<h2>Name</h2>
2086N/A<p>lwres_net_ntop &#8212; lightweight resolver IP address presentation</p>
2086N/A</div>
2086N/A<div class="refsynopsisdiv">
2086N/A<h2>Synopsis</h2>
5199N/A<div class="funcsynopsis">
5303N/A<pre class="funcsynopsisinfo">#include &lt;lwres/net.h&gt;</pre>
7044N/A<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
2086N/A<tr>
2086N/A<td><code class="funcdef">
2086N/Aconst char *
2086N/A<b class="fsfunc">lwres_net_ntop</b>(</code></td>
2086N/A<td>int <var class="pdparam">af</var>, </td>
2086N/A</tr>
2086N/A<tr>
2086N/A<td>�</td>
2086N/A<td>const void *<var class="pdparam">src</var>, </td>
2086N/A</tr>
2086N/A<tr>
2086N/A<td>�</td>
2086N/A<td>char *<var class="pdparam">dst</var>, </td>
2086N/A</tr>
2086N/A<tr>
2086N/A<td>�</td>
2086N/A<td>size_t <var class="pdparam">size</var><code>)</code>;</td>
2086N/A</tr>
2086N/A</table>
2086N/A<div class="funcprototype-spacer">�</div>
2086N/A</div>
2086N/A</div>
2086N/A<div class="refsection">
2086N/A<a name="id-1.7"></a><h2>DESCRIPTION</h2>
2086N/A<p><code class="function">lwres_net_ntop()</code>
2086N/A converts an IP address of protocol family
2086N/A <em class="parameter"><code>af</code></em> &#8212; IPv4 or IPv6 &#8212; at
2086N/A location <em class="parameter"><code>src</code></em> from network format to its
2086N/A conventional representation as a string. For IPv4 addresses,
2086N/A that string would be a dotted-decimal. An IPv6 address would be
2086N/A represented in colon notation as described in RFC1884.
2086N/A </p>
2086N/A<p>
2086N/A The generated string is copied to <em class="parameter"><code>dst</code></em>
2086N/A provided
2086N/A <em class="parameter"><code>size</code></em> indicates it is long enough to
2086N/A store the
2086N/A ASCII representation of the address.
2086N/A </p>
2086N/A</div>
2086N/A<div class="refsection">
2960N/A<a name="id-1.8"></a><h2>RETURN VALUES</h2>
2086N/A<p>
2086N/A If successful, the function returns <em class="parameter"><code>dst</code></em>:
2960N/A a pointer to a string containing the presentation format of the
2086N/A address. <code class="function">lwres_net_ntop()</code> returns
2086N/A <span class="type">NULL</span> and sets the global variable
2960N/A <code class="constant">errno</code> to <span class="errorcode">EAFNOSUPPORT</span> if
2086N/A the protocol family given in <em class="parameter"><code>af</code></em> is
2086N/A not
2960N/A supported.
2960N/A </p>
2960N/A</div>
2960N/A<div class="refsection">
2960N/A<a name="id-1.9"></a><h2>SEE ALSO</h2>
2960N/A<p><span class="citerefentry"><span class="refentrytitle">RFC1884</span></span>,
2086N/A <span class="citerefentry"><span class="refentrytitle">inet_ntop</span>(3)</span>,
2960N/A <span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span>.
2086N/A </p>
2960N/A</div>
2960N/A</div></body>
2960N/A</html>
2086N/A