|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <pshpack1.h>#include <poppack.h>

Go to the source code of this file.
Classes | |
| struct | _ETH_HEADER |
| struct | _tagIPv4Header |
| struct | _tagTCPHeader |
| struct | _tagUDPHeader |
Macros | |
| #define | ETH_IS_LOCALLY_ADMINISTERED(Address) (BOOLEAN)(((PUCHAR)(Address))[0] & ((UCHAR)0x02)) |
| #define | ETH_IS_EMPTY(Address) ((((PUCHAR)(Address))[0] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[1] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[2] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[3] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[4] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[5] == ((UCHAR)0x00))) |
| #define | ETH_HAS_PRIO_HEADER(Address) (((PUCHAR)(Address))[12] == ((UCHAR)0x81) && ((PUCHAR)(Address))[13] == ((UCHAR)0x00)) |
| #define | ETH_HEADER_SIZE (sizeof(ETH_HEADER)) |
| #define | ETH_MIN_PACKET_SIZE 60 |
| #define | ETH_PRIORITY_HEADER_OFFSET 12 |
| #define | ETH_PRIORITY_HEADER_SIZE 4 |
| #define | TCP_CHECKSUM_OFFSET 16 |
| #define | UDP_CHECKSUM_OFFSET 6 |
| #define | MAX_IPV4_HEADER_SIZE 60 |
| #define | MAX_TCP_HEADER_SIZE 60 |
Typedefs | |
| typedef struct _ETH_HEADER | ETH_HEADER |
| typedef struct _ETH_HEADER * | PETH_HEADER |
| typedef enum _tag_eInspectedPacketType | eInspectedPacketType |
| typedef struct _tagIPv4Header | IPv4Header |
| typedef struct _tagTCPHeader | TCPHeader |
| typedef struct _tagUDPHeader | UDPHeader |
Enumerations | |
| enum | _tag_eInspectedPacketType { iptUnicast , iptBroadcast , iptMulticast , iptInvalid } |
Functions | |
| static void FORCEINLINE | SetPriorityData (UCHAR *pDest, ULONG priority, ULONG VlanID) |
| static __inline USHORT | swap_short (USHORT us) |
| #define ETH_HAS_PRIO_HEADER | ( | Address | ) | (((PUCHAR)(Address))[12] == ((UCHAR)0x81) && ((PUCHAR)(Address))[13] == ((UCHAR)0x00)) |
Definition at line 41 of file ethernetutils.h.
| #define ETH_HEADER_SIZE (sizeof(ETH_HEADER)) |
Definition at line 53 of file ethernetutils.h.
| #define ETH_IS_EMPTY | ( | Address | ) | ((((PUCHAR)(Address))[0] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[1] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[2] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[3] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[4] == ((UCHAR)0x00)) && (((PUCHAR)(Address))[5] == ((UCHAR)0x00))) |
Definition at line 38 of file ethernetutils.h.
Definition at line 35 of file ethernetutils.h.
| #define ETH_MIN_PACKET_SIZE 60 |
Definition at line 54 of file ethernetutils.h.
| #define ETH_PRIORITY_HEADER_OFFSET 12 |
Definition at line 55 of file ethernetutils.h.
| #define ETH_PRIORITY_HEADER_SIZE 4 |
Definition at line 56 of file ethernetutils.h.
| #define MAX_IPV4_HEADER_SIZE 60 |
Definition at line 114 of file ethernetutils.h.
| #define MAX_TCP_HEADER_SIZE 60 |
Definition at line 115 of file ethernetutils.h.
| #define TCP_CHECKSUM_OFFSET 16 |
Definition at line 112 of file ethernetutils.h.
| #define UDP_CHECKSUM_OFFSET 6 |
Definition at line 113 of file ethernetutils.h.
| typedef struct _ETH_HEADER ETH_HEADER |
| typedef struct _tagIPv4Header IPv4Header |
| typedef struct _ETH_HEADER * PETH_HEADER |
| typedef struct _tagTCPHeader TCPHeader |
| typedef struct _tagUDPHeader UDPHeader |
| Enumerator | |
|---|---|
| iptUnicast | |
| iptBroadcast | |
| iptMulticast | |
| iptInvalid | |
Definition at line 67 of file ethernetutils.h.
|
static |
Definition at line 59 of file ethernetutils.h.
Referenced by PrepareSendEntry().
Definition at line 117 of file ethernetutils.h.
Referenced by CalculateIpv4PseudoHeaderChecksum(), CalculateIpv6PseudoHeaderChecksum(), GetXxpHeaderAndPayloadLen(), ProcessUDPHeader(), and QualifyIpPacket().