Class used to test the ICMP echo client API.
More...
|
| void | SetUp () override |
| | set up test.
|
| |
|
| static void | ignoreEcho (int ignore) |
| | make the far host ignore echo requests.
|
| |
|
| static const std::string | _host4 = "127.0.0.1" |
| |
| static const std::string | _host6 = "::1" |
| |
| static const std::string | _far = "10.10.1.2" |
| |
| static const std::string | _far6 = "fd00:11::2" |
| |
| static const std::string | _badSource = "1.2.3.4" |
| |
| static const std::string | _badDevice = "nosuchdev" |
| |
| static const int | _badTtl = 256 |
| |
| static const int | _farMtu = 1280 |
| |
| static const int | _farSize = 1300 |
| |
| static const int | _headerSize = 28 |
| |
| static const int | _maxPacketSize = 65535 |
| |
| static const int | _size = 56 |
| |
| static const int | _count = 3 |
| |
| static const int | _concurrentCount = 20 |
| |
| static const std::chrono::milliseconds | _timeout = std::chrono::seconds (5) |
| |
| static const std::chrono::milliseconds | _interval = std::chrono::milliseconds (100) |
| |
| static const std::chrono::milliseconds | _concurrentTimeout = std::chrono::seconds (1) |
| |
| static const std::chrono::milliseconds | _lostTimeout = std::chrono::milliseconds (500) |
| |
Class used to test the ICMP echo client API.
◆ ignoreEcho()
| static void PingTest::ignoreEcho |
( |
int | ignore | ) |
|
|
inlinestaticprotected |
make the far host ignore echo requests.
- Parameters
-
| ignore | set to discard the echo requests, clear to answer them. |
◆ SetUp()
◆ SetUpTestCase()
| static void PingTest::SetUpTestCase |
( |
| ) |
|
|
inlinestatic |
◆ TearDownTestCase()
| static void PingTest::TearDownTestCase |
( |
| ) |
|
|
inlinestatic |
◆ _badDevice
| const std::string PingTest::_badDevice = "nosuchdev" |
|
staticprotected |
◆ _badSource
| const std::string PingTest::_badSource = "1.2.3.4" |
|
staticprotected |
◆ _badTtl
| const int PingTest::_badTtl = 256 |
|
staticprotected |
◆ _concurrentCount
| const int PingTest::_concurrentCount = 20 |
|
staticprotected |
◆ _concurrentTimeout
| const std::chrono::milliseconds PingTest::_concurrentTimeout = std::chrono::seconds (1) |
|
staticprotected |
◆ _count
| const int PingTest::_count = 3 |
|
staticprotected |
◆ _far
| const std::string PingTest::_far = "10.10.1.2" |
|
staticprotected |
◆ _far6
| const std::string PingTest::_far6 = "fd00:11::2" |
|
staticprotected |
◆ _farMtu
| const int PingTest::_farMtu = 1280 |
|
staticprotected |
◆ _farSize
| const int PingTest::_farSize = 1300 |
|
staticprotected |
◆ _headerSize
| const int PingTest::_headerSize = 28 |
|
staticprotected |
◆ _host4
| const std::string PingTest::_host4 = "127.0.0.1" |
|
staticprotected |
◆ _host6
| const std::string PingTest::_host6 = "::1" |
|
staticprotected |
◆ _interval
| const std::chrono::milliseconds PingTest::_interval = std::chrono::milliseconds (100) |
|
staticprotected |
◆ _lostTimeout
| const std::chrono::milliseconds PingTest::_lostTimeout = std::chrono::milliseconds (500) |
|
staticprotected |
◆ _maxPacketSize
| const int PingTest::_maxPacketSize = 65535 |
|
staticprotected |
◆ _size
| const int PingTest::_size = 56 |
|
staticprotected |
◆ _timeout
| const std::chrono::milliseconds PingTest::_timeout = std::chrono::seconds (5) |
|
staticprotected |
The documentation for this class was generated from the following file: