diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-08-06 21:41:16 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-08-06 21:41:16 +0200 |
commit | cb2acdaf3d1ee158f41a7e2617ebaaadfeef53da (patch) | |
tree | 65d1c197972f035be20f3b553c53fddeb5d82417 /src/net/ethernet.h | |
parent | c6e06f58e4d0b8bc40c8482728357cbd3be5d6b3 (diff) | |
download | abaos-cb2acdaf3d1ee158f41a7e2617ebaaadfeef53da.tar.gz abaos-cb2acdaf3d1ee158f41a7e2617ebaaadfeef53da.tar.bz2 |
some cleanup in ethernet constants
sending back an ARP packet
rtl8139: started to implement write (work in progress)
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 |