OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_buffer_ip.cpp File Reference
#include <arpa/inet.h>
#include "test_common.hpp"
#include <openvpn/buffer/bufstatic.hpp>
#include <openvpn/buffer/bufip.hpp>
#include <openvpn/buffer/bufstr.hpp>
Include dependency graph for test_buffer_ip.cpp:

Go to the source code of this file.

Functions

static std::string to_hex (const std::uint32_t value)
 
 TEST (buffer_ip, unsigned_decimal)
 
 TEST (buffer_ip, hex)
 
 TEST (buffer_ip, ipv4)
 
 TEST (buffer_ip, ipv6)
 

Variables

static constexpr int ITER = 1000000
 

Function Documentation

◆ TEST() [1/4]

TEST ( buffer_ip  ,
hex   
)

Definition at line 32 of file test_buffer_ip.cpp.

◆ TEST() [2/4]

TEST ( buffer_ip  ,
ipv4   
)

Definition at line 49 of file test_buffer_ip.cpp.

◆ TEST() [3/4]

TEST ( buffer_ip  ,
ipv6   
)

Definition at line 68 of file test_buffer_ip.cpp.

◆ TEST() [4/4]

TEST ( buffer_ip  ,
unsigned_decimal   
)

Definition at line 21 of file test_buffer_ip.cpp.

◆ to_hex()

static std::string to_hex ( const std::uint32_t  value)
static

Definition at line 14 of file test_buffer_ip.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ ITER

constexpr int ITER = 1000000
staticconstexpr

Definition at line 46 of file test_buffer_ip.cpp.