1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add info members directly into NetworkInterface

This commit is contained in:
Matias Fontanini
2016-03-05 10:33:50 -08:00
parent 08fd9e2d69
commit e15ef0d837
2 changed files with 47 additions and 2 deletions

View File

@@ -201,6 +201,31 @@ public:
*/
bool is_up() const;
/**
* \brief Retrieves the hardware address for this interface.
*/
address_type hw_address() const;
/**
* \brief Retrieves the IPv4 address for this interface.
*/
IPv4Address ipv4_address() const;
/**
* \brief Retrieves the IPv4 netmask for this interface.
*/
IPv4Address ipv4_mask() const;
/**
* \brief Retrieves the broadcast IPv4 address for this interface.
*/
IPv4Address ipv4_broadcast() const;
/**
* \brief Retrieves the IPv6 addresses for this interface.
*/
std::vector<IPv6Prefix> ipv6_addresses() const;
/**
* \brief Compares this interface for equality.
*