Blame lib/lwres/man/lwres_inetntop.docbook

Packit Service ae04f2
Packit Service ae04f2
]>
Packit Service ae04f2
Packit Service ae04f2
 - Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit Service ae04f2
 -
Packit Service ae04f2
 - This Source Code Form is subject to the terms of the Mozilla Public
Packit Service ae04f2
 - License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service ae04f2
 - file, You can obtain one at http://mozilla.org/MPL/2.0/.
Packit Service ae04f2
 -
Packit Service ae04f2
 - See the COPYRIGHT file distributed with this work for additional
Packit Service ae04f2
 - information regarding copyright ownership.
Packit Service ae04f2
-->
Packit Service ae04f2
Packit Service ae04f2
Packit Service ae04f2
<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0">
Packit Service ae04f2
  <info>
Packit Service ae04f2
    <date>2007-06-18</date>
Packit Service ae04f2
  </info>
Packit Service ae04f2
  <refentryinfo>
Packit Service ae04f2
    <corpname>ISC</corpname>
Packit Service ae04f2
    <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
Packit Service ae04f2
  </refentryinfo>
Packit Service ae04f2
Packit Service ae04f2
  <refmeta>
Packit Service ae04f2
    <refentrytitle>lwres_inetntop</refentrytitle>
Packit Service ae04f2
    <manvolnum>3</manvolnum>
Packit Service ae04f2
    <refmiscinfo>BIND9</refmiscinfo>
Packit Service ae04f2
  </refmeta>
Packit Service ae04f2
Packit Service ae04f2
  <docinfo>
Packit Service ae04f2
    <copyright>
Packit Service ae04f2
      <year>2000</year>
Packit Service ae04f2
      <year>2001</year>
Packit Service ae04f2
      <year>2004</year>
Packit Service ae04f2
      <year>2005</year>
Packit Service ae04f2
      <year>2007</year>
Packit Service ae04f2
      <year>2014</year>
Packit Service ae04f2
      <year>2015</year>
Packit Service ae04f2
      <year>2016</year>
Packit Service ae04f2
      <year>2018</year>
Packit Service ae04f2
      <year>2019</year>
Packit Service ae04f2
      <year>2020</year>
Packit Service ae04f2
      <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
Packit Service ae04f2
    </copyright>
Packit Service ae04f2
  </docinfo>
Packit Service ae04f2
Packit Service ae04f2
  <refnamediv>
Packit Service ae04f2
    <refname>lwres_net_ntop</refname>
Packit Service ae04f2
    <refpurpose>lightweight resolver IP address presentation</refpurpose>
Packit Service ae04f2
  </refnamediv>
Packit Service ae04f2
  <refsynopsisdiv>
Packit Service ae04f2
    <funcsynopsis>
Packit Service ae04f2
<funcsynopsisinfo>#include <lwres/net.h></funcsynopsisinfo>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
const char *
Packit Service ae04f2
<function>lwres_net_ntop</function></funcdef>
Packit Service ae04f2
        <paramdef>int <parameter>af</parameter></paramdef>
Packit Service ae04f2
        <paramdef>const void *<parameter>src</parameter></paramdef>
Packit Service ae04f2
        <paramdef>char *<parameter>dst</parameter></paramdef>
Packit Service ae04f2
        <paramdef>size_t <parameter>size</parameter></paramdef>
Packit Service ae04f2
      </funcprototype>
Packit Service ae04f2
</funcsynopsis>
Packit Service ae04f2
  </refsynopsisdiv>
Packit Service ae04f2
Packit Service ae04f2
  <refsection><info><title>DESCRIPTION</title></info>
Packit Service ae04f2
Packit Service ae04f2
Packit Service ae04f2
    <para><function>lwres_net_ntop()</function>
Packit Service ae04f2
      converts an IP address of protocol family
Packit Service ae04f2
      <parameter>af</parameter> — IPv4 or IPv6 — at
Packit Service ae04f2
      location <parameter>src</parameter> from network format to its
Packit Service ae04f2
      conventional representation as a string.  For IPv4 addresses,
Packit Service ae04f2
      that string would be a dotted-decimal.  An IPv6 address would be
Packit Service ae04f2
      represented in colon notation as described in RFC1884.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      The generated string is copied to <parameter>dst</parameter>
Packit Service ae04f2
      provided
Packit Service ae04f2
      <parameter>size</parameter> indicates it is long enough to
Packit Service ae04f2
      store the
Packit Service ae04f2
      ASCII representation of the address.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
  <refsection><info><title>RETURN VALUES</title></info>
Packit Service ae04f2
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      If successful, the function returns <parameter>dst</parameter>:
Packit Service ae04f2
      a pointer to a string containing the presentation format of the
Packit Service ae04f2
      address.  <function>lwres_net_ntop()</function> returns
Packit Service ae04f2
      <type>NULL</type> and sets the global variable
Packit Service ae04f2
      <constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> if
Packit Service ae04f2
      the protocol family given in <parameter>af</parameter> is
Packit Service ae04f2
      not
Packit Service ae04f2
      supported.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
  <refsection><info><title>SEE ALSO</title></info>
Packit Service ae04f2
Packit Service ae04f2
    <para><citerefentry>
Packit Service ae04f2
        <refentrytitle>RFC1884</refentrytitle>
Packit Service ae04f2
      </citerefentry>,
Packit Service ae04f2
      <citerefentry>
Packit Service ae04f2
        <refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>,
Packit Service ae04f2
      <citerefentry>
Packit Service ae04f2
        <refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>.
Packit Service ae04f2
    </para>
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
</refentry>