PcapPlusPlus
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

Enum for describing link duplex

Enumerator
FULL_DUPLEX 

Full duplex

HALF_DUPLEX 

Half duplex

Member Data Documentation

LinkDuplex pcpp::DpdkDevice::LinkStatus::linkDuplex

Link duplex (half/full duplex)

int pcpp::DpdkDevice::LinkStatus::linkSpeedMbps

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

bool pcpp::DpdkDevice::LinkStatus::linkUp

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