1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
2 "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
3 [<!ENTITY mdash "—">]>
5 - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
6 - Copyright (C) 2000, 2001 Internet Software Consortium.
8 - Permission to use, copy, modify, and distribute this software for any
9 - purpose with or without fee is hereby granted, provided that the above
10 - copyright notice and this permission notice appear in all copies.
12 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 - PERFORMANCE OF THIS SOFTWARE.
21 <!-- $Id: lwres_inetntop.docbook,v 1.3.206.3 2005/05/12 21:36:15 sra Exp $ -->
26 <date>Jun 30, 2000</date>
30 <refentrytitle>lwres_inetntop</refentrytitle>
31 <manvolnum>3</manvolnum>
32 <refmiscinfo>BIND9</refmiscinfo>
39 <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
44 <holder>Internet Software Consortium.</holder>
49 <refname>lwres_net_ntop</refname>
50 <refpurpose>lightweight resolver IP address presentation</refpurpose>
54 <funcsynopsisinfo>#include <lwres/net.h></funcsynopsisinfo>
58 <function>lwres_net_ntop</function></funcdef>
59 <paramdef>int af</paramdef>
60 <paramdef>const void *src</paramdef>
61 <paramdef>char *dst</paramdef>
62 <paramdef>size_t size</paramdef>
68 <title>DESCRIPTION</title>
71 <function>lwres_net_ntop()</function> converts an IP address of
72 protocol family <parameter>af</parameter> — IPv4 or IPv6 —
73 at location <parameter>src</parameter> from network format to its
74 conventional representation as a string. For IPv4 addresses, that
75 string would be a dotted-decimal. An IPv6 address would be
76 represented in colon notation as described in RFC1884.
80 The generated string is copied to <parameter>dst</parameter> provided
81 <parameter>size</parameter> indicates it is long enough to store the
82 ASCII representation of the address.
87 <title>RETURN VALUES</title>
90 If successful, the function returns <parameter>dst</parameter>:
91 a pointer to a string containing the presentation format of the
92 address. <function>lwres_net_ntop()</function> returns
93 <type>NULL</type> and sets the global variable
94 <constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
95 the protocol family given in <parameter>af</parameter> is not
101 <title>SEE ALSO</title>
104 <refentrytitle>RFC1884</refentrytitle>
107 <refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
110 <refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>