From 7a0d4a905ef54caab31ba8d5b9033d69f6cbc316 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 13 Sep 2022 12:04:53 -0300 Subject: [PATCH] fix speeling --- docs/project-structure.md | 2 +- llarp/vpn/packet_intercept.hpp | 4 ++-- llarp/vpn/win32.hpp | 2 +- llarp/win32/windivert.cpp | 2 +- llarp/win32/windivert.hpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/project-structure.md b/docs/project-structure.md index 6415a69f9..7c06c70f8 100644 --- a/docs/project-structure.md +++ b/docs/project-structure.md @@ -27,7 +27,7 @@ this codebase is a bit large. this is a high level map of the current code struc * `/llarp/constants`: contains all compile time constants * `/llarp/crypto`: cryptography interface and implementation, includes various secure helpers * `/llarp/dht`: dht message structs, parsing, validation and handlers of dht related parts of the protocol -* `/llarp/dns`: dns subsytem, dns udp wire parsers, resolver, server, rewriter/intercepter, the works +* `/llarp/dns`: dns subsytem, dns udp wire parsers, resolver, server, rewriter/interceptor, the works * `/llarp/ev`: event loop interfaces and implementations * `/llarp/exit`: `.snode` endpoint "backend" * `/llarp/handlers`: packet endpoint "frontends" diff --git a/llarp/vpn/packet_intercept.hpp b/llarp/vpn/packet_intercept.hpp index 7150ae54a..eac310a24 100644 --- a/llarp/vpn/packet_intercept.hpp +++ b/llarp/vpn/packet_intercept.hpp @@ -8,10 +8,10 @@ namespace llarp::vpn using PacketSendFunc_t = std::function)>; using PacketInterceptFunc_t = std::function, PacketSendFunc_t)>; - class I_PacketIntercepter + class I_PacketInterceptor { public: - virtual ~I_PacketIntercepter() = default; + virtual ~I_PacketInterceptor() = default; /// start intercepting packets and call a callback for each one we get /// the callback passes in an ip packet and a function that we can use to send an ip packet to diff --git a/llarp/vpn/win32.hpp b/llarp/vpn/win32.hpp index 73b0da355..0fd9e0e8a 100644 --- a/llarp/vpn/win32.hpp +++ b/llarp/vpn/win32.hpp @@ -176,7 +176,7 @@ namespace llarp::win32 throw std::invalid_argument{ "cannot create packet io on explicitly specified interface, not currently supported on " "windows (yet)"}; - return WinDivert::make_intercepter( + return WinDivert::make_interceptor( "outbound and ( udp.DstPort == 53 or tcp.DstPort == 53 )", [router = _ctx->router] { router->TriggerPump(); }); } diff --git a/llarp/win32/windivert.cpp b/llarp/win32/windivert.cpp index 5507234b7..4e07eb265 100644 --- a/llarp/win32/windivert.cpp +++ b/llarp/win32/windivert.cpp @@ -193,7 +193,7 @@ namespace llarp::win32 } std::shared_ptr - make_intercepter(std::string filter_spec, std::function wake) + make_interceptor(std::string filter_spec, std::function wake) { return std::make_shared(filter_spec, wake); } diff --git a/llarp/win32/windivert.hpp b/llarp/win32/windivert.hpp index 4d1ae8821..60781bf33 100644 --- a/llarp/win32/windivert.hpp +++ b/llarp/win32/windivert.hpp @@ -10,12 +10,12 @@ namespace llarp::win32::WinDivert std::string format_ip(uint32_t ip); - /// create a packet intercepter that uses windivert. + /// create a packet interceptor that uses windivert. /// filter_spec describes the kind of traffic we wish to intercept. /// pass in a callable that wakes up the main event loop. /// we hide all implementation details from other compilation units to prevent issues with /// linkage that may arrise. std::shared_ptr - make_intercepter(std::string filter_spec, std::function wakeup); + make_interceptor(std::string filter_spec, std::function wakeup); } // namespace llarp::win32::WinDivert