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[];
25 extern void setarp(int, struct in_addr *, int, u_char *, int);
26 extern char *haddrtoa(u_char *, int);
27 extern void haddr_conv802(u_char *, u_char *, int);
30 * Return the length in bytes of a hardware address of the given type.
31 * Return the canonical name of the network of the given type.
33 #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)
34 #define netname(type) ((hwinfolist[(int) (type)]).name)