98N/A<!
DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 109N/A [<!ENTITY mdash "—">]>
943N/A - Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") 98N/A - Copyright (C) 2000, 2001 Internet Software Consortium. 919N/A - Permission to use, copy, modify, and/or distribute this software for any 919N/A - purpose with or without fee is hereby granted, provided that the above 919N/A - copyright notice and this permission notice appear in all copies. 919N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 919N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 919N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 919N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 919N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 919N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 919N/A - PERFORMANCE OF THIS SOFTWARE. 919N/A <
date>June 18, 2007</
date>
98N/A <
refentrytitle>lwres_inetntop</
refentrytitle>
493N/A <
manvolnum>3</
manvolnum>
98N/A <
refmiscinfo>BIND9</
refmiscinfo>
98N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
493N/A <
holder>Internet Software Consortium.</
holder>
705N/A <
refname>lwres_net_ntop</
refname>
98N/A <
refpurpose>lightweight resolver IP address presentation</
refpurpose>
98N/A<
function>lwres_net_ntop</
function></
funcdef>
<
paramdef>int <
parameter>af</
parameter></
paramdef>
<
paramdef>const void *<
parameter>src</
parameter></
paramdef>
<
paramdef>char *<
parameter>dst</
parameter></
paramdef>
<
paramdef>size_t <
parameter>size</
parameter></
paramdef>
<
title>DESCRIPTION</
title>
<
para><
function>lwres_net_ntop()</
function>
converts an IP address of protocol family
<
parameter>af</
parameter> — IPv4 or IPv6 — at
location <
parameter>src</
parameter> from network format to its
conventional representation as a string. For IPv4 addresses,
that string would be a dotted-decimal. An IPv6 address would be
represented in colon notation as described in RFC1884.
The generated string is copied to <
parameter>dst</
parameter>
<
parameter>size</
parameter> indicates it is long enough to
ASCII representation of the address.
<
title>RETURN VALUES</
title>
If successful, the function returns <
parameter>dst</
parameter>:
a pointer to a string containing the presentation format of the
address. <
function>lwres_net_ntop()</
function> returns
<
type>NULL</
type> and sets the global variable
<
constant>errno</
constant> to <
errorcode>EAFNOSUPPORT</
errorcode> if
the protocol family given in <
parameter>af</
parameter> is
<
refentrytitle>RFC1884</
refentrytitle>
<
refentrytitle>inet_ntop</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>errno</
refentrytitle><
manvolnum>3</
manvolnum>