.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2002 Ian Redfern (redferni@logica.com) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" FreeBSD 4.4 man pages .\" .\" Minor additions, aeb, 2013-06-21 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ether_aton 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, ether_ntoa_r, ether_aton_r \- rutinas de manipulación de direcciones Ethernet .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBchar *ether_ntoa(const struct ether_addr *\fP\fIaddr\fP\fB);\fP \fBstruct ether_addr *ether_aton(const char *\fP\fIasc\fP\fB);\fP .PP \fBint ether_ntohost(char *\fP\fIhostname\fP\fB, const struct ether_addr *\fP\fIaddr\fP\fB);\fP \fBint ether_hostton(const char *\fP\fIhostname\fP\fB, struct ether_addr *\fP\fIaddr\fP\fB);\fP .PP \fBint ether_line(const char *\fP\fIline\fP\fB, struct ether_addr *\fP\fIaddr\fP\fB,\fP \fB char *\fP\fIhostname\fP\fB);\fP .PP /* GNU extensions */ \fBchar *ether_ntoa_r(const struct ether_addr *\fP\fIaddr\fP\fB, char *\fP\fIbuf\fP\fB);\fP .PP \fBstruct ether_addr *ether_aton_r(const char *\fP\fIasc\fP\fB,\fP \fB struct ether_addr *\fP\fIaddr\fP\fB);\fP .fi .SH DESCRIPCIÓN \fBether_aton\fP() convierte la dirección de host Ethernet de 48 bits \fIasc\fP en la notación estándar de dígitos\-hexadecimales\-y\-puntos a datos binarios en el orden de bytes de la red y devuelve un puntero a éstos en un buffer reservado estáticamente, que será sobreescrito por llamadas posteriores. \fBether_aton\fP() devuelve NULL si la dirección no es válida. .PP La función \fBether_ntoa\fP() convierte la dirección de host Ethernet \fIaddr\fP dada en el orden de bytes de la red a una cadena en la notación estándar de dígitos\-hexadecimales\-y\-puntos, omitiendo los ceros del principio. La cadena se devuelve en almacenamiento estático, que será sobreescrito por llamadas posteriores. .PP La función \fBether_ntohost\fP() asocia una dirección Ethernet con su correspondiente nombre de host en \fI/etc/ethers\fP y devuelve un valor distinto de cero si no se encontró ninguna correspondencia. .PP La función \fBether_hostton\fP() asocia un nombre de host con su correspondiente dirección Ethernet en \fI/etc/ethers\fP y devuelve un valor distinto de cero si no se encontró ninguna correspondencia. .PP The \fBether_line\fP() function parses a line in \fI/etc/ethers\fP format (ethernet address followed by whitespace followed by hostname; \[aq]#\[aq] introduces a comment) and returns an address and hostname pair, or nonzero if it cannot be parsed. The buffer pointed to by \fIhostname\fP must be sufficiently long, for example, have the same length as \fIline\fP. .PP Las funciones \fBether_ntoa_r\fP() y \fBether_aton_r\fP() son versiones reentrantes e hilo\-seguro de \fBether_ntoa\fP() y \fBether_aton\fP() respectivamente, y no usan buffers estáticos. .PP La estructura \fIether_addr\fP está definida en \fI\fP como: .PP .in +4n .EX struct ether_addr { uint8_t ether_addr_octet[6]; } .EE .in .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBether_aton\fP(), \fBether_ntoa\fP() T} Seguridad del hilo MT\-Unsafe T{ .na .nh \fBether_ntohost\fP(), \fBether_hostton\fP(), \fBether_line\fP(), \fBether_ntoa_r\fP(), \fBether_aton_r\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES None. .SH HISTORIAL 4.3BSD, SunOS. .SH ERRORES .\" The fix was presumably commit c0a0f9a32c8baa6ab93d00eb42d92c02e9e146d7 .\" which was in glibc 2.3 In glibc 2.2.5 and earlier, the implementation of \fBether_line\fP() is broken. .SH "VÉASE TAMBIÉN" \fBethers\fP(5) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP 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. .PP 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 .