fix speeling

pull/1969/head
Jason Rhinelander 2 years ago
parent 07231dd9e1
commit 7a0d4a905e
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -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"

@ -8,10 +8,10 @@ namespace llarp::vpn
using PacketSendFunc_t = std::function<void(std::vector<byte_t>)>;
using PacketInterceptFunc_t = std::function<void(std::vector<byte_t>, 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

@ -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(); });
}

@ -193,7 +193,7 @@ namespace llarp::win32
}
std::shared_ptr<llarp::vpn::I_Packet_IO>
make_intercepter(std::string filter_spec, std::function<void(void)> wake)
make_interceptor(std::string filter_spec, std::function<void(void)> wake)
{
return std::make_shared<wd::IO>(filter_spec, wake);
}

@ -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<llarp::vpn::I_Packet_IO>
make_intercepter(std::string filter_spec, std::function<void(void)> wakeup);
make_interceptor(std::string filter_spec, std::function<void(void)> wakeup);
} // namespace llarp::win32::WinDivert

Loading…
Cancel
Save