1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*++
- Copyright (c) 2013 Minoca Corp. All Rights Reserved
- Module Name:
- ethernet.h
- Abstract:
- This header contains definitions for Ethernet links.
- Author:
- Evan Green 5-Apr-2013
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // Define the size of an ethernet header and footer.
- //
- #define ETHERNET_HEADER_SIZE ((2 * ETHERNET_ADDRESS_SIZE) + sizeof(USHORT))
- #define ETHERNET_FOOTER_SIZE sizeof(ULONG)
- //
- // Define the minimum and maximum valid ethernet payload size. This does not
- // include the header or footer.
- //
- #define ETHERNET_MINIMUM_PAYLOAD_SIZE 46
- #define ETHERNET_MAXIMUM_PAYLOAD_SIZE 1500
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // -------------------------------------------------------- Function Prototypes
- //
|