ethernet.h (55205) | ethernet.h (62143) |
---|---|
1/* 2 * Fundamental constants relating to ethernet. 3 * | 1/* 2 * Fundamental constants relating to ethernet. 3 * |
4 * $FreeBSD: head/sys/net/ethernet.h 55205 1999-12-29 04:46:21Z peter $ | 4 * $FreeBSD: head/sys/net/ethernet.h 62143 2000-06-26 23:34:54Z archie $ |
5 * 6 */ 7 8#ifndef _NET_ETHERNET_H_ 9#define _NET_ETHERNET_H_ 10 11/* 12 * The number of bytes in an ethernet (MAC) address. --- 62 unchanged lines hidden (view full) --- 75 * by an ETHER type (as given above) and then the (variable-length) header. 76 */ 77#define ETHERTYPE_TRAIL 0x1000 /* Trailer packet */ 78#define ETHERTYPE_NTRAILER 16 79 80#define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 81#define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 82 | 5 * 6 */ 7 8#ifndef _NET_ETHERNET_H_ 9#define _NET_ETHERNET_H_ 10 11/* 12 * The number of bytes in an ethernet (MAC) address. --- 62 unchanged lines hidden (view full) --- 75 * by an ETHER type (as given above) and then the (variable-length) header. 76 */ 77#define ETHERTYPE_TRAIL 0x1000 /* Trailer packet */ 78#define ETHERTYPE_NTRAILER 16 79 80#define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 81#define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 82 |
83#ifndef _KERNEL | 83#ifdef _KERNEL 84 85extern void (*ng_ether_input_p)(struct ifnet *ifp, 86 struct mbuf **mp, struct ether_header *eh); 87extern void (*ng_ether_input_orphan_p)(struct ifnet *ifp, 88 struct mbuf *m, struct ether_header *eh); 89extern int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp); 90extern void (*ng_ether_attach_p)(struct ifnet *ifp); 91extern void (*ng_ether_detach_p)(struct ifnet *ifp); 92 93#else /* _KERNEL */ 94 |
84#include <sys/cdefs.h> 85 86/* 87 * Ethernet address conversion/parsing routines. 88 */ 89__BEGIN_DECLS 90struct ether_addr *ether_aton __P((char *)); 91int ether_hostton __P((char *, struct ether_addr *)); 92int ether_line __P((char *, struct ether_addr *, char *)); 93char *ether_ntoa __P((struct ether_addr *)); 94int ether_ntohost __P((char *, struct ether_addr *)); 95__END_DECLS | 95#include <sys/cdefs.h> 96 97/* 98 * Ethernet address conversion/parsing routines. 99 */ 100__BEGIN_DECLS 101struct ether_addr *ether_aton __P((char *)); 102int ether_hostton __P((char *, struct ether_addr *)); 103int ether_line __P((char *, struct ether_addr *, char *)); 104char *ether_ntoa __P((struct ether_addr *)); 105int ether_ntohost __P((char *, struct ether_addr *)); 106__END_DECLS |
96#endif | |
97 | 107 |
108#endif /* !_KERNEL */ 109 |
|
98#endif /* !_NET_ETHERNET_H_ */ | 110#endif /* !_NET_ETHERNET_H_ */ |