llarp::net::TrafficPolicy
information about what traffic an endpoint will carry
#include <traffic_policy.hpp>
Public Functions
| Name | |
|---|---|
| bool | BEncode(llarp_buffer_t * buf) const |
| bool | BDecode(llarp_buffer_t * buf) |
| bool | AllowsTraffic(const IPPacket & pkt) const returns true if we allow the traffic in this ip packet returns false otherwise |
Public Attributes
| Name | |
|---|---|
| std::set< IPRange > | ranges ranges that are explicitly allowed |
| std::set< ProtocolInfo > | protocols protocols that are explicity allowed |
Public Functions Documentation
function BEncode
bool BEncode(
llarp_buffer_t * buf
) const
function BDecode
bool BDecode(
llarp_buffer_t * buf
)
function AllowsTraffic
bool AllowsTraffic(
const IPPacket & pkt
) const
returns true if we allow the traffic in this ip packet returns false otherwise
Public Attributes Documentation
variable ranges
std::set< IPRange > ranges;
ranges that are explicitly allowed
variable protocols
std::set< ProtocolInfo > protocols;
protocols that are explicity allowed
Updated on 2026-01-10 at 22:49:45 +0000