Check INet6Address against a fixed network prefix. More...
#include <senf/Socket/Protocols/INet/INet6Address.hh>
Check INet6Address against a fixed network prefix.
This helper allows to easily and efficiently check an INet6Address against an arbitrary but constant network prefix. It takes from 1 to 8 arguments for the network address and an additional last argument providing the prefix length. So
senf::CheckINet6Network<
addr_1 ,
addr_2 ,
... ,
prefix_len >
represents the network
:
addr_2 :
... ::/
prefix_len .The class exposes a single static member match(
addr )
which matches the INet6Address addr against the prefix:
The code generated by this call is highly optimized and probably as efficient as it can get.
Definition at line 325 of file INet6Address.hh.