/*
* The number of bytes in an ethernet (MAC) address.
*/
/*
* The number of bytes in an ethernet (MAC) address.
*/
/*
* The number of bytes in the type field.
*/
/*
* The number of bytes in the type field.
*/
/*
* The number of bytes in the trailing CRC field.
*/
/*
* The number of bytes in the trailing CRC field.
*/
/*
* The length of the combined header.
*/
/*
* The length of the combined header.
*/
#define ETHER_HDR_LEN (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN)
#define ETHER_HDR_LEN (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN)
/*
* The minimum packet length.
*/
/*
* The minimum packet length.
*/
/*
* The minimum packet user data length.
*/
/*
* The minimum packet user data length.
*/
#define ETHER_MIN_DATA 46
#define ETHER_MIN_DATA 46
/*
* The maximum packet length.
*/
/*
* The maximum packet length.
*/
#define ETHER_MAX_LEN 1518
#define ETHER_MAX_LEN 1518
/*
* The maximum packet user data length.
/*
* The maximum packet user data length.
#define ETHER_IS_VALID_LEN(foo) \
((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN)
#define ETHER_IS_VALID_LEN(foo) \
((foo) >= ETHER_MIN_LEN && (foo) <= ETHER_MAX_LEN)
+#ifndef __NET_ETHERNET_H
#ifndef __INCif_etherh /* Quick and ugly hack for VxWorks */
/*
* Structure of a 10Mb/s Ethernet header.
#ifndef __INCif_etherh /* Quick and ugly hack for VxWorks */
/*
* Structure of a 10Mb/s Ethernet header.
uint8 octet[ETHER_ADDR_LEN];
} PACKED ;
#endif
uint8 octet[ETHER_ADDR_LEN];
} PACKED ;
#endif
/*
* Takes a pointer, returns true if a 48-bit multicast address
/*
* Takes a pointer, returns true if a 48-bit multicast address