core

package
v0.0.0-...-0606b67 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// nicPromiscuousModeEnabled is the value used by stack to enable
	// or disable NIC's promiscuous mode.
	NicPromiscuousModeEnabled = true

	// nicSpoofingEnabled is the value used by stack to enable or disable
	// NIC's spoofing.
	NicSpoofingEnabled = true
)

Variables

This section is empty.

Functions

func WithCreatingNIC

func WithCreatingNIC(nicID tcpip.NICID, ep stack.LinkEndpoint) option.Option

withCreatingNIC creates NIC for stack.

func WithPromiscuousMode

func WithPromiscuousMode(nicID tcpip.NICID, v bool) option.Option

withPromiscuousMode sets promiscuous mode in the given NICs.

func WithRouteTable

func WithRouteTable(nicID tcpip.NICID) option.Option

func WithSpoofing

func WithSpoofing(nicID tcpip.NICID, v bool) option.Option

withSpoofing sets address spoofing in the given NICs, allowing endpoints to bind to any address in the NIC.

func WithTCPHandler

func WithTCPHandler(handle func(adapter.TCPConn)) option.Option

func WithUDPHandler

func WithUDPHandler(handle func(adapter.UDPConn)) option.Option

Types

This section is empty.

Directories

Path Synopsis
iobased
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
tun

Jump to

Keyboard shortcuts

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