From b565d7d9c47ca1ec5af0effd828431ee96027d60 Mon Sep 17 00:00:00 2001 From: srdusr <99972264+srdusr@users.noreply.github.com> Date: Mon, 27 May 2024 22:00:00 +0200 Subject: 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. --- tests/test_filter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_filter.cpp') 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 #include -#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()); } -- cgit v1.2.3