|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <ptp.h>
Public Member Functions | |
| bool | initUsingName (const std::string &ifName) |
| bool | initUsingIndex (int ifIndex) |
| bool | isInit () const |
| int | ifIndex () const |
| const std::string & | ifName () const |
| const char * | ifName_c () const |
| const Binary & | mac () const |
| const uint8_t * | mac_c () const |
| size_t | mac_size () const |
| int | ptpIndex () const |
Network interface information
| int IfInfo::ifIndex | ( | ) | const |
Get interface index
| const std::string & IfInfo::ifName | ( | ) | const |
Get interface name
| const char * IfInfo::ifName_c | ( | ) | const |
Get interface name
| bool IfInfo::initUsingIndex | ( | int | ifIndex | ) |
Find network interface information based on its index
| [in] | ifIndex | network interface index |
| bool IfInfo::initUsingName | ( | const std::string & | ifName | ) |
Find network interface information based on its name
| [in] | ifName | network interface name |
| bool IfInfo::isInit | ( | ) | const |
Is object initialized
| const Binary & IfInfo::mac | ( | ) | const |
Get interface MAC address
| const uint8_t * IfInfo::mac_c | ( | ) | const |
Get interface MAC address
| size_t IfInfo::mac_size | ( | ) | const |
Get interface MAC address length
| int IfInfo::ptpIndex | ( | ) | const |
Get interface PTP index