10 #define MAXHADDRLEN 8 /* Max hw address length in bytes */
13 * This structure holds information about a specific network type. The
14 * length of the network hardware address is stored in "hlen".
15 * The string pointed to by "name" is the cononical name of the network.
22 extern struct hwinfo hwinfolist[];
31 extern void setarp P((int, struct in_addr *, int, u_char *, int));
32 extern char *haddrtoa P((u_char *, int));
33 extern void haddr_conv802 P((u_char *, u_char *, int));
38 * Return the length in bytes of a hardware address of the given type.
39 * Return the canonical name of the network of the given type.
41 #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)
42 #define netname(type) ((hwinfolist[(int) (type)]).name)