Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_netlink_config_t Struct Reference

Configuration for rte_netlink_open(). More...

#include <rte_netlink.h>

Data Fields

rte_netlink_role_t role
const char * host
uint16_t port
size_t message_size
rte_duration_ms_t connect_timeout_ms
uint32_t rcvbuf_bytes
uint32_t sndbuf_bytes

Detailed Description

Configuration for rte_netlink_open().

Definition at line 76 of file rte_netlink.h.

Field Documentation

◆ role

rte_netlink_role_t rte_netlink_config_t::role

Which side of the connection this link instance plays.

Definition at line 79 of file rte_netlink.h.

◆ host

const char* rte_netlink_config_t::host

LISTEN: bind address, osadapter-defined interpretation of NULL (typically "any"). CONNECT: target host to dial. Must not be NULL for CONNECT. Caller-owned; only read during rte_netlink_open().

Definition at line 83 of file rte_netlink.h.

◆ port

uint16_t rte_netlink_config_t::port

LISTEN: port to bind. CONNECT: port to dial.

Definition at line 85 of file rte_netlink.h.

◆ message_size

size_t rte_netlink_config_t::message_size

Fixed size in bytes of every message exchanged on this link.

Definition at line 87 of file rte_netlink.h.

◆ connect_timeout_ms

rte_duration_ms_t rte_netlink_config_t::connect_timeout_ms

Maximum time rte_netlink_open() may block establishing the link (REQ-OAL-NETLINK-002).

Definition at line 90 of file rte_netlink.h.

◆ rcvbuf_bytes

uint32_t rte_netlink_config_t::rcvbuf_bytes

Socket receive buffer size in bytes; 0 keeps the OS default (the OSAdapter sets nothing). A non-zero value is a minimum the OSAdapter applies and confirms before the link is handed out: at rte_netlink_open(), and at every socket (re)init of an OSAdapter that reuses this config (e.g. the POSIX channel service). A refusal fails the open; a confirmed size below the request keeps the link and is reported (REQ-OAL-NETLINK-015).

Definition at line 98 of file rte_netlink.h.

◆ sndbuf_bytes

uint32_t rte_netlink_config_t::sndbuf_bytes

Socket send buffer size in bytes; 0 keeps the OS default. Same rules as rcvbuf_bytes (REQ-OAL-NETLINK-015).

Definition at line 101 of file rte_netlink.h.


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