Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Icmp4PacketPool = &sync.Pool{ New: func() interface{} { return &Icmp4Packet{} }, } )
View Source
var MTU int = 1500
Functions ¶
Types ¶
type Icmp4Packet ¶
func ResponseICMPv4Packet ¶
type TunHandler ¶
type TunHandler struct { WriteCh chan interface{} // contains filtered or unexported fields }
func New ¶
func New(dev io.ReadWriteCloser, mtu int, handler func([]byte, *packet.IPv4) error) *TunHandler
func (*TunHandler) Run ¶
func (th *TunHandler) Run()
Click to show internal directories.
Click to hide internal directories.