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

Method isUp

polyamide/device/device.go:128–130  ·  view source on GitHub ↗

isUp reports whether the device is up (or is attempting to come up). See device.state.state comments for how to interpret this value.

()

Source from the content-addressed store, hash-verified

126// isUp reports whether the device is up (or is attempting to come up).
127// See device.state.state comments for how to interpret this value.
128func (device *Device) isUp() bool {
129 return device.deviceState() == deviceStateUp
130}
131
132// Must hold device.peers.Lock()
133func removePeerLocked(device *Device, peer *Peer, key NoisePublicKey) {

Callers 6

BindSetMarkMethod · 0.95
BindUpdateMethod · 0.95
handlePostConfigMethod · 0.80
timersActiveMethod · 0.80
SendStagedPacketsMethod · 0.80

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls 1

deviceStateMethod · 0.95

Tested by

no test coverage detected