PcapPlusPlus  Next
pcpp::DpdkDevice::LinkStatus Struct Reference

#include <DpdkDevice.h>

Public Types

enum  LinkDuplex { FULL_DUPLEX , HALF_DUPLEX }
 

Public Attributes

bool linkUp
 
int linkSpeedMbps
 
LinkDuplex linkDuplex
 

Detailed Description

A struct that contains the link status of a DpdkDevice (DPDK port). Returned from DpdkDevice::getLinkStatus()

Member Enumeration Documentation

◆ LinkDuplex

Enum for describing link duplex

Enumerator
FULL_DUPLEX 

Full duplex

HALF_DUPLEX 

Half duplex

Member Data Documentation

◆ linkDuplex

LinkDuplex pcpp::DpdkDevice::LinkStatus::linkDuplex

Link duplex (half/full duplex)

◆ linkSpeedMbps

int pcpp::DpdkDevice::LinkStatus::linkSpeedMbps

Link speed in Mbps (for example: 10Gbe will show 10000)

◆ linkUp

bool pcpp::DpdkDevice::LinkStatus::linkUp

True if link is up, false if it's down