Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMTU ¶
func WithMTU(mtu uint16) func(*newParams)
WithMTU sets the MTU for the tunnel interface in the namespace.
func WithShimBin ¶
func WithShimBin(shimBin string) func(*newParams)
WithShimBin sets the path to the netns_shim binary. Used for testing - normal users do not need this.
Types ¶
type Link ¶
type Link struct { chanreader.Publisher // contains filtered or unexported fields }
Link implements link.Link for a local private network namespace
func New ¶
func New(ctx context.Context, addr net.IP, domain string, dnsServer string, mods ...func(*newParams)) (*Link, error)
New creates a new Linux network namespace based network stack
func (*Link) RunInNamespace ¶
func (*Link) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.