lwres_inetntop.html revision 71c66a876ecca77923638d3f94cc0783152b2f03
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater - Copyright (C) 2000, 2001 Internet Software Consortium.
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.
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.
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater<!-- $Id: lwres_inetntop.html,v 1.20 2006/06/29 13:03:32 marka Exp $ -->
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
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>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<p>lwres_net_ntop — lightweight resolver IP address presentation</p>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<pre class="funcsynopsisinfo">#include <lwres/net.h></pre>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
298c514fff250c1a147176cfbbc1c0ca441d1ea5Automatic Updater<b class="fsfunc">lwres_net_ntop</b>(</code></td>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont<var class="pdparam">size</var><code>)</code>;</td>
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> — IPv4 or IPv6 — 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 The generated string is copied to <em class="parameter"><code>dst</code></em>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <em class="parameter"><code>size</code></em> indicates it is long enough to
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ASCII representation of the address.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater<a name="id2549468"></a><h2>RETURN VALUES</h2>
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<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>.