- Copyright (C) 2001 Internet Software Consortium. - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONTENT="Modular DocBook HTML Stylesheet Version 1.61 >lwres_net_ntop -- lightweight resolver IP address presentation</
DIV>(int af, const void *src, char *dst, size_t size);</
CODEconverts an IP address of protocol family
— IPv4 or IPv6 —
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
>The generated string is copied to
indicates it is long enough to store the ASCII representation
>If successful, the function returns
a pointer to a string containing
the presentation format of the address.
and sets the global variable
if the protocol family given in