/*1* hwaddr.h2*/34#ifndef HWADDR_H5#define HWADDR_H67#define MAXHADDRLEN 8 /* Max hw address length in bytes */89/*10* This structure holds information about a specific network type. The11* length of the network hardware address is stored in "hlen".12* The string pointed to by "name" is the cononical name of the network.13*/14struct hwinfo {15unsigned int hlen;16char *name;17};1819extern struct hwinfo hwinfolist[];20extern int hwinfocnt;2122extern void setarp(int, struct in_addr *, int, u_char *, int);23extern char *haddrtoa(u_char *, int);24extern void haddr_conv802(u_char *, u_char *, int);2526/*27* Return the length in bytes of a hardware address of the given type.28* Return the canonical name of the network of the given type.29*/30#define haddrlength(type) ((hwinfolist[(int) (type)]).hlen)31#define netname(type) ((hwinfolist[(int) (type)]).name)3233#endif /* HWADDR_H */343536