lwres_inetntop.html revision fd2597f75693a2279fdf588bd40dfe2407c42028
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem - Copyright (C) 2000, 2001 Internet Software Consortium.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic - Permission to use, copy, modify, and/or distribute this software for any
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic - purpose with or without fee is hereby granted, provided that the above
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic - copyright notice and this permission notice appear in all copies.
4da61833a1cbbca94094f9653fd970582b97a72etrawick - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
4da61833a1cbbca94094f9653fd970582b97a72etrawick - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4da61833a1cbbca94094f9653fd970582b97a72etrawick - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
4da61833a1cbbca94094f9653fd970582b97a72etrawick - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4789804be088bcd86ae637a29cdb7fda25169521jailletc - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
4789804be088bcd86ae637a29cdb7fda25169521jailletc - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4789804be088bcd86ae637a29cdb7fda25169521jailletc - PERFORMANCE OF THIS SOFTWARE.
e50c3026198fd496f183cda4c32a202925476778covener<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic<p>lwres_net_ntop — lightweight resolver IP address presentation</p>
69301145375a889e7e37caf7cc7321ac0f91801erpluem<pre class="funcsynopsisinfo">#include <lwres/net.h></pre>
69301145375a889e7e37caf7cc7321ac0f91801erpluem<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
506bfe33206b2fece40ef25f695af39dd4130facjkaluzaconst char *
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic<td>size_t <var class="pdparam">size</var><code>)</code>;</td>
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener converts an IP address of protocol family
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener <em class="parameter"><code>af</code></em> — IPv4 or IPv6 — at
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener location <em class="parameter"><code>src</code></em> from network format to its
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener conventional representation as a string. For IPv4 addresses,
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener that string would be a dotted-decimal. An IPv6 address would be
44ff304057225e944e220e981d434a046d14cf06covener represented in colon notation as described in RFC1884.
44ff304057225e944e220e981d434a046d14cf06covener The generated string is copied to <em class="parameter"><code>dst</code></em>
5d1ba75b8794925e67591c209085a49279791de9covener <em class="parameter"><code>size</code></em> indicates it is long enough to
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand ASCII representation of the address.
caad2986f81ab263f7af41467dd622dc9add17f3ylavic If successful, the function returns <em class="parameter"><code>dst</code></em>:
caad2986f81ab263f7af41467dd622dc9add17f3ylavic a pointer to a string containing the presentation format of the
45a10d38e6051fd7bdf9d742aaae633d97ff02abjailletc address. <code class="function">lwres_net_ntop()</code> returns
f7317ff316c2b141feea31bddb74d5d3fa1584edjorton <span class="type">NULL</span> and sets the global variable
f7317ff316c2b141feea31bddb74d5d3fa1584edjorton <code class="constant">errno</code> to <span class="errorcode">EAFNOSUPPORT</span> if
2165214331e4afafca4048f66f303d0253d7b001covener the protocol family given in <em class="parameter"><code>af</code></em> is
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh<p><span class="citerefentry"><span class="refentrytitle">RFC1884</span></span>,
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh <span class="citerefentry"><span class="refentrytitle">inet_ntop</span>(3)</span>,
0b67eb8568cd58bb77082703951679b42cf098actrawick <span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span>.