Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Public Attributes | List of all members
ietfInterface_t Struct Reference

Struct to hold information about an interface, inspired by the ietf-interfaces yang model. More...

#include <CncTypes.h>

Collaboration diagram for ietfInterface_t:
Collaboration graph

Public Attributes

int ifindex
 
std::string name
 
uint32_t lastLinkUpdateId
 
uint32_t lastQdiscUpdateId
 
IfType type = IfType::ETHERNET
 
bool adminEnabled = false
 
OperStatus operStatus = OperStatus::UNKNOWN
 
bool hasPhysAddr = false
 
std::array< uint8_t, 6 > physAddress = {0}
 
uint32_t mtu = 0
 
uint32_t numTxQueues = 1
 
uint32_t numActiveTxQueues = 1
 
uint64_t speed = kInterfaceSpeedUnknown
 
BridgePort_t bridgePort
 

Detailed Description

Struct to hold information about an interface, inspired by the ietf-interfaces yang model.

Contains ifindex and name for identification, and more values following the ietf-interfaces model. lastLinkUpdateId and lastQdiscUpdateId contain the sysrepo request-id of the last update of this struct, and are used to ensure refreshes as needed.

Member Data Documentation

◆ adminEnabled

bool ietfInterface_t::adminEnabled = false

◆ bridgePort

BridgePort_t ietfInterface_t::bridgePort

◆ hasPhysAddr

bool ietfInterface_t::hasPhysAddr = false

◆ ifindex

int ietfInterface_t::ifindex

◆ lastLinkUpdateId

uint32_t ietfInterface_t::lastLinkUpdateId

◆ lastQdiscUpdateId

uint32_t ietfInterface_t::lastQdiscUpdateId

◆ mtu

uint32_t ietfInterface_t::mtu = 0

◆ name

std::string ietfInterface_t::name

◆ numActiveTxQueues

uint32_t ietfInterface_t::numActiveTxQueues = 1

◆ numTxQueues

uint32_t ietfInterface_t::numTxQueues = 1

◆ operStatus

OperStatus ietfInterface_t::operStatus = OperStatus::UNKNOWN

◆ physAddress

std::array<uint8_t, 6> ietfInterface_t::physAddress = {0}

◆ speed

uint64_t ietfInterface_t::speed = kInterfaceSpeedUnknown

◆ type

IfType ietfInterface_t::type = IfType::ETHERNET

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