etr

package
v0.0.0-...-e596c9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Status and metadata of different ETR threads currently running

Functions

func HandleDeviceNetworkChange

func HandleDeviceNetworkChange(deviceNetworkStatus types.DeviceNetworkStatus)

func HandleEtrEphPort

func HandleEtrEphPort(ephPort int)

Handle ETR's ephemeral port message from lispers.net

func InitETRStatus

func InitETRStatus(debugFlag bool)

func ProcessCapturedPkts

func ProcessCapturedPkts(fd4 int, fd6 int,
	handle *afpacket.TPacket,
	killChannel <-chan bool, ackChannel chan<- bool)

func ProcessCapturedPkts(fd6 int, ring *pfring.Ring) {

func ProcessETRPkts

func ProcessETRPkts(fd4 int, fd6 int, serverConn *net.UDPConn) bool

func SetupEtrPktCapture

func SetupEtrPktCapture(ephemeralPort int, upLink string) *afpacket.TPacket
func SetupEtrPktCapture(ephemeralPort int, upLink string) *pfring.Ring {
	ring, err := pfring.NewRing(upLink, 65536, pfring.FlagPromisc)

func StartEtrNat

func StartEtrNat(ephPort int,
	upLink string,
	killChannel <-chan bool, ackChannel chan<- bool) (*afpacket.TPacket, int, int)

func StartEtrNat(ephPort int, upLink string) (*pfring.Ring, int) {

func StartEtrNonNat

func StartEtrNonNat()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL