lwres_inetntop.docbook revision 30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync<!ENTITY mdash "—">]>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - Copyright (C) 2000, 2001 Internet Software Consortium.
340c9153ef85fdaf7acf99926a068a62197308cfvboxsync - Permission to use, copy, modify, and/or distribute this software for any
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - purpose with or without fee is hereby granted, provided that the above
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - copyright notice and this permission notice appear in all copies.
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync - PERFORMANCE OF THIS SOFTWARE.
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync<!-- Converted by db4-upgrade version 1.0 -->
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync<refentry xmlns="http://docbook.org/ns/docbook" version="5.0">
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <refentryinfo>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync </refentryinfo>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <copyright>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync </copyright>
a425b5e790c27d6a1a2cf738802e9034f0764a00vboxsync <copyright>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync </copyright>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync <refnamediv>
1e9377d042fa2ea3e2cd78805678f23f64db55f6vboxsync <refpurpose>lightweight resolver IP address presentation</refpurpose>
051eba4436f9c682f7873390fb327e8eceb9e0efvboxsync </refnamediv>
6febf3149010855617e4a37e2c49f93d68930d44vboxsync <refsynopsisdiv>
2e8034536f2ada0455cc5c85f746e5e1cd49eea0vboxsync <funcsynopsis>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync<funcsynopsisinfo>#include <lwres/net.h></funcsynopsisinfo>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync<funcprototype>
80e46f984efd827517661c0e081a36014ca41af8vboxsyncconst char *
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync <paramdef>const void *<parameter>src</parameter></paramdef>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync <paramdef>char *<parameter>dst</parameter></paramdef>
174f11bbd5c277153742aa5e6c3bd640bf379547vboxsync <paramdef>size_t <parameter>size</parameter></paramdef>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync </funcprototype>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync</funcsynopsis>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync </refsynopsisdiv>
48dafba24ef28f07a241e5857a43b327822574a8vboxsync <refsection><info><title>DESCRIPTION</title></info>
a425b5e790c27d6a1a2cf738802e9034f0764a00vboxsync converts an IP address of protocol family
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <parameter>af</parameter> — IPv4 or IPv6 — at
710a6316a22868b04400caf79719f96c18163cd3vboxsync location <parameter>src</parameter> from network format to its
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync conventional representation as a string. For IPv4 addresses,
a425b5e790c27d6a1a2cf738802e9034f0764a00vboxsync that string would be a dotted-decimal. An IPv6 address would be
174f11bbd5c277153742aa5e6c3bd640bf379547vboxsync represented in colon notation as described in RFC1884.
80e46f984efd827517661c0e081a36014ca41af8vboxsync The generated string is copied to <parameter>dst</parameter>
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync <parameter>size</parameter> indicates it is long enough to
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync ASCII representation of the address.
1e9377d042fa2ea3e2cd78805678f23f64db55f6vboxsync </refsection>
051eba4436f9c682f7873390fb327e8eceb9e0efvboxsync <refsection><info><title>RETURN VALUES</title></info>
80e46f984efd827517661c0e081a36014ca41af8vboxsync If successful, the function returns <parameter>dst</parameter>:
80e46f984efd827517661c0e081a36014ca41af8vboxsync a pointer to a string containing the presentation format of the
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync address. <function>lwres_net_ntop()</function> returns
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync <constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
aeb9498c4d9854ed42b271541d34c7bad97b4c77vboxsync the protocol family given in <parameter>af</parameter> is
c0a5da26f7222b0a486d6d9ba4d1f475a78a2c73vboxsync </refsection>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync </citerefentry>,
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <citerefentry>
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
ba05e6aeed3cd14961a36e0162c29a267b66d7f7vboxsync </citerefentry>,
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync <citerefentry>
1dc37bff2fb26897f5892d8330fe2bc0c9859aecvboxsync <refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>
fb1975a6972d89de9e515bed0248db93f04ec9d8vboxsync </citerefentry>.
bddad5eeab93a98d4ea571ccdf016531bb4318advboxsync </refsection>