ether_aton(3) Library Functions Manual ether_aton(3) NOMBRE ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, ether_ntoa_r, ether_aton_r - rutinas de manipulacion de direcciones Ethernet BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include char *ether_ntoa(const struct ether_addr *addr); struct ether_addr *ether_aton(const char *asc); int ether_ntohost(char *hostname, const struct ether_addr *addr); int ether_hostton(const char *hostname, struct ether_addr *addr); int ether_line(const char *line, struct ether_addr *addr, char *hostname); /* GNU extensions */ char *ether_ntoa_r(const struct ether_addr *addr, char *buf); struct ether_addr *ether_aton_r(const char *asc, struct ether_addr *addr); DESCRIPCION ether_aton() convierte la direccion de host Ethernet de 48 bits asc en la notacion estandar de digitos-hexadecimales-y-puntos a datos binarios en el orden de bytes de la red y devuelve un puntero a estos en un buffer reservado estaticamente, que sera sobreescrito por llamadas posteriores. ether_aton() devuelve NULL si la direccion no es valida. La funcion ether_ntoa() convierte la direccion de host Ethernet addr dada en el orden de bytes de la red a una cadena en la notacion estandar de digitos-hexadecimales-y-puntos, omitiendo los ceros del principio. La cadena se devuelve en almacenamiento estatico, que sera sobreescrito por llamadas posteriores. La funcion ether_ntohost() asocia una direccion Ethernet con su correspondiente nombre de host en /etc/ethers y devuelve un valor distinto de cero si no se encontro ninguna correspondencia. La funcion ether_hostton() asocia un nombre de host con su correspondiente direccion Ethernet en /etc/ethers y devuelve un valor distinto de cero si no se encontro ninguna correspondencia. The ether_line() function parses a line in /etc/ethers format (ethernet address followed by whitespace followed by hostname; '#' introduces a comment) and returns an address and hostname pair, or nonzero if it cannot be parsed. The buffer pointed to by hostname must be sufficiently long, for example, have the same length as line. Las funciones ether_ntoa_r() y ether_aton_r() son versiones reentrantes e hilo-seguro de ether_ntoa() y ether_aton() respectivamente, y no usan buffers estaticos. La estructura ether_addr esta definida en como: struct ether_addr { uint8_t ether_addr_octet[6]; } ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |ether_aton(), ether_ntoa() | Seguridad del hilo | MT-Unsafe | +-----------------------------+--------------------+-------------------+ |ether_ntohost(), | Seguridad del hilo | Multi-hilo seguro | |ether_hostton(), | | | |ether_line(), | | | |ether_ntoa_r(), | | | |ether_aton_r() | | | +-----------------------------+--------------------+-------------------+ ESTANDARES None. HISTORIAL 4.3BSD, SunOS. ERRORES In glibc 2.2.5 and earlier, the implementation of ether_line() is broken. VEASE TAMBIEN ethers(5) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Miguel Perez Ibars Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 ether_aton(3)