Public Member Functions | Protected Member Functions | Protected Attributes
EthernetInterfaceInfo Class Reference

#include <ethernet_interface_info.h>

List of all members.

Public Member Functions

 EthernetInterfaceInfo ()
void initialize (const std::string &interface)
void publishDiagnostics (diagnostic_updater::DiagnosticStatusWrapper &d)
 Collect and append ethernet interface diagnostics.
 ~EthernetInterfaceInfo ()

Protected Member Functions

bool getEthtoolStats (EthtoolStats &stats)
 Get ethtool stats from interface.
bool getInterfaceState (InterfaceState &state)
 Get state (up,running) of interface.

Protected Attributes

char * ethtool_stats_buf_
 buffer for NIC statistic values
std::string interface_
 name of network interface (for example : eth0)
InterfaceState last_state_
unsigned lost_link_count_
 Number of time master link went down.
unsigned n_stats_
 Number of stats available from ethtool ioctl.
EthtoolStats orig_stats_
 Original statistics counts when initialize() was called.
int rx_align_error_index_
int rx_crc_error_index_
int rx_error_index_
int rx_frame_error_index_
int sock_
 network socket for making ioctl requests

Detailed Description

Definition at line 64 of file ethernet_interface_info.h.


Constructor & Destructor Documentation

Definition at line 26 of file ethernet_interface_info.cpp.

Definition at line 37 of file ethernet_interface_info.cpp.


Member Function Documentation

Get ethtool stats from interface.

Definition at line 158 of file ethernet_interface_info.cpp.

Get state (up,running) of interface.

Definition at line 141 of file ethernet_interface_info.cpp.

void EthernetInterfaceInfo::initialize ( const std::string &  interface)

Definition at line 45 of file ethernet_interface_info.cpp.

Collect and append ethernet interface diagnostics.

Parameters:
dDiagnostics status wrapper.

Definition at line 197 of file ethernet_interface_info.cpp.


Member Data Documentation

buffer for NIC statistic values

Definition at line 92 of file ethernet_interface_info.h.

std::string EthernetInterfaceInfo::interface_ [protected]

name of network interface (for example : eth0)

Definition at line 86 of file ethernet_interface_info.h.

Definition at line 106 of file ethernet_interface_info.h.

Number of time master link went down.

Definition at line 102 of file ethernet_interface_info.h.

unsigned EthernetInterfaceInfo::n_stats_ [protected]

Number of stats available from ethtool ioctl.

Definition at line 90 of file ethernet_interface_info.h.

Original statistics counts when initialize() was called.

Definition at line 105 of file ethernet_interface_info.h.

Definition at line 99 of file ethernet_interface_info.h.

Definition at line 97 of file ethernet_interface_info.h.

Definition at line 96 of file ethernet_interface_info.h.

Definition at line 98 of file ethernet_interface_info.h.

network socket for making ioctl requests

Definition at line 88 of file ethernet_interface_info.h.


The documentation for this class was generated from the following files:


ros_ethercat_hardware
Author(s): Rob Wheeler , Derek King , Manos Nikolaidis
autogenerated on Thu Jul 4 2019 20:01:53