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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user