.\" -*- coding: UTF-8 -*- .\" Copyright 2000 Sam Varshavchik .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" References: RFC 2553 .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH INET_NTOP 3 "9 Junio 2020" Linux "Manual del Programador de Linux" .SH NOMBRE inet_ntop \- convert IPv4 and IPv6 addresses from binary to text form .SH SINOPSIS .nf \fB#include \fP .PP \fBconst char *inet_ntop(int \fP\fIaf\fP\fB, const void *\fP\fIsrc\fP\fB,\fP \fB char *\fP\fIdst\fP\fB, socklen_t \fP\fIsize\fP\fB);\fP .fi .SH DESCRIPCIÓN This function converts the network address structure \fIsrc\fP in the \fIaf\fP address family into a character string. The resulting string is copied to the buffer pointed to by \fIdst\fP, which must be a non\-null pointer. The caller specifies the number of bytes available in this buffer in the argument \fIsize\fP. .PP \fBinet_ntop\fP() extiende la función \fBinet_ntoa\fP(3) para soportar múltiples familias de direcciones, \fBinet_ntoa\fP(3) es considerada obsoleta en la actualidad en favor de \fBinet_ntop\fP(). Las siguientes familias de direcciones de red están actualmente soportadas: .TP \fBAF_INET\fP \fIsrc\fP points to a \fIstruct in_addr\fP (in network byte order) which is converted to an IPv4 network address in the dotted\-decimal format, "\fIddd.ddd.ddd.ddd\fP". The buffer \fIdst\fP must be at least \fBINET_ADDRSTRLEN\fP bytes long. .TP \fBAF_INET6\fP \fIsrc\fP apunta a una estructura \fIstruct in6_addr\fP (en orden de bytes de la red) que es convertida a una representación de esta dirección en el formato de dirección de red IPv6 más apropiado para dicha dirección. El buffer \fIdst\fP debe tener al menos \fBINET6_ADDRSTRLEN\fP bytes de longitud. .SH "VALOR DEVUELTO" On success, \fBinet_ntop\fP() returns a non\-null pointer to \fIdst\fP. NULL is returned if there was an error, with \fIerrno\fP set to indicate the error. .SH ERRORES .TP \fBEAFNOSUPPORT\fP \fIaf\fP was not a valid address family. .TP \fBENOSPC\fP The converted address string would exceed the size given by \fIsize\fP. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfaz Atributo Valor T{ \fBinet_ntop\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH "CONFORME A" .\" 2.1.3: size_t, 2.1.91: socklen_t POSIX.1\-2001, POSIX.1\-2008. Note that RFC\ 2553 defines a prototype where the last argument \fIsize\fP is of type \fIsize_t\fP. Many systems follow RFC\ 2553. Glibc 2.0 and 2.1 have \fIsize_t\fP, but 2.2 and later have \fIsocklen_t\fP. .SH ERRORES \fBAF_INET6\fP convierte direcciones IPv6 traducidas a IPv4 a un formato IPv6. .SH EJEMPLOS Vea \fBinet_pton\fP(3). .SH "VÉASE TAMBIÉN" \fBgetnameinfo\fP(3), \fBinet\fP(3), \fBinet_pton\fP(3) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org>. .ME .