ether_aton(3) Library Functions Manual ether_aton(3) ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, ether_ntoa_r, ether_aton_r - () (libc -lc) #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); ether_aton() 48 asc . ether_aton() NULL . ether_ntoa() addr . . ether_ntohost() /etc/ethers . ether_hostton() /etc/ethers . ether_line() /etc/ethers ( '#' ) . hostname -- line--. ether_ntoa_r() ether_aton_r() ether_ntoa() ether_aton() . ether_addr : struct ether_addr { uint8_t ether_addr_octet[6]; } attributes(7). +----------------------+------------------------------------+--------------------------------------------------------------------+ | | | | +----------------------+------------------------------------+--------------------------------------------------------------------+ |ether_aton() | | (MT-Unsafe) | |ether_ntoa() | | | +----------------------+------------------------------------+--------------------------------------------------------------------+ |ether_ntohost() | | MT-Safe | |ether_hostton() | | | |ether_line() | | | |ether_ntoa_r() | | | |ether_aton_r() | | | +----------------------+------------------------------------+--------------------------------------------------------------------+ . 4.3BSD, SunOS. glibc 2.2.5 ether_line() . ethers(5) 3 . . : . 6.18 8 2026 ether_aton(3)