MT Core (C++)
Core library for replacing C++ standard in project usage
|
Gets a subnet mask for an IP version 6 subnet. More...
#include <ip.hpp>
Public Member Functions | |
SubnetV6 | subnet_ip (const IPv6 &ip) |
Subnets an IP address using the subnet mask. | |
Static Public Member Functions | |
static SubnetMaskV6 | by_id (u8 id) |
Gets a subnet mask by id. | |
static constexpr bool | valid_id (u8 id) |
Checks if a subnet mask ID is valid (0-128) | |
Public Attributes | |
u8 | id = 0 |
u64 | maskHigh = 0 |
u64 | maskLow = 0 |
|
inlinestatic |
Gets a subnet mask by id.
Valid ids is 0-128
id | ID of subnet mask to get |
Definition at line 226 of file ip.hpp.
Subnets an IP address using the subnet mask.
ip | IP address to subnet |
|
staticconstexpr |