ethernet.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*++
  2. Copyright (c) 2013 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. ethernet.h
  9. Abstract:
  10. This header contains definitions for Ethernet links.
  11. Author:
  12. Evan Green 5-Apr-2013
  13. --*/
  14. //
  15. // ------------------------------------------------------------------- Includes
  16. //
  17. //
  18. // ---------------------------------------------------------------- Definitions
  19. //
  20. //
  21. // Define the size of an ethernet header and footer.
  22. //
  23. #define ETHERNET_HEADER_SIZE ((2 * ETHERNET_ADDRESS_SIZE) + sizeof(USHORT))
  24. #define ETHERNET_FOOTER_SIZE sizeof(ULONG)
  25. //
  26. // Define the minimum and maximum valid ethernet payload size. This does not
  27. // include the header or footer.
  28. //
  29. #define ETHERNET_MINIMUM_PAYLOAD_SIZE 46
  30. #define ETHERNET_MAXIMUM_PAYLOAD_SIZE 1500
  31. //
  32. // ------------------------------------------------------ Data Type Definitions
  33. //
  34. //
  35. // -------------------------------------------------------------------- Globals
  36. //
  37. //
  38. // -------------------------------------------------------- Function Prototypes
  39. //