package
0.30.0
Repository: https://github.com/netbirdio/netbird.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Listen creates an IPv4 and IPv6 raw sockets, starts a reader and routing table routines.
NewIncomingSTUNFilter creates an instance of a IncomingSTUNFilter.

# Variables

ErrSharedSockStopped indicates that shared socket has been stopped.

# Structs

IncomingSTUNFilter implements BPFFilter and filters out anything but incoming STUN packets to a specified destination port.
SharedSocket is a net.PacketConn that initiates two raw sockets (ipv4 and ipv6) and listens to UDP packets filtered by BPF instructions (e.g., IncomingSTUNFilter that checks and sends only STUN packets to the listeners (ReadFrom)).

# Interfaces

BPFFilter is a generic filter that provides ipv4 and ipv6 BPF instructions.