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

Function encodeSockaddr

internal/wglinux/configure_linux.go:215–247  ·  view source on GitHub ↗

encodeSockaddr returns a function which encodes a net.UDPAddr as raw sockaddr_in or sockaddr_in6 bytes.

(endpoint net.UDPAddr)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

encodePeerFunction · 0.85

Calls 4

isValidIPFunction · 0.85
isIPv6Function · 0.85
sockaddrPortFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected