FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::net::KernelSourceConfig Struct Reference

#include <fastmm/net/kernel_datagram_source.hpp>

Public Attributes

std::vector< DatagramSubscription > subscriptions
 line = index, at most 256
 
int rcvbuf_bytes = 0
 0 keeps the system default
 
std::uint32_t batch = 32
 datagrams per recvmmsg, 1..1024
 
std::uint32_t max_datagram = 2048
 larger datagrams are dropped (truncated)
 
bool timestamps = true
 SO_TIMESTAMPING.
 
bool busy_poll = false
 SO_BUSY_POLL / SO_PREFER_BUSY_POLL / SO_BUSY_POLL_BUDGET on every socket.
 
int busy_poll_usec = 50
 
int busy_poll_budget = 0
 0 keeps the kernel default (8)
 

Member Data Documentation

◆ subscriptions

std::vector<DatagramSubscription> fastmm::net::KernelSourceConfig::subscriptions

line = index, at most 256

◆ rcvbuf_bytes

int fastmm::net::KernelSourceConfig::rcvbuf_bytes = 0

0 keeps the system default

◆ batch

std::uint32_t fastmm::net::KernelSourceConfig::batch = 32

datagrams per recvmmsg, 1..1024

◆ max_datagram

std::uint32_t fastmm::net::KernelSourceConfig::max_datagram = 2048

larger datagrams are dropped (truncated)

◆ timestamps

bool fastmm::net::KernelSourceConfig::timestamps = true

SO_TIMESTAMPING.

◆ busy_poll

bool fastmm::net::KernelSourceConfig::busy_poll = false

SO_BUSY_POLL / SO_PREFER_BUSY_POLL / SO_BUSY_POLL_BUDGET on every socket.

Failures do not fail open(); they are reported in KernelSourceOpen.

◆ busy_poll_usec

int fastmm::net::KernelSourceConfig::busy_poll_usec = 50

◆ busy_poll_budget

int fastmm::net::KernelSourceConfig::busy_poll_budget = 0

0 keeps the kernel default (8)