#include <ethsock.h>
Public Member Functions | |
void | Parse (WORD &type, BYTE *&payload, PINDEX &length) |
Public Attributes | |
Address | dst_addr |
Address | src_addr |
union { | |
struct { | |
WORD type | |
BYTE payload [1500] | |
} ether | |
struct { | |
WORD length | |
BYTE dsap | |
BYTE ssap | |
BYTE ctrl | |
BYTE oui [3] | |
WORD type | |
BYTE payload [1492] | |
} snap | |
}; |
void PEthSocket::Frame::Parse | ( | WORD & | type, | |
BYTE *& | payload, | |||
PINDEX & | length | |||
) |
Parse the Ethernet Frame to extract the frame type and the address of the payload. The length should be the original bytes read in the frame and may be altered to information contained in the frame, if available.
union { ... } |
struct { ... } PEthSocket::Frame::ether |
BYTE PEthSocket::Frame::oui[3] |
BYTE PEthSocket::Frame::payload[1492] |
struct { ... } PEthSocket::Frame::snap |