2 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2001 Internet Software Consortium.
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- $Id: lwres_inetntop.html,v 1.5.2.2 2004/03/15 04:45:04 marka Exp $ -->
23 >lwres_inetntop</TITLE
26 CONTENT="Modular DocBook HTML Stylesheet Version 1.73
47 >lwres_net_ntop -- lightweight resolver IP address presentation</DIV
49 CLASS="REFSYNOPSISDIV"
63 CLASS="FUNCSYNOPSISINFO"
64 >#include <lwres/net.h></PRE
71 >(int af, const void *src, char *dst, size_t size);</CODE
88 > converts an IP address of
94 > — IPv4 or IPv6 —
100 > from network format to its
101 conventional representation as a string. For IPv4 addresses, that
102 string would be a dotted-decimal. An IPv6 address would be
103 represented in colon notation as described in RFC1884.</P
105 >The generated string is copied to <TT
116 > indicates it is long enough to store the
117 ASCII representation of the address.</P
127 >If successful, the function returns <TT
133 a pointer to a string containing the presentation format of the
136 >lwres_net_ntop()</TT
141 > and sets the global variable
149 the protocol family given in <TT
168 CLASS="REFENTRYTITLE"
175 CLASS="REFENTRYTITLE"
182 CLASS="REFENTRYTITLE"