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...
 
uint8_t tos
 Type-of-service value. More...
 
bool_t dontFrag
 Do not fragment the IP packet. 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 229 of file socket.h.

Field Documentation

◆ data

void* data

Pointer to the payload.

Definition at line 231 of file socket.h.

◆ destIpAddr

IpAddr destIpAddr

Destination IP address.

Definition at line 240 of file socket.h.

◆ destMacAddr

MacAddr destMacAddr

Destination MAC address.

Definition at line 244 of file socket.h.

◆ destPort

uint16_t destPort

Destination port.

Definition at line 241 of file socket.h.

◆ dontFrag

bool_t dontFrag

Do not fragment the IP packet.

Definition at line 236 of file socket.h.

◆ ethType

uint16_t ethType

Ethernet type field.

Definition at line 245 of file socket.h.

◆ interface

NetInterface* interface

Underlying network interface.

Definition at line 237 of file socket.h.

◆ length

size_t length

Actual length of the payload, in bytes.

Definition at line 233 of file socket.h.

◆ size

size_t size

Size of the payload, in bytes.

Definition at line 232 of file socket.h.

◆ srcIpAddr

IpAddr srcIpAddr

Source IP address.

Definition at line 238 of file socket.h.

◆ srcMacAddr

MacAddr srcMacAddr

Source MAC address.

Definition at line 243 of file socket.h.

◆ srcPort

uint16_t srcPort

Source port.

Definition at line 239 of file socket.h.

◆ switchPort

uint8_t switchPort

Switch port identifier.

Definition at line 248 of file socket.h.

◆ timestamp

NetTimestamp timestamp

Captured time stamp.

Definition at line 252 of file socket.h.

◆ timestampId

int32_t timestampId

Unique identifier for hardware time stamping.

Definition at line 251 of file socket.h.

◆ tos

uint8_t tos

Type-of-service value.

Definition at line 235 of file socket.h.

◆ ttl

uint8_t ttl

Time-to-live value.

Definition at line 234 of file socket.h.


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