#include <network_device.h>
Public Member Functions | |
Device (const std::string &name) | |
Device (int index) | |
virtual | ~Device () |
int | index () |
void | set_index (int index) |
std::string | name () |
void | set_name (const std::string &name) |
bool | is_up () |
bool | has_broadcast () |
bool | is_debug () |
bool | is_loopback () |
bool | is_point_to_point () |
bool | is_running () |
bool | no_arp () |
bool | is_promiscuous () |
bool | no_trailers () |
bool | receives_all_multicast () |
bool | is_master () |
bool | is_slave () |
bool | is_multicast_capable () |
bool | port_selectable () |
bool | auto_media_active () |
bool | is_dynamic () |
int | mtu () |
void | set_mtu (int mtu) |
Protected Attributes | |
std::string | m_name |
int | m_index |
struct ifreq | m_ifreq |
Conexus::Network::Device::Device | ( | const std::string & | name | ) |
Conexus::Network::Device::Device | ( | int | index | ) |
Conexus::Network::Device::~Device | ( | ) | [virtual] |
bool Conexus::Network::Device::auto_media_active | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::has_broadcast | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
int Conexus::Network::Device::index | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, m_index, and m_name.
bool Conexus::Network::Device::is_debug | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_dynamic | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_loopback | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_master | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_multicast_capable | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_point_to_point | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_promiscuous | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_running | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_slave | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::is_up | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
int Conexus::Network::Device::mtu | ( | ) |
std::string Conexus::Network::Device::name | ( | ) |
References m_name.
bool Conexus::Network::Device::no_arp | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::no_trailers | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::port_selectable | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
bool Conexus::Network::Device::receives_all_multicast | ( | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, and m_name.
void Conexus::Network::Device::set_index | ( | int | index | ) |
References Conexus::Network::check_local_socket(), Conexus::Network::local_socket, m_ifreq, m_index, and m_name.
void Conexus::Network::Device::set_mtu | ( | int | mtu | ) |
void Conexus::Network::Device::set_name | ( | const std::string & | name | ) |
struct ifreq Conexus::Network::Device::m_ifreq [read, protected] |
Referenced by auto_media_active(), has_broadcast(), index(), is_debug(), is_dynamic(), is_loopback(), is_master(), is_multicast_capable(), is_point_to_point(), is_promiscuous(), is_running(), is_slave(), is_up(), no_arp(), no_trailers(), port_selectable(), receives_all_multicast(), set_index(), and set_name().
int Conexus::Network::Device::m_index [protected] |
Referenced by index(), set_index(), and set_name().
std::string Conexus::Network::Device::m_name [protected] |
Referenced by auto_media_active(), has_broadcast(), index(), is_debug(), is_dynamic(), is_loopback(), is_master(), is_multicast_capable(), is_point_to_point(), is_promiscuous(), is_running(), is_slave(), is_up(), name(), no_arp(), no_trailers(), port_selectable(), receives_all_multicast(), set_index(), and set_name().