llarp::vpn::I_PacketInterceptor

Public Functions

Name
virtual ~I_PacketInterceptor() =default
virtual void start(PacketInterceptFunc_t f) =0
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 its origin
virtual void stop() =0
stop intercepting packets

Public Functions Documentation

function ~I_PacketInterceptor

virtual ~I_PacketInterceptor() =default

function start

virtual void start(
    PacketInterceptFunc_t f
) =0

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 its origin

function stop

virtual void stop() =0

stop intercepting packets


Updated on 2026-01-10 at 22:49:45 +0000