#include <senf/Ext/NetEmu/InterfaceId.hh>
Public Types | |
enum | Bus_t { Unknown = 0, PCI = 1, PCIe, USB } |
Public Member Functions | |
InterfaceDeviceId () | |
InterfaceDeviceId (Bus_t b, boost::uint16_t v, boost::uint16_t d) | |
InterfaceDeviceId (boost::uint8_t b, boost::uint16_t v, boost::uint16_t d) | |
bool | operator< (InterfaceDeviceId const &other) const |
bool | operator== (InterfaceDeviceId const &other) const |
Bus_t | bus () const |
boost::uint16_t | vendor () const |
boost::uint16_t | device () const |
Static Public Member Functions | |
static InterfaceDeviceId | get (senf::MACAddress const &addr) |
Static Public Attributes | |
static const InterfaceDeviceId | None |
Definition at line 32 of file InterfaceId.hh.
Enumerator | |
---|---|
Unknown | |
PCI | |
PCIe | |
USB |
Definition at line 35 of file InterfaceId.hh.
senf::emu::InterfaceDeviceId::InterfaceDeviceId | ( | ) |
Definition at line 60 of file InterfaceId.cc.
senf::emu::InterfaceDeviceId::InterfaceDeviceId | ( | Bus_t | b, |
boost::uint16_t | v, | ||
boost::uint16_t | d | ||
) |
Definition at line 64 of file InterfaceId.cc.
senf::emu::InterfaceDeviceId::InterfaceDeviceId | ( | boost::uint8_t | b, |
boost::uint16_t | v, | ||
boost::uint16_t | d | ||
) |
Definition at line 68 of file InterfaceId.cc.
senf::emu::InterfaceDeviceId::Bus_t senf::emu::InterfaceDeviceId::bus | ( | ) | const |
Definition at line 129 of file InterfaceId.cc.
boost::uint16_t senf::emu::InterfaceDeviceId::device | ( | ) | const |
Definition at line 141 of file InterfaceId.cc.
|
static |
Definition at line 76 of file InterfaceId.cc.
bool senf::emu::InterfaceDeviceId::operator< | ( | InterfaceDeviceId const & | other | ) | const |
Definition at line 111 of file InterfaceId.cc.
bool senf::emu::InterfaceDeviceId::operator== | ( | InterfaceDeviceId const & | other | ) | const |
Definition at line 121 of file InterfaceId.cc.
boost::uint16_t senf::emu::InterfaceDeviceId::vendor | ( | ) | const |
Definition at line 135 of file InterfaceId.cc.
|
static |
Definition at line 41 of file InterfaceId.hh.