0N/A - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC") 0N/A - This Source Code Form is subject to the terms of the Mozilla Public 0N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 0N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
0N/A<
title>lwres_inetntop</
title>
0N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
0N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><
div class="refentry">
0N/A<
a name="id-1"></
a><
div class="titlepage"></
div>
0N/A <
div class="refnamediv">
0N/A — lightweight resolver IP address presentation
0N/A <
div class="refsynopsisdiv">
0N/A <
div class="funcsynopsis">
0N/A<
table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
0N/A<
td><
code class="funcdef">
0N/A<
b class="fsfunc">lwres_net_ntop</
b>(</
code></
td>
0N/A<
td>int <
var class="pdparam">af</
var>, </
td>
0N/A<
td>const void *<
var class="pdparam">src</
var>, </
td>
0N/A<
td>char *<
var class="pdparam">dst</
var>, </
td>
0N/A<
td>size_t <
var class="pdparam">size</
var><
code>)</
code>;</
td>
0N/A<
div class="funcprototype-spacer">�</
div>
0N/A <
div class="refsection">
0N/A<
a name="id-1.7"></
a><
h2>DESCRIPTION</
h2>
0N/A <
p><
code class="function">lwres_net_ntop()</
code>
0N/A converts an IP address of protocol family
0N/A <
em class="parameter"><
code>af</
code></
em> — IPv4 or IPv6 — at
0N/A location <
em class="parameter"><
code>src</
code></
em> from network format to its
0N/A conventional representation as a string. For IPv4 addresses,
0N/A that string would be a dotted-decimal. An IPv6 address would be
0N/A represented in colon notation as described in RFC1884.
0N/A The generated string is copied to <
em class="parameter"><
code>dst</
code></
em>
0N/A <
em class="parameter"><
code>size</
code></
em> indicates it is long enough to
0N/A ASCII representation of the address.
0N/A <
div class="refsection">
0N/A<
a name="id-1.8"></
a><
h2>RETURN VALUES</
h2>
0N/A If successful, the function returns <
em class="parameter"><
code>dst</
code></
em>:
0N/A a pointer to a string containing the presentation format of the
0N/A address. <
code class="function">lwres_net_ntop()</
code> returns
0N/A <
span class="type">NULL</
span> and sets the global variable
0N/A <
code class="constant">errno</
code> to <
span class="errorcode">EAFNOSUPPORT</
span> if
0N/A the protocol family given in <
em class="parameter"><
code>af</
code></
em> is
0N/A <
div class="refsection">
0N/A<
a name="id-1.9"></
a><
h2>SEE ALSO</
h2>
0N/A <
p><
span class="citerefentry">
0N/A <
span class="refentrytitle">RFC1884</
span>
0N/A <
span class="citerefentry">
0N/A <
span class="refentrytitle">inet_ntop</
span>(3)
0N/A <
span class="citerefentry">
0N/A <
span class="refentrytitle">errno</
span>(3)