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