Documentation ¶
Overview ¶
Package bridge is responsible for bridging linux tuns over network connections.
Index ¶
Constants ¶
View Source
const (
// IfaceNameMaxLen is the maximum allowed length of tun interface names in bytes (not runes).
IfaceNameMaxLen = 16
)
Variables ¶
Functions ¶
func Connect ¶
Connect attaches to the linux tun named as in tunIfaceName and exchanges its packets over the given conn with another Connect instance. Any errors are returned. Packets transmitted over the conn are prepended with a uint16 indicating the full length of the following packet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.