Documentation
¶
Index ¶
- Constants
- func WithCreatingNIC(nicID tcpip.NICID, ep stack.LinkEndpoint) option.Option
- func WithPromiscuousMode(nicID tcpip.NICID, v bool) option.Option
- func WithRouteTable(nicID tcpip.NICID) option.Option
- func WithSpoofing(nicID tcpip.NICID, v bool) option.Option
- func WithTCPHandler(handle func(adapter.TCPConn)) option.Option
- func WithUDPHandler(handle func(adapter.UDPConn)) option.Option
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 ¶
withCreatingNIC creates NIC for stack.
func WithPromiscuousMode ¶
withPromiscuousMode sets promiscuous mode in the given NICs.
func WithSpoofing ¶
withSpoofing sets address spoofing in the given NICs, allowing endpoints to bind to any address in the NIC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.