diff options
Diffstat (limited to 'src/net/ethernet.h')
-rw-r--r-- | src/net/ethernet.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/ethernet.h b/src/net/ethernet.h index 9ebf58e..3af053d 100644 --- a/src/net/ethernet.h +++ b/src/net/ethernet.h @@ -4,8 +4,15 @@ #include "stdint.h" #include "stddef.h" +// length of a string representation of a MAC address #define NETWORK_ETHERNET_MAC_ADDR_STRING 6 * 3 + 1 +// minimal size of an ethernet packet +#define ETHERNET_MIN_FRAME_SIZE_IEEE_802_3 64 + +// maximal size of an ethernet packet +#define ETHERNET_MAX_FRAME_SIZE_IEEE_802_3 1536 + // hardware_address_len #define NETWORK_HARDWARE_ETHERNET_ADDRESS_LENGTH 6 |