Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ethernet.h
/* | /* | ||||
* Fundamental constants relating to ethernet. | * Fundamental constants relating to ethernet. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
* | * | ||||
*/ | */ | ||||
#ifndef _NET_ETHERNET_H_ | #ifndef _NET_ETHERNET_H_ | ||||
#define _NET_ETHERNET_H_ | #define _NET_ETHERNET_H_ | ||||
#include <sys/types.h> | |||||
/* | /* | ||||
* Some basic Ethernet constants. | * Some basic Ethernet constants. | ||||
*/ | */ | ||||
#define ETHER_ADDR_LEN 6 /* length of an Ethernet address */ | #define ETHER_ADDR_LEN 6 /* length of an Ethernet address */ | ||||
#define ETHER_TYPE_LEN 2 /* length of the Ethernet type field */ | #define ETHER_TYPE_LEN 2 /* length of the Ethernet type field */ | ||||
#define ETHER_CRC_LEN 4 /* length of the Ethernet CRC */ | #define ETHER_CRC_LEN 4 /* length of the Ethernet CRC */ | ||||
#define ETHER_HDR_LEN (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN) | #define ETHER_HDR_LEN (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN) | ||||
#define ETHER_MIN_LEN 64 /* minimum frame len, including CRC */ | #define ETHER_MIN_LEN 64 /* minimum frame len, including CRC */ | ||||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |