mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
17da660ad5
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
Similar commit in main:
(cherry picked from commit b3e7694832
)
34 lines
884 B
C
34 lines
884 B
C
/*
|
|
* hwaddr.h
|
|
*/
|
|
|
|
#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 */
|