MCPcopy Create free account
hub / github.com/WireGuard/wgctrl-go / parseDevice

Function parseDevice

internal/wglinux/parse_linux.go:21–50  ·  view source on GitHub ↗

parseDevice parses a Device from a slice of generic netlink messages, automatically merging peer lists from subsequent messages into the Device from the first message.

(msgs []genetlink.Message)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

DeviceMethod · 0.70

Calls 2

parseDeviceLoopFunction · 0.85
mergeDevicesFunction · 0.85

Tested by

no test coverage detected