Documentation ¶
Index ¶
- Variables
- func HandleDeviceNetworkChange(deviceNetworkStatus types.DeviceNetworkStatus)
- func HandleEtrEphPort(ephPort int)
- func InitETRStatus(debugFlag bool)
- func ProcessCapturedPkts(fd4 int, fd6 int, handle *afpacket.TPacket, killChannel <-chan bool, ...)
- func ProcessETRPkts(fd4 int, fd6 int, serverConn *net.UDPConn) bool
- func SetupEtrPktCapture(ephemeralPort int, upLink string) *afpacket.TPacket
- func StartEtrNat(ephPort int, upLink string, killChannel <-chan bool, ackChannel chan<- bool) (*afpacket.TPacket, int, int)
- func StartEtrNonNat()
Constants ¶
This section is empty.
Variables ¶
View Source
var EtrTable dptypes.EtrTable
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 SetupEtrPktCapture ¶
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.
Click to show internal directories.
Click to hide internal directories.