HW-SD
1.0.0
|
A structure containing network-specific information. More...
#include <netInfo.h>
Public Types | |
enum | Type { TYPE_UNKNOWN = LB_BIT_NONE, TYPE_ETHERNET = LB_BIT1, TYPE_INFINIBAND = LB_BIT2, TYPE_LOOPBACK = LB_BIT3, TYPE_TUNNEL_ETHERNET = LB_BIT4, TYPE_TUNNEL_6TO4 = LB_BIT5, TYPE_ALL = LB_BIT_ALL_32 } |
Public Member Functions | |
NetInfo () | |
Default constructor pointing to the default display. | |
bool | operator== (const NetInfo &rhs) const |
bool | operator!= (const NetInfo &rhs) const |
std::string | getType () const |
void | setType (const std::string &strType) |
Public Member Functions inherited from hwsd::NodeInfo | |
NodeInfo () | |
Default constructor describing a local session. | |
bool | operator== (const NodeInfo &rhs) const |
bool | operator!= (const NodeInfo &rhs) const |
Public Attributes | |
Type | type |
The type of the network interface. | |
std::string | name |
The name of the interface (e.g. | |
std::string | hostname |
The hostname assigned to this interface. | |
std::string | hwAddress |
The MAC address (':' as separator) of the interface. | |
std::string | inetAddress |
The IPv4 address (':' as separator) of the interface. | |
std::string | inet6Address |
The IPv6 address (':' as separator) of the interface. | |
unsigned int | linkspeed |
The interface link speed in Megabits per second. | |
bool | up |
Whether the interface is up or down. | |
char | dummy [24] |
Buffer for binary-compatible additions. | |
Public Attributes inherited from hwsd::NodeInfo | |
lunchbox::UUID | id |
Random unique ID identifing the origin node. | |
std::string | nodeName |
System hostname if remote, empty for local. | |
std::string | session |
The session name: local, default or custom string. | |
char | dummy [32] |
Buffer for binary-compatible additions. |
Static Public Attributes | |
static const unsigned | defaultValue = UINT_MAX |
A non-enumerated value. |
enum hwsd::NetInfo::Type |
|
inline |
|
inline |
|
inline |
Definition at line 52 of file netInfo.h.
References hostname, hwAddress, inet6Address, inetAddress, linkspeed, name, type, and up.
|
static |
std::string hwsd::NetInfo::hostname |
The hostname assigned to this interface.
Definition at line 109 of file netInfo.h.
Referenced by operator==().
std::string hwsd::NetInfo::hwAddress |
The MAC address (':' as separator) of the interface.
Definition at line 112 of file netInfo.h.
Referenced by operator==().
std::string hwsd::NetInfo::inet6Address |
The IPv6 address (':' as separator) of the interface.
Definition at line 118 of file netInfo.h.
Referenced by operator==().
std::string hwsd::NetInfo::inetAddress |
The IPv4 address (':' as separator) of the interface.
Definition at line 115 of file netInfo.h.
Referenced by operator==().
unsigned int hwsd::NetInfo::linkspeed |
The interface link speed in Megabits per second.
Definition at line 121 of file netInfo.h.
Referenced by operator==().
std::string hwsd::NetInfo::name |
The name of the interface (e.g.
eth0, ib0).
Definition at line 106 of file netInfo.h.
Referenced by operator==().
Type hwsd::NetInfo::type |
The type of the network interface.
Definition at line 103 of file netInfo.h.
Referenced by operator==().
bool hwsd::NetInfo::up |
Whether the interface is up or down.
Definition at line 124 of file netInfo.h.
Referenced by operator==().