hwaddr.h (5ed136e814a98e845927fffa6aa7c497dbd8fa5e) | hwaddr.h (f19d047aec2b1d05cfb00498caff5141094d1124) |
---|---|
1/* 2 * hwaddr.h 3 * 4 * $FreeBSD$ 5 */ 6 7#ifndef HWADDR_H 8#define HWADDR_H --- 8 unchanged lines hidden (view full) --- 17struct hwinfo { 18 unsigned int hlen; 19 char *name; 20}; 21 22extern struct hwinfo hwinfolist[]; 23extern int hwinfocnt; 24 | 1/* 2 * hwaddr.h 3 * 4 * $FreeBSD$ 5 */ 6 7#ifndef HWADDR_H 8#define HWADDR_H --- 8 unchanged lines hidden (view full) --- 17struct hwinfo { 18 unsigned int hlen; 19 char *name; 20}; 21 22extern struct hwinfo hwinfolist[]; 23extern int hwinfocnt; 24 |
25#define P(args) args | 25extern void setarp(int, struct in_addr *, int, u_char *, int); 26extern char *haddrtoa(u_char *, int); 27extern void haddr_conv802(u_char *, u_char *, int); |
26 | 28 |
27extern void setarp P((int, struct in_addr *, int, u_char *, int)); 28extern char *haddrtoa P((u_char *, int)); 29extern void haddr_conv802 P((u_char *, u_char *, int)); 30 31#undef P 32 | |
33/* 34 * Return the length in bytes of a hardware address of the given type. 35 * Return the canonical name of the network of the given type. 36 */ 37#define haddrlength(type) ((hwinfolist[(int) (type)]).hlen) 38#define netname(type) ((hwinfolist[(int) (type)]).name) 39 40#endif /* HWADDR_H */ | 29/* 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. 32 */ 33#define haddrlength(type) ((hwinfolist[(int) (type)]).hlen) 34#define netname(type) ((hwinfolist[(int) (type)]).name) 35 36#endif /* HWADDR_H */ |