SocketMsg Struct Reference

Message and ancillary data. More...

#include <socket.h>

Data Fields

void * data
 Pointer to the payload. More...
 
size_t size
 Size of the payload, in bytes. More...
 
size_t length
 Actual length of the payload, in bytes. More...
 
uint8_t ttl
 Time-to-live value. More...
 
NetInterfaceinterface
 Underlying network interface. More...
 
IpAddr srcIpAddr
 Source IP address. More...
 
uint16_t srcPort
 Source port. More...
 
IpAddr destIpAddr
 Destination IP address. More...
 
uint16_t destPort
 Destination port. More...
 
MacAddr srcMacAddr
 Source MAC address. More...
 
MacAddr destMacAddr
 Destination MAC address. More...
 
uint16_t ethType
 Ethernet type field. More...
 
uint8_t switchPort
 Switch port identifier. More...
 
int32_t timestampId
 Unique identifier for hardware time stamping. More...
 
NetTimestamp timestamp
 Captured time stamp. More...
 

Detailed Description

Message and ancillary data.

Definition at line 199 of file socket.h.

Field Documentation

◆ data

void* data

Pointer to the payload.

Definition at line 201 of file socket.h.

◆ destIpAddr

IpAddr destIpAddr

Destination IP address.

Definition at line 208 of file socket.h.

◆ destMacAddr

MacAddr destMacAddr

Destination MAC address.

Definition at line 212 of file socket.h.

◆ destPort

uint16_t destPort

Destination port.

Definition at line 209 of file socket.h.

◆ ethType

uint16_t ethType

Ethernet type field.

Definition at line 213 of file socket.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 205 of file socket.h.

◆ length

size_t length

Actual length of the payload, in bytes.

Definition at line 203 of file socket.h.

◆ size

size_t size

Size of the payload, in bytes.

Definition at line 202 of file socket.h.

◆ srcIpAddr

IpAddr srcIpAddr

Source IP address.

Definition at line 206 of file socket.h.

◆ srcMacAddr

MacAddr srcMacAddr

Source MAC address.

Definition at line 211 of file socket.h.

◆ srcPort

uint16_t srcPort

Source port.

Definition at line 207 of file socket.h.

◆ switchPort

uint8_t switchPort

Switch port identifier.

Definition at line 216 of file socket.h.

◆ timestamp

NetTimestamp timestamp

Captured time stamp.

Definition at line 220 of file socket.h.

◆ timestampId

int32_t timestampId

Unique identifier for hardware time stamping.

Definition at line 219 of file socket.h.

◆ ttl

uint8_t ttl

Time-to-live value.

Definition at line 204 of file socket.h.


The documentation for this struct was generated from the following file: