lwres_inetntop.html revision b0e8629055a766d4555a005a283c2889a5974945
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
a2c240fe8836beba2330b03d55569d9e31bb3358trawick - Copyright (C) 2000, 2001 Internet Software Consortium.
a2c240fe8836beba2330b03d55569d9e31bb3358trawick - Permission to use, copy, modify, and distribute this software for any
a2c240fe8836beba2330b03d55569d9e31bb3358trawick - purpose with or without fee is hereby granted, provided that the above
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb - copyright notice and this permission notice appear in all copies.
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13ee9baf0119bca0739d3f17591f0bf2c64cdcccrbb - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddard - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddard - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5a58a10705b7b154b53294e0c0283d64eabdcb7fstoddard - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanf - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3568de757bac0b47256647504c186d17ca272f85rbb - PERFORMANCE OF THIS SOFTWARE.
3568de757bac0b47256647504c186d17ca272f85rbb<!-- $Id: lwres_inetntop.html,v 1.23 2007/01/30 00:24:59 marka Exp $ -->
98f3c8c547839251cb43e9f917114cc8b16ced9efanf<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1a411968bb62cc88c3cbf14a53caf6587c224259fanf<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
10a2de5cee9ae5abe675ea200fbe635a54556c8ffanf<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
6f06d481dafc90f1b553f1d2828bcea50a039854fielding<p>lwres_net_ntop — lightweight resolver IP address presentation</p>
b5140df3124b186e4a977812fd9828d1e295c080wrowe<pre class="funcsynopsisinfo">#include <lwres/net.h></pre>
c9dafaafc2650994e47f88f5239f643c97ec4cb3wrowe<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
c9dafaafc2650994e47f88f5239f643c97ec4cb3wroweconst char *
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe converts an IP address of protocol family
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe <em class="parameter"><code>af</code></em> — IPv4 or IPv6 — at
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe location <em class="parameter"><code>src</code></em> from network format to its
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe conventional representation as a string. For IPv4 addresses,
b31025f6f2c0392dc76eecca7f27faad0b902be0wrowe that string would be a dotted-decimal. An IPv6 address would be
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464aben represented in colon notation as described in RFC1884.
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464aben The generated string is copied to <em class="parameter"><code>dst</code></em>
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb <em class="parameter"><code>size</code></em> indicates it is long enough to
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb ASCII representation of the address.
fcc25eda7b150e226d3c1cdaea66a943d3fdee4erbb If successful, the function returns <em class="parameter"><code>dst</code></em>:
cab10c98980b42562a7850410cecd37798e170ecrbb a pointer to a string containing the presentation format of the
cab10c98980b42562a7850410cecd37798e170ecrbb address. <code class="function">lwres_net_ntop()</code> returns
cab10c98980b42562a7850410cecd37798e170ecrbb <span class="type">NULL</span> and sets the global variable
cab10c98980b42562a7850410cecd37798e170ecrbb <code class="constant">errno</code> to <span class="errorcode">EAFNOSUPPORT</span> if
cab10c98980b42562a7850410cecd37798e170ecrbb the protocol family given in <em class="parameter"><code>af</code></em> is
71715c646d5231de578431f8961e711764b899d3fanf supported.
2714d6002fcdf12f5b26cc948c9f2f03ca5e7ee9rbb<p><span class="citerefentry"><span class="refentrytitle">RFC1884</span></span>,
2714d6002fcdf12f5b26cc948c9f2f03ca5e7ee9rbb <span class="citerefentry"><span class="refentrytitle">inet_ntop</span>(3)</span>,
8695c28e4d0bb9357f606045b37238d4f49ce8b6rbb <span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span>.