mirror of
https://github.com/mfontanini/libtins
synced 2026-01-29 21:14:28 +01:00
Added HWAddress<>::is_broadcast.
This commit is contained in:
@@ -227,6 +227,13 @@ public:
|
||||
return address_size;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Indicates whether this is a broadcast address
|
||||
*/
|
||||
bool is_broadcast() const {
|
||||
return *std::min_element(begin(), end()) == 0xff;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Convert this address to a hex-notation std::string address.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user