Documentation
¶
Overview ¶
Package tuntest provides an in-memory tun.TUN implementation for tests. It lets a test inject IPv4 frames as if they arrived on the local interface and observe frames the tunnel writes back out, without a real tun device or root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeTUN ¶
type FakeTUN struct {
// contains filtered or unexported fields
}
FakeTUN is an in-memory tun.TUN. Frames passed to Inject are returned by Read; frames written to the device are made available through Observe.
Click to show internal directories.
Click to hide internal directories.