An ethernet MAC frame.
More...
#include <ethsock.h>
§ Parse()
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.
§ @2
§ ctrl
BYTE PEthSocket::Frame::ctrl |
§ dsap
BYTE PEthSocket::Frame::dsap |
§ dst_addr
Address PEthSocket::Frame::dst_addr |
§ ether
struct { ... } PEthSocket::Frame::ether |
§ length
WORD PEthSocket::Frame::length |
§ oui
BYTE PEthSocket::Frame::oui[3] |
§ payload
BYTE PEthSocket::Frame::payload[1492] |
§ snap
struct { ... } PEthSocket::Frame::snap |
§ src_addr
Address PEthSocket::Frame::src_addr |
§ ssap
BYTE PEthSocket::Frame::ssap |
§ type
WORD PEthSocket::Frame::type |
The documentation for this struct was generated from the following file: