|
Packit |
5ce601 |
.\" Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018-2020 Internet Systems Consortium, Inc. ("ISC")
|
|
Packit |
5ce601 |
.\"
|
|
Packit |
5ce601 |
.\" This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
5ce601 |
.\" License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
5ce601 |
.\" file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
5ce601 |
.\"
|
|
Packit |
5ce601 |
.hy 0
|
|
Packit |
5ce601 |
.ad l
|
|
Packit |
5ce601 |
'\" t
|
|
Packit |
5ce601 |
.\" Title: lwres_inetntop
|
|
Packit |
5ce601 |
.\" Author:
|
|
Packit Service |
704ed8 |
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
Packit |
5ce601 |
.\" Date: 2007-06-18
|
|
Packit |
5ce601 |
.\" Manual: BIND9
|
|
Packit |
5ce601 |
.\" Source: ISC
|
|
Packit |
5ce601 |
.\" Language: English
|
|
Packit |
5ce601 |
.\"
|
|
Packit |
5ce601 |
.TH "LWRES_INETNTOP" "3" "2007\-06\-18" "ISC" "BIND9"
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.\" * Define some portability stuff
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
5ce601 |
.\" http://bugs.debian.org/507673
|
|
Packit |
5ce601 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
Packit |
5ce601 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit |
5ce601 |
.ie \n(.g .ds Aq \(aq
|
|
Packit |
5ce601 |
.el .ds Aq '
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.\" * set default formatting
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.\" disable hyphenation
|
|
Packit |
5ce601 |
.nh
|
|
Packit |
5ce601 |
.\" disable justification (adjust text to left margin only)
|
|
Packit |
5ce601 |
.ad l
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.\" * MAIN CONTENT STARTS HERE *
|
|
Packit |
5ce601 |
.\" -----------------------------------------------------------------
|
|
Packit |
5ce601 |
.SH "NAME"
|
|
Packit |
5ce601 |
lwres_net_ntop \- lightweight resolver IP address presentation
|
|
Packit |
5ce601 |
.SH "SYNOPSIS"
|
|
Packit |
5ce601 |
.sp
|
|
Packit |
5ce601 |
.ft B
|
|
Packit |
5ce601 |
.nf
|
|
Packit |
5ce601 |
#include <lwres/net\&.h>
|
|
Packit |
5ce601 |
.fi
|
|
Packit |
5ce601 |
.ft
|
|
Packit |
5ce601 |
.HP \w'const\ char\ *\ lwres_net_ntop('u
|
|
Packit |
5ce601 |
.BI "const char * lwres_net_ntop(int\ " "af" ", const\ void\ *" "src" ", char\ *" "dst" ", size_t\ " "size" ");"
|
|
Packit |
5ce601 |
.SH "DESCRIPTION"
|
|
Packit |
5ce601 |
.PP
|
|
Packit |
5ce601 |
\fBlwres_net_ntop()\fR
|
|
Packit |
5ce601 |
converts an IP address of protocol family
|
|
Packit |
5ce601 |
\fIaf\fR
|
|
Packit |
5ce601 |
\(em IPv4 or IPv6 \(em at location
|
|
Packit |
5ce601 |
\fIsrc\fR
|
|
Packit |
5ce601 |
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 RFC1884\&.
|
|
Packit |
5ce601 |
.PP
|
|
Packit |
5ce601 |
The generated string is copied to
|
|
Packit |
5ce601 |
\fIdst\fR
|
|
Packit |
5ce601 |
provided
|
|
Packit |
5ce601 |
\fIsize\fR
|
|
Packit |
5ce601 |
indicates it is long enough to store the ASCII representation of the address\&.
|
|
Packit |
5ce601 |
.SH "RETURN VALUES"
|
|
Packit |
5ce601 |
.PP
|
|
Packit |
5ce601 |
If successful, the function returns
|
|
Packit |
5ce601 |
\fIdst\fR: a pointer to a string containing the presentation format of the address\&.
|
|
Packit |
5ce601 |
\fBlwres_net_ntop()\fR
|
|
Packit |
5ce601 |
returns
|
|
Packit |
5ce601 |
\fBNULL\fR
|
|
Packit |
5ce601 |
and sets the global variable
|
|
Packit |
5ce601 |
\fBerrno\fR
|
|
Packit |
5ce601 |
to
|
|
Packit |
5ce601 |
\fBEAFNOSUPPORT\fR
|
|
Packit |
5ce601 |
if the protocol family given in
|
|
Packit |
5ce601 |
\fIaf\fR
|
|
Packit |
5ce601 |
is not supported\&.
|
|
Packit |
5ce601 |
.SH "SEE ALSO"
|
|
Packit |
5ce601 |
.PP
|
|
Packit |
5ce601 |
\fBRFC1884\fR(),
|
|
Packit |
5ce601 |
\fBinet_ntop\fR(3),
|
|
Packit |
5ce601 |
\fBerrno\fR(3)\&.
|
|
Packit |
5ce601 |
.SH "AUTHOR"
|
|
Packit |
5ce601 |
.PP
|
|
Packit |
5ce601 |
\fBInternet Systems Consortium, Inc\&.\fR
|
|
Packit |
5ce601 |
.SH "COPYRIGHT"
|
|
Packit |
5ce601 |
.br
|
|
Packit |
5ce601 |
Copyright \(co 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018-2020 Internet Systems Consortium, Inc. ("ISC")
|
|
Packit |
5ce601 |
.br
|