Provided by: manpages-es-dev_4.18.1-1_all bug

NOMBRE

       ether_aton,    ether_ntoa,   ether_ntohost,   ether_hostton,   ether_line,   ether_ntoa_r,
       ether_aton_r - rutinas de manipulación de direcciones Ethernet

BIBLIOTECA

       Biblioteca Estándar C (libc, -lc)

SINOPSIS

       #include <netinet/ether.h>

       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);

DESCRIPCIÓN

       ether_aton() convierte la dirección de host  Ethernet  de  48  bits  asc  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. ether_aton() devuelve NULL si la dirección no es válida.

       La  función  ether_ntoa() convierte la dirección de host Ethernet addr 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.

       La función ether_ntohost() asocia una dirección Ethernet con su correspondiente nombre  de
       host  en  /etc/ethers  y  devuelve  un  valor  distinto  de cero si no se encontró ninguna
       correspondencia.

       La función ether_hostton() asocia un nombre  de  host  con  su  correspondiente  dirección
       Ethernet  en  /etc/ethers  y  devuelve un valor distinto de cero si no se encontró 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 estáticos.

       La estructura ether_addr está definida en <net/ethernet.h> como:

           struct ether_addr {
               uint8_t ether_addr_octet[6];
           }

ATRIBUTOS

       Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

       ┌────────────────────────────────────────────────┬────────────────────┬───────────────────┐
       │InterfazAtributoValor             │
       ├────────────────────────────────────────────────┼────────────────────┼───────────────────┤
       │ether_aton(), ether_ntoa()                      │ Seguridad del hilo │ MT-Unsafe         │
       ├────────────────────────────────────────────────┼────────────────────┼───────────────────┤
       │ether_ntohost(), ether_hostton(), ether_line(), │ Seguridad del hilo │ Multi-hilo seguro │
       │ether_ntoa_r(), ether_aton_r()                  │                    │                   │
       └────────────────────────────────────────────────┴────────────────────┴───────────────────┘

ESTÁNDARES

       4.3BSD, SunOS.

ERRORES

       In glibc 2.2.5 and earlier, the implementation of ether_line()  is broken.

VÉASE TAMBIÉN

       ethers(5)

TRADUCCIÓN

       La  traducción  al  español  de  esta  página del manual fue creada por Miguel Pérez Ibars
       <mpi79470@alu.um.es>

       Esta traducción es documentación libre; lea  la  GNU  General  Public  License  Version  3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩  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 ⟨debian-l10n-spanish@lists.debian.org⟩.