mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Allow masking IPv4/6 and HW addresses
This commit is contained in:
@@ -206,6 +206,13 @@ public:
|
||||
friend std::ostream& operator<<(std::ostream& os, const IPv6Address& addr) {
|
||||
return os << addr.to_string();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Applies a mask to an address
|
||||
*/
|
||||
TINS_API friend IPv6Address operator&(const IPv6Address& lhs, const IPv6Address& rhs);
|
||||
|
||||
private:
|
||||
void init(const char* addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user