X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e3e2d6326db86d7ca22d2cba1193aa64a8e33b2d..08dd72f2d8d3d7766e4fa87f01840c3ed8211091:/tests/test_raw_ip.cpp diff --git a/tests/test_raw_ip.cpp b/tests/test_raw_ip.cpp index a7b3e8a5..4c7ce121 100644 --- a/tests/test_raw_ip.cpp +++ b/tests/test_raw_ip.cpp @@ -28,7 +28,7 @@ constexpr size_t ITERATIONS = 1000; std::array genVector() { std::array res; - for (size_t i = 0; i < 68; ++i) + for (size_t i = 0; i < res.size(); ++i) res[i] = rand() % 256; res[0] = (res[0] & 0xF0) | 0x05; // Fix header length return res; @@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE(RandomTests) srand(time(NULL)); for (size_t i = 0; i < ITERATIONS; ++i) { - RAW_PACKET_OLD p1; + RawPacketOld p1; STG::RawPacket p2; STG::RawPacket p3;