OpenVPN 3 Core Library
|
#include "test_common.hpp"
#include <iostream>
#include <string>
#include <openvpn/common/exception.hpp>
#include <openvpn/addr/ip.hpp>
Go to the source code of this file.
Functions | |
OPENVPN_SIMPLE_EXCEPTION (ipv4_bad_prefix_len) | |
OPENVPN_SIMPLE_EXCEPTION (ipv4_bad_netmask) | |
IPv4::Addr::base_type | prefix_len_to_netmask_unchecked (const unsigned int prefix_len) |
IPv4::Addr::base_type | prefix_len_to_netmask (const unsigned int prefix_len) |
int | prefix_len (const IPv4::Addr::base_type mask) |
TEST (IPAddr, test32) | |
TEST (IPAddr, prefixlen) | |
void | testbig () |
OPENVPN_SIMPLE_EXCEPTION | ( | ipv4_bad_netmask | ) |
OPENVPN_SIMPLE_EXCEPTION | ( | ipv4_bad_prefix_len | ) |
|
inline |
|
inline |
|
inline |
TEST | ( | IPAddr | , |
prefixlen | |||
) |
Definition at line 63 of file test_prefixlen.cpp.
TEST | ( | IPAddr | , |
test32 | |||
) |
Definition at line 50 of file test_prefixlen.cpp.
void testbig | ( | ) |
Definition at line 74 of file test_prefixlen.cpp.