Ethers – Comtrol eCos User Manual
Page 511
Chapter 38. TCP/IP Library Reference
endian so either the “be” or “le” variants are implemented as null
macros.
The routines mentioned above which have either {src-order} or {dst-order}
set to ‘n’ are most often used in conjunction with Internet addresses and
ports as returned by gethostbyname(3) and getservent(3).
SEE ALSO
gethostbyname(3), getservent(3)
HISTORY
The byteorder functions appeared in 4.2BSD.
BUGS
On the vax, alpha, i386, and so far mips, bytes are handled backwards
from most everyone else in the world.
This is not expected to be fixed
in the near future.
BSD
June 4, 1993
BSD
ethers
ETHERS(3)
System Library Functions Manual
ETHERS(3)
NAME
ether_aton, ether_ntoa, ether_addr, ether_ntohost, ether_hostton,
ether_line - get ethers entry
SYNOPSIS
#include
<
netinet/if_ether.h>
char *
ether_ntoa(struct ether_addr *e);
struct ether_addr *
ether_aton(char *s);
int
ether_ntohost(char *hostname, struct ether_addr *e);
int
ether_hostton(char *hostname, struct ether_addr *e);
int
ether_line(char *l, struct ether_addr *e, char *hostname);
DESCRIPTION
Ethernet addresses are represented by the following structure:
struct ether_addr {
u_int8_t
ether_addr_octet[6];
};
407