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