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 - ethernet LIBRARY Standard C library (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- Ethernet asc --- , . ether_aton() NULL, . ether_ntoa() Ethernet addr, , ---. , . ether_ntohost() Ethernet /etc/ethers , . ether_hostton() Ethernet /etc/ethers , . 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. 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(), ether_ntoa() | | MT-Unsafe | +----------------------------+----------------------------------------------------------+--------------------------+ |ether_ntohost(), | | MT-Safe | |ether_hostton(), | | | |ether_line(), | | | |ether_ntoa_r(), | | | |ether_aton_r() | | | +----------------------------+----------------------------------------------------------+--------------------------+ None. 4.3BSD, SunOS. glibc 2.2.5 ether_line() . . ethers(5) Azamat Hackimov , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . ether_aton(3)