ReactOS 0.4.16-dev-91-g764881a
eth.h File Reference
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for eth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ETH_HEADER
 
struct  IPv4_HEADER
 
struct  TCPv4_HEADER
 

Macros

#define ETH_IS_LOCALLY_ADMINISTERED(Address)    (BOOLEAN)(((PUCHAR)(Address))[0] & ((UCHAR)0x02))
 
#define ETH_IS_EMPTY(Address)
 
#define IP_HEADER_LENGTH(Header)    (((Header)->VersionLength & 0x0F) << 2)
 
#define TCP_HEADER_LENGTH(Header)    ((Header->DataOffset & 0xF0) >> 2)
 

Typedefs

typedef struct _ETH_HEADER ETH_HEADER
 
typedef struct _ETH_HEADERPETH_HEADER
 
typedef struct IPv4_HEADER IPv4_HEADER
 
typedef struct IPv4_HEADERPIPv4_HEADER
 
typedef struct TCPv4_HEADER TCPv4_HEADER
 
typedef struct TCPv4_HEADERPTCPv4_HEADER
 

Macro Definition Documentation

◆ ETH_IS_EMPTY

#define ETH_IS_EMPTY (   Address)
Value:
(BOOLEAN)((((PUCHAR)(Address))[0] | ((PUCHAR)(Address))[1] | ((PUCHAR)(Address))[2] | \
((PUCHAR)(Address))[3] | ((PUCHAR)(Address))[5] | ((PUCHAR)(Address))[5]) == 0)
#define BOOLEAN
Definition: pedump.c:73
static WCHAR Address[46]
Definition: ping.c:68
unsigned char * PUCHAR
Definition: typedefs.h:53

Definition at line 22 of file eth.h.

◆ ETH_IS_LOCALLY_ADMINISTERED

#define ETH_IS_LOCALLY_ADMINISTERED (   Address)     (BOOLEAN)(((PUCHAR)(Address))[0] & ((UCHAR)0x02))

Definition at line 19 of file eth.h.

◆ IP_HEADER_LENGTH

#define IP_HEADER_LENGTH (   Header)     (((Header)->VersionLength & 0x0F) << 2)

Definition at line 53 of file eth.h.

◆ TCP_HEADER_LENGTH

#define TCP_HEADER_LENGTH (   Header)     ((Header->DataOffset & 0xF0) >> 2)

Definition at line 56 of file eth.h.

Typedef Documentation

◆ ETH_HEADER

◆ IPv4_HEADER

◆ PETH_HEADER

◆ PIPv4_HEADER

◆ PTCPv4_HEADER

◆ TCPv4_HEADER