Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMTU = 1420
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelTUN ¶
type ChannelTUN struct { Inbound chan []byte // incoming packets, closed on TUN close Outbound chan []byte // outbound packets, blocks forever on TUN close // contains filtered or unexported fields }
func NewChannelTUN ¶
func NewChannelTUN() *ChannelTUN
func (*ChannelTUN) TUN ¶
func (c *ChannelTUN) TUN() tun.Device
Click to show internal directories.
Click to hide internal directories.