srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_filter.cpp
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2024-05-27 22:00:00 +0200
committersrdusr <[email protected]>2024-05-27 22:00:00 +0200
commitb565d7d9c47ca1ec5af0effd828431ee96027d60 (patch)
treefbe0c9c897e78f507443507354d5b1d8fb851099 /tests/test_filter.cpp
parentfbedc55d5aa861c381701c9f913b34ee7ab57ec4 (diff)
downloadpacketeer-b565d7d9c47ca1ec5af0effd828431ee96027d60.tar.gz
packeteer-b565d7d9c47ca1ec5af0effd828431ee96027d60.zip
Rename project from wireframe to packeteer
Decided on the name after weighing alternatives in NAMES.md: packeteer (packet + -eer, "one who wields packets") fit the project's actual scope better than the wire/frame pun once it had grown into full L2-L7 dissection, reassembly, checksums, privilege dropping, and dual TUI/GUI frontends. No existing packet-capture project uses the name; the one real-world collision (Packeteer, Inc., a networking company acquired and folded into Blue Coat/Symantec by 2008) is long defunct. Mechanical rename throughout: CMake project/target names, the wireframe:: namespace and include/wireframe/ directory (git mv, history preserved), every #include path, CLI/GUI help text, and the project's own working directory. NAMES.md rewritten to record the decision instead of leaving stale self-referential etymology behind from the blind rename pass. Verified after every step: full rebuild (all four targets, no warnings) and the full test suite (128/128 cases, 366/366 assertions) both from a fresh reconfigure and again after the directory move.
Diffstat (limited to 'tests/test_filter.cpp')
-rw-r--r--tests/test_filter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_filter.cpp b/tests/test_filter.cpp
index 1dd9373..9a0ca69 100644
--- a/tests/test_filter.cpp
+++ b/tests/test_filter.cpp
@@ -1,7 +1,7 @@
#include <doctest/doctest.h>
#include <pcap.h>
-#include "wireframe/filter.hpp"
+#include "packeteer/filter.hpp"
namespace {
@@ -23,7 +23,7 @@ TEST_CASE("compile_filter accepts a valid tcpdump-style expression") {
REQUIRE(dead.handle != nullptr);
bpf_program prog{};
- auto err = wireframe::compile_filter(dead.handle, "tcp port 80", &prog);
+ auto err = packeteer::compile_filter(dead.handle, "tcp port 80", &prog);
CHECK_FALSE(err.has_value());
pcap_freecode(&prog);
}
@@ -33,7 +33,7 @@ TEST_CASE("compile_filter accepts a compound expression") {
REQUIRE(dead.handle != nullptr);
bpf_program prog{};
- auto err = wireframe::compile_filter(dead.handle, "host 10.0.0.1 and not icmp", &prog);
+ auto err = packeteer::compile_filter(dead.handle, "host 10.0.0.1 and not icmp", &prog);
CHECK_FALSE(err.has_value());
pcap_freecode(&prog);
}
@@ -43,7 +43,7 @@ TEST_CASE("compile_filter rejects invalid syntax with an error message") {
REQUIRE(dead.handle != nullptr);
bpf_program prog{};
- auto err = wireframe::compile_filter(dead.handle, "this is not a valid filter !!", &prog);
+ auto err = packeteer::compile_filter(dead.handle, "this is not a valid filter !!", &prog);
REQUIRE(err.has_value());
CHECK_FALSE(err->empty());
}
@@ -53,7 +53,7 @@ TEST_CASE("compile_filter works against DLT_RAW, not just Ethernet") {
REQUIRE(dead.handle != nullptr);
bpf_program prog{};
- auto err = wireframe::compile_filter(dead.handle, "udp", &prog);
+ auto err = packeteer::compile_filter(dead.handle, "udp", &prog);
CHECK_FALSE(err.has_value());
pcap_freecode(&prog);
}
@@ -64,6 +64,6 @@ TEST_CASE("compile_filter rejects an Ethernet-only expression against DLT_RAW")
bpf_program prog{};
// "ether" primitives are meaningless without a link-layer header.
- auto err = wireframe::compile_filter(dead.handle, "ether host 00:11:22:33:44:55", &prog);
+ auto err = packeteer::compile_filter(dead.handle, "ether host 00:11:22:33:44:55", &prog);
CHECK(err.has_value());
}