diff options
Diffstat (limited to 'src/afpacket_capture.cpp')
| -rw-r--r-- | src/afpacket_capture.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afpacket_capture.cpp b/src/afpacket_capture.cpp index 877bc88..0b5696f 100644 --- a/src/afpacket_capture.cpp +++ b/src/afpacket_capture.cpp @@ -36,8 +36,8 @@ #include <cstring> #include <span> -#include "wireframe/privileges.hpp" -#include "wireframe/summarize.hpp" +#include "packeteer/privileges.hpp" +#include "packeteer/summarize.hpp" namespace { @@ -130,8 +130,8 @@ int main(int argc, char** argv) { // Everything CAP_NET_RAW was needed for is done: socket created, // ring mapped, bound to the interface. Same drop-after-open - // principle as CaptureSession (wireframe/privileges.hpp). - if (auto err = wireframe::drop_privileges_if_root()) { + // principle as CaptureSession (packeteer/privileges.hpp). + if (auto err = packeteer::drop_privileges_if_root()) { std::fprintf(stderr, "failed to drop privileges: %s\n", err->c_str()); munmap(ring, ring_size); close(sock); @@ -171,7 +171,7 @@ int main(int argc, char** argv) { reinterpret_cast<const unsigned char*>(header) + header->tp_mac; std::span<const unsigned char> bytes(packet_start, header->tp_snaplen); - std::printf("%s\n", wireframe::summarize_packet(bytes, DLT_EN10MB).c_str()); + std::printf("%s\n", packeteer::summarize_packet(bytes, DLT_EN10MB).c_str()); std::fflush(stdout); // Hand the slot back to the kernel so it can reuse it for a |