Current Path : /compat/linux/proc/68247/root/usr/src/libexec/bootpd/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/src/libexec/bootpd/hwaddr.h |
/* * hwaddr.h * * $FreeBSD: release/9.1.0/libexec/bootpd/hwaddr.h 97417 2002-05-28 18:36:43Z alfred $ */ #ifndef HWADDR_H #define HWADDR_H #define MAXHADDRLEN 8 /* Max hw address length in bytes */ /* * This structure holds information about a specific network type. The * length of the network hardware address is stored in "hlen". * The string pointed to by "name" is the cononical name of the network. */ struct hwinfo { unsigned int hlen; char *name; }; extern struct hwinfo hwinfolist[]; extern int hwinfocnt; extern void setarp(int, struct in_addr *, int, u_char *, int); extern char *haddrtoa(u_char *, int); extern void haddr_conv802(u_char *, u_char *, int); /* * Return the length in bytes of a hardware address of the given type. * Return the canonical name of the network of the given type. */ #define haddrlength(type) ((hwinfolist[(int) (type)]).hlen) #define netname(type) ((hwinfolist[(int) (type)]).name) #endif /* HWADDR_H */