MCPcopy Create free account
hub / github.com/encodeous/nylon / VirtualNet

Interface VirtualNet

core/sys_virtual.go:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14)
15
16type VirtualNet interface {
17 Bind(node state.NodeId) conn.Bind
18 Tun(node state.NodeId) tun.Device
19}
20
21func NewWireGuardDevice(n *Nylon) (dev *device.Device, tunDevice tun.Device, realItf string, err error) {
22 x := n.AuxConfig["vnet"]

Callers 9

OpenMethod · 0.65
createNetlinkSocketFunction · 0.65
DialPingAddrMethod · 0.65
createNetlinkRouteSocketFunction · 0.65
NewWireGuardDeviceFunction · 0.65
CleanupWireGuardDeviceFunction · 0.65
GetWgEndpointMethod · 0.65
NewWireGuardDeviceFunction · 0.65

Implementers 1

InMemoryNetworkintegration/harness.go

Calls

no outgoing calls

Tested by

no test coverage detected