lwres_inetntop.html revision 71c66a876ecca77923638d3f94cc0783152b2f03
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews<!--
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2000, 2001 Internet Software Consortium.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater -
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater - Permission to use, copy, modify, and distribute this software for any
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - purpose with or without fee is hereby granted, provided that the above
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater - copyright notice and this permission notice appear in all copies.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews -
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater - PERFORMANCE OF THIS SOFTWARE.
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater-->
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater<!-- $Id: lwres_inetntop.html,v 1.20 2006/06/29 13:03:32 marka Exp $ -->
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<html>
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater<head>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<title>lwres_inetntop</title>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater</head>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<a name="id2482688"></a><div class="titlepage"></div>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<div class="refnamediv">
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<h2>Name</h2>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<p>lwres_net_ntop &#8212; lightweight resolver IP address presentation</p>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson</div>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<div class="refsynopsisdiv">
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<h2>Synopsis</h2>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<div class="funcsynopsis">
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<pre class="funcsynopsisinfo">#include &lt;lwres/net.h&gt;</pre>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<tr>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<td><code class="funcdef">
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic Updaterconst char *
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updater<b class="fsfunc">lwres_net_ntop</b>(</code></td>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<td>�</td>
bbb069be941f649228760edcc241122933c066d2Automatic Updater<td>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<var class="pdparam">af</var>, </td>
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater</tr>
9d330c054e02f52cefd8dc0e71550b0fe07e077eAutomatic Updater<tr>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<td>�</td>
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater<td>�</td>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<td>
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater<var class="pdparam">af</var>, </td>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews</tr>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<tr>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<td>�</td>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<td>�</td>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<td>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<var class="pdparam">src</var>, </td>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews</tr>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<td>�</td>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<td>�</td>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<td>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<var class="pdparam">dst</var>, </td>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews</tr>
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater<tr>
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater<td>�</td>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont<td>�</td>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont<td>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont<var class="pdparam">size</var><code>)</code>;</td>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont</tr>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews</table>
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews</div>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews</div>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<div class="refsect1" lang="en">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<a name="id2549436"></a><h2>DESCRIPTION</h2>
4d0520004a9663324a6a30f2d1716565e6d0024cAutomatic Updater<p><code class="function">lwres_net_ntop()</code>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews converts an IP address of protocol family
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews <em class="parameter"><code>af</code></em> &#8212; IPv4 or IPv6 &#8212; at
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater location <em class="parameter"><code>src</code></em> from network format to its
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater conventional representation as a string. For IPv4 addresses,
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews that string would be a dotted-decimal. An IPv6 address would be
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews represented in colon notation as described in RFC1884.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews </p>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<p>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews The generated string is copied to <em class="parameter"><code>dst</code></em>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews provided
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <em class="parameter"><code>size</code></em> indicates it is long enough to
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews store the
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ASCII representation of the address.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews </p>
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater</div>
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater<div class="refsect1" lang="en">
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater<a name="id2549468"></a><h2>RETURN VALUES</h2>
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater<p>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater If successful, the function returns <em class="parameter"><code>dst</code></em>:
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater a pointer to a string containing the presentation format of the
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater address. <code class="function">lwres_net_ntop()</code> returns
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater <span class="type">NULL</span> and sets the global variable
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater <code class="constant">errno</code> to <span class="errorcode">EAFNOSUPPORT</span> if
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater the protocol family given in <em class="parameter"><code>af</code></em> is
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater not
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater supported.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater </p>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater</div>
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater<div class="refsect1" lang="en">
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<a name="id2549501"></a><h2>SEE ALSO</h2>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<p><span class="citerefentry"><span class="refentrytitle">RFC1884</span></span>,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <span class="citerefentry"><span class="refentrytitle">inet_ntop</span>(3)</span>,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span>.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater </p>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater</div>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater</div></body>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater</html>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater