|
OpenVPN 3 Core Library
|
#include "test_common.hpp"#include <openvpn/common/size.hpp>#include <openvpn/common/exception.hpp>#include <openvpn/common/hexstr.hpp>#include <openvpn/reliable/relack.hpp>#include <iostream>#include <string>#include <sstream>#include <deque>#include <algorithm>#include <limits>#include <openvpn/random/mtrandapi.hpp>#include <openvpn/buffer/buffer.hpp>#include <openvpn/reliable/relrecv.hpp>#include <openvpn/reliable/relsend.hpp>#include <openvpn/crypto/packet_id_control.hpp>Go to the source code of this file.
Classes | |
| struct | Packet |
| struct | Message |
| struct | test_params |
Namespaces | |
| namespace | PacketID |
Typedefs | |
| using | PacketID::id_t = openvpn::reliable::id_t |
| using | ReliableSend = ReliableSendTemplate< Packet > |
| using | ReliableRecv = ReliableRecvTemplate< Packet > |
Functions | |
| TEST (Reliable, Ack) | |
| TEST (Reliable, AckDup) | |
| TEST (Reliable, SimplePacket) | |
| OPENVPN_SIMPLE_EXCEPTION (receive_sequence) | |
| void | print_msg (const Time::Duration t, const char *title, BufferPtr &buf, const openvpn::PacketIDControl::id_t id, std::stringstream &case_detail) |
| void | test (MTRand &rand, const Time base, const Time::Duration end, const Time::Duration step, const Time::Duration end_sends, const openvpn::PacketIDControl::id_t relsize, const size_t wiresize, const unsigned int reorder_prob, const unsigned int drop_prob, std::stringstream &case_detail) |
| TEST (Reliable, Simulation) | |
| using ReliableRecv = ReliableRecvTemplate<Packet> |
Definition at line 150 of file test_reliable.cpp.
| using ReliableSend = ReliableSendTemplate<Packet> |
Definition at line 149 of file test_reliable.cpp.
| OPENVPN_SIMPLE_EXCEPTION | ( | receive_sequence | ) |
| void print_msg | ( | const Time::Duration | t, |
| const char * | title, | ||
| BufferPtr & | buf, | ||
| const openvpn::PacketIDControl::id_t | id, | ||
| std::stringstream & | case_detail | ||
| ) |
| void test | ( | MTRand & | rand, |
| const Time | base, | ||
| const Time::Duration | end, | ||
| const Time::Duration | step, | ||
| const Time::Duration | end_sends, | ||
| const openvpn::PacketIDControl::id_t | relsize, | ||
| const size_t | wiresize, | ||
| const unsigned int | reorder_prob, | ||
| const unsigned int | drop_prob, | ||
| std::stringstream & | case_detail | ||
| ) |
Definition at line 170 of file test_reliable.cpp.
| TEST | ( | Reliable | , |
| Ack | |||
| ) |
Definition at line 29 of file test_reliable.cpp.
| TEST | ( | Reliable | , |
| AckDup | |||
| ) |
Definition at line 65 of file test_reliable.cpp.
| TEST | ( | Reliable | , |
| SimplePacket | |||
| ) |
Definition at line 110 of file test_reliable.cpp.
| TEST | ( | Reliable | , |
| Simulation | |||
| ) |
Definition at line 332 of file test_reliable.cpp.