ethernet.h 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*++
  2. Copyright (c) 2013 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. ethernet.h
  5. Abstract:
  6. This header contains definitions for Ethernet links.
  7. Author:
  8. Evan Green 5-Apr-2013
  9. --*/
  10. //
  11. // ------------------------------------------------------------------- Includes
  12. //
  13. //
  14. // ---------------------------------------------------------------- Definitions
  15. //
  16. //
  17. // Define the size of an ethernet header and footer.
  18. //
  19. #define ETHERNET_HEADER_SIZE ((2 * ETHERNET_ADDRESS_SIZE) + sizeof(USHORT))
  20. #define ETHERNET_FOOTER_SIZE sizeof(ULONG)
  21. //
  22. // Define the minimum and maximum valid ethernet payload size. This does not
  23. // include the header or footer.
  24. //
  25. #define ETHERNET_MINIMUM_PAYLOAD_SIZE 46
  26. #define ETHERNET_MAXIMUM_PAYLOAD_SIZE 1500
  27. //
  28. // ------------------------------------------------------ Data Type Definitions
  29. //
  30. //
  31. // -------------------------------------------------------------------- Globals
  32. //
  33. //
  34. // -------------------------------------------------------- Function Prototypes
  35. //