llarp::vpn::LinuxInterface
Inherits from llarp::vpn::NetworkInterface, llarp::vpn::I_Packet_IO
Public Functions
| Name | |
|---|---|
| LinuxInterface(InterfaceInfo info) | |
| ~LinuxInterface() override =default | |
| virtual int | PollFD() const override get pollable fd for reading |
| virtual net::IPPacket | ReadNextPacket() override read next ip packet, return an empty packet if there are none ready. |
| virtual bool | WritePacket(net::IPPacket pkt) override write a packet to the interface returns false if we dropped it |
Additional inherited members
Public Functions inherited from llarp::vpn::NetworkInterface
| Name | |
|---|---|
| NetworkInterface(InterfaceInfo info) | |
| NetworkInterface(const NetworkInterface & ) =delete | |
| NetworkInterface(NetworkInterface && ) =delete | |
| ~NetworkInterface() override =default | |
| const InterfaceInfo & | Info() const |
| virtual void | MaybeWakeUpperLayers() const idempotently wake up the upper layers as needed (platform dependant) |
Protected Attributes inherited from llarp::vpn::NetworkInterface
| Name | |
|---|---|
| InterfaceInfo | m_Info |
Public Functions inherited from llarp::vpn::I_Packet_IO
| Name | |
|---|---|
| virtual | ~I_Packet_IO() =default |
| virtual void | Start() start any platform specific operations before running |
| virtual void | Stop() stop operation and tear down anything that Start() set up. |
Public Attributes inherited from llarp::vpn::I_Packet_IO
| Name | |
|---|---|
| std::function< void()> | on_stop |
Public Functions Documentation
function LinuxInterface
inline LinuxInterface(
InterfaceInfo info
)
function ~LinuxInterface
~LinuxInterface() override =default
function PollFD
inline virtual int PollFD() const override
get pollable fd for reading
Reimplements: llarp::vpn::I_Packet_IO::PollFD
function ReadNextPacket
inline virtual net::IPPacket ReadNextPacket() override
read next ip packet, return an empty packet if there are none ready.
Reimplements: llarp::vpn::I_Packet_IO::ReadNextPacket
function WritePacket
inline virtual bool WritePacket(
net::IPPacket pkt
) override
write a packet to the interface returns false if we dropped it
Reimplements: llarp::vpn::I_Packet_IO::WritePacket
Updated on 2026-01-10 at 22:49:45 +0000