Speedify SDK for Desktop/Embedded 17.3.0
Loading...
Searching...
No Matches
SpeedifySDK_TunStats Struct Reference

Contains stats regarding the TUN, for use in session stats. More...

#include <types.h>

Data Fields

uint64_t packetsIn
 Number of packets read from TUN.
 
uint64_t packetsOut
 Number of packets written to TUN.
 
uint64_t bytesIn
 Number of bytes read from TUN.
 
uint64_t bytesOut
 Number of bytes written to TUN.
 
uint64_t bufferWaits
 Number of buffer full waits.
 
uint64_t packetWaits
 Number of packet pool waits.
 
uint64_t readQueue
 Size of the read queue.
 
uint64_t droppedIncoming
 Number of incoming packets dropped.
 
bool segmentationOffloadActive
 Whether the TUN is currently exchanging super-packets with the kernel.
 
bool segmentationOffloadConfirmed
 Whether the peer has advertised that its tun can write super-packets.
 
bool segmentationOffloadUnavailable
 Whether this kernel refused the TUN framing the offload needs.
 
uint64_t segmentedPacketsIn
 Number of super-packets read from the TUN.
 
uint64_t segmentedPacketsOut
 Number of super-packets written to the TUN.
 
uint64_t segmentedPacketsDropped
 Number of super-packets dropped because this TUN could not write them.
 

Detailed Description

Contains stats regarding the TUN, for use in session stats.

Since
8.0

Field Documentation

◆ bufferWaits

uint64_t SpeedifySDK_TunStats::bufferWaits

Number of buffer full waits.

Since
8.0

◆ bytesIn

uint64_t SpeedifySDK_TunStats::bytesIn

Number of bytes read from TUN.

Since
8.0

◆ bytesOut

uint64_t SpeedifySDK_TunStats::bytesOut

Number of bytes written to TUN.

Since
8.0

◆ droppedIncoming

uint64_t SpeedifySDK_TunStats::droppedIncoming

Number of incoming packets dropped.

Since
8.0

◆ packetsIn

uint64_t SpeedifySDK_TunStats::packetsIn

Number of packets read from TUN.

Since
8.0

◆ packetsOut

uint64_t SpeedifySDK_TunStats::packetsOut

Number of packets written to TUN.

Since
8.0

◆ packetWaits

uint64_t SpeedifySDK_TunStats::packetWaits

Number of packet pool waits.

Since
8.0

◆ readQueue

uint64_t SpeedifySDK_TunStats::readQueue

Size of the read queue.

Since
8.0

◆ segmentationOffloadActive

bool SpeedifySDK_TunStats::segmentationOffloadActive

Whether the TUN is currently exchanging super-packets with the kernel.

The state, as opposed to the segmentationOffload setting, which is only the request. False while the setting is on means it was asked for and did not take: see segmentationOffloadUnavailable and segmentationOffloadConfirmed for which half failed. The counters below cannot answer this – an offload that never applied and one that applied and found nothing to merge both read as zero.

Since
17.3

◆ segmentationOffloadConfirmed

bool SpeedifySDK_TunStats::segmentationOffloadConfirmed

Whether the peer has advertised that its tun can write super-packets.

Reports the peer's capability only: it can be true while this end's own setting is off.

Since
17.3

◆ segmentationOffloadUnavailable

bool SpeedifySDK_TunStats::segmentationOffloadUnavailable

Whether this kernel refused the TUN framing the offload needs.

Sticky for the life of the process, and the reason an enabled setting can read inactive with nothing else wrong.

Since
17.3

◆ segmentedPacketsDropped

uint64_t SpeedifySDK_TunStats::segmentedPacketsDropped

Number of super-packets dropped because this TUN could not write them.

Since
17.3

◆ segmentedPacketsIn

uint64_t SpeedifySDK_TunStats::segmentedPacketsIn

Number of super-packets read from the TUN.

Since
17.3

◆ segmentedPacketsOut

uint64_t SpeedifySDK_TunStats::segmentedPacketsOut

Number of super-packets written to the TUN.

Since
17.3

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