Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wgctrl-go
/ functions
Functions
219 in github.com/WireGuard/wgctrl-go
⨍
Functions
219
◇
Types & classes
79
↓ 1 callers
Method
SetIP
SetIP method sets family, address, and port to the given IPv4 or IPv6 address and port. All other members of the structure are set to zero.
internal/wgwindows/internal/ioctl/winipcfg_windows.go:38
↓ 1 callers
Function
buildBatches
buildBatches produces a batch of configs from a single config, if needed.
internal/wglinux/configure_linux.go:82
↓ 1 callers
Function
configAttrs
configAttrs creates the required encoded netlink attributes to configure the device specified by name using the non-nil fields in cfg.
internal/wglinux/configure_linux.go:20
↓ 1 callers
Method
configureDevice
configureDevice configures a device specified by its path.
internal/wguser/configure.go:15
↓ 1 callers
Method
curPeer
curPeer returns the current Peer being parsed so its fields can be populated.
internal/wguser/parse.go:139
↓ 1 callers
Function
durPtr
(d time.Duration)
internal/wguser/client_test.go:128
↓ 1 callers
Function
durPtr
(d time.Duration)
internal/wglinux/client_linux_test.go:344
↓ 1 callers
Function
encodePeer
encodePeer returns a function to encode PeerConfig nested attributes.
internal/wglinux/configure_linux.go:173
↓ 1 callers
Function
encodeSockaddr
encodeSockaddr returns a function which encodes a net.UDPAddr as raw sockaddr_in or sockaddr_in6 bytes.
internal/wglinux/configure_linux.go:215
↓ 1 callers
Function
generateIPs
(n int)
client_integration_test.go:440
↓ 1 callers
Function
ioctlIfgroupreq
ioctlIfgroupreq returns a function which performs the appropriate ioctl on fd to retrieve members of an interface group.
internal/wgopenbsd/client_openbsd.go:345
↓ 1 callers
Function
ioctlIfgroupreq
ioctlIfgroupreq returns a function which performs the appropriate ioctl on fd to retrieve members of an interface group.
internal/wgfreebsd/client_freebsd.go:231
↓ 1 callers
Function
ioctlWGDataIO
ioctlWGDataIO returns a function which performs the appropriate ioctl on fd to issue a WireGuard data I/O.
internal/wgopenbsd/client_openbsd.go:353
↓ 1 callers
Function
ioctlWGDataIO
ioctlWGDataIO returns a function which performs the appropriate ioctl on fd to issue a WireGuard data I/O.
internal/wgfreebsd/client_freebsd.go:239
↓ 1 callers
Function
ipsString
(ipns []net.IPNet)
client_integration_test.go:431
↓ 1 callers
Function
ipsString
(ipns []net.IPNet)
cmd/wgctrl/main.go:86
↓ 1 callers
Function
isWGKind
isWGKind parses netlink attributes to determine if a link is a WireGuard device, then populates ok with the result.
internal/wglinux/client_linux.go:252
↓ 1 callers
Function
marshal
(m List)
internal/wgfreebsd/internal/nv/encode.go:36
↓ 1 callers
Function
mergeDevices
mergeDevices merges Peer information from d into target. mergeDevices is used to deal with multiple incoming netlink messages for the same device.
internal/wglinux/parse_linux.go:293
↓ 1 callers
Function
newClients
newClients configures wginternal.Clients for Linux systems.
os_linux.go:13
↓ 1 callers
Function
pack
pack packs a WGInterfaceIO and trailing WGPeerIO/WGAIPIO values in a contiguous byte slice to emulate the kernel module output.
internal/wgopenbsd/client_openbsd_test.go:314
↓ 1 callers
Function
panicf
(format string, a ...interface{})
client_integration_test.go:462
↓ 1 callers
Function
panicf
(format string, a ...interface{})
wgtypes/types_test.go:119
↓ 1 callers
Function
panicf
(format string, a ...interface{})
internal/wgfreebsd/client_freebsd.go:255
↓ 1 callers
Function
parseAddr
parseAddr parses a net.IP from raw in_addr or in6_addr struct bytes.
internal/wglinux/parse_linux.go:194
↓ 1 callers
Method
parseAddr
parseAddr parses a UDP address from a string.
internal/wguser/parse.go:231
↓ 1 callers
Function
parseAllowedIP
parseAllowedIP unpacks a net.IPNet from a WGAIP structure.
internal/wgopenbsd/client_openbsd.go:286
↓ 1 callers
Function
parseAllowedIP
parseAllowedIP unpacks a net.IPNet from a WGAIP structure.
internal/wgfreebsd/client_freebsd.go:325
↓ 1 callers
Function
parseAllowedIPs
parseAllowedIPs parses a slice of net.IPNet from a netlink attribute payload.
internal/wglinux/parse_linux.go:133
↓ 1 callers
Method
parseCIDR
parseInt parses an address CIDR from a string.
internal/wguser/parse.go:246
↓ 1 callers
Function
parseDevice
parseDevice unpacks a Device from ifio, along with its associated peers and their allowed IPs.
internal/wgopenbsd/client_openbsd.go:162
↓ 1 callers
Function
parseDevice
parseDevice parses a Device and its Peers from an io.Reader.
internal/wguser/parse.go:48
↓ 1 callers
Function
parseDevice
parseDevice decodes the device from a FreeBSD name-value list (nvlist)
internal/wgfreebsd/client_freebsd.go:422
↓ 1 callers
Function
parseDevice
parseDevice parses a Device from a slice of generic netlink messages, automatically merging peer lists from subsequent messages into the Device from t
internal/wglinux/parse_linux.go:21
↓ 1 callers
Function
parseDeviceLoop
parseDeviceLoop parses a Device from a single generic netlink message.
internal/wglinux/parse_linux.go:53
↓ 1 callers
Function
parseEndpoint
parseEndpoint parses a peer endpoint from a wgh.WGIP structure.
internal/wgopenbsd/client_openbsd.go:305
↓ 1 callers
Function
parseEndpoint
parseEndpoint converts a struct sockaddr to a Go net.UDPAddr
internal/wgfreebsd/client_freebsd.go:271
↓ 1 callers
Function
parsePeer
parsePeer unpacks a wgtypes.Peer from a WGPeerIO structure.
internal/wgopenbsd/client_openbsd.go:249
↓ 1 callers
Function
parsePeer
parsePeer unpacks a wgtypes.Peer from a name-value list (nvlist).
internal/wgfreebsd/client_freebsd.go:376
↓ 1 callers
Function
parsePeer
parseAllowedIPs parses a wgtypes.Peer from a netlink attribute payload.
internal/wglinux/parse_linux.go:103
↓ 1 callers
Function
parseSockaddr
parseSockaddr parses a *net.UDPAddr from raw sockaddr_in or sockaddr_in6 bytes.
internal/wglinux/parse_linux.go:209
↓ 1 callers
Function
parseTimestamp
parseTimestamp parses a binary timestamp to a Go time.Time
internal/wgfreebsd/client_freebsd.go:359
↓ 1 callers
Method
peerParse
peerParse parses a key/value field into the current Peer.
internal/wguser/parse.go:144
↓ 1 callers
Function
printDevice
(d *wgtypes.Device)
cmd/wgctrl/main.go:49
↓ 1 callers
Function
printPeer
(p wgtypes.Peer)
cmd/wgctrl/main.go:65
↓ 1 callers
Function
shouldBatch
shouldBatch determines if a configuration is sufficiently complex that it should be split into batches.
internal/wglinux/configure_linux.go:68
↓ 1 callers
Function
testFind
testFind produces a Client.find function for integration tests.
internal/wguser/conn_unix_test.go:54
↓ 1 callers
Function
testListen
testListen creates a userspace device listener for tests, returning the directory where it can be found and a function to clean up its state.
internal/wguser/conn_unix_test.go:62
↓ 1 callers
Function
unmarshal
(nvl *C.struct_nvlist, out List)
internal/wgfreebsd/internal/nv/decode.go:23
↓ 1 callers
Function
unparseAllowedIP
(aip net.IPNet)
internal/wgfreebsd/client_freebsd.go:343
↓ 1 callers
Function
unparseConfig
unparseDevice encodes the device configuration as a FreeBSD name-value list (nvlist).
internal/wgfreebsd/client_freebsd.go:501
↓ 1 callers
Function
unparseEndpoint
(ep net.UDPAddr)
internal/wgfreebsd/client_freebsd.go:302
↓ 1 callers
Function
unparsePeerConfig
unparsePeerConfig encodes a PeerConfig to a name-value list (nvlist).
internal/wgfreebsd/client_freebsd.go:462
↓ 1 callers
Function
writeConfig
writeConfig writes textual configuration to w as specified by cfg.
internal/wguser/configure.go:53
Method
Close
()
client_test.go:234
Method
Close
Close implements wginternal.Client.
internal/wgwindows/client_windows.go:136
Method
ConfigureDevice
(name string, cfg wgtypes.Config)
client_test.go:240
Method
ConfigureDevice
ConfigureDevice implements wginternal.Client.
internal/wgopenbsd/client_openbsd.go:225
Method
ConfigureDevice
ConfigureDevice implements wginternal.Client.
internal/wguser/client.go:75
Method
ConfigureDevice
ConfigureDevice implements wginternal.Client.
internal/wgwindows/client_windows.go:232
Method
ConfigureDevice
ConfigureDevice implements wginternal.Client.
internal/wgfreebsd/client_freebsd.go:168
Method
ConfigureDevice
ConfigureDevice implements wginternal.Client.
internal/wglinux/client_linux.go:128
Method
Device
(name string)
client_test.go:236
Method
Device
Device implements wginternal.Client.
internal/wguser/client.go:57
Method
Devices
()
client_test.go:235
Method
Devices
Devices implements wginternal.Client.
internal/wguser/client.go:37
Method
Devices
Devices implements wginternal.Client.
internal/wgwindows/client_windows.go:114
Method
Devices
Devices implements wginternal.Client.
internal/wgfreebsd/client_freebsd.go:69
Method
Devices
Devices implements wginternal.Client.
internal/wglinux/client_linux.go:78
Method
String
String returns the string representation of a DeviceType.
wgtypes/types.go:27
Function
TestBadKeys
(t *testing.T)
wgtypes/types_test.go:55
Function
TestClientClose
(t *testing.T)
client_test.go:23
Function
TestClientConfigureDevice
(t *testing.T)
client_test.go:152
Function
TestClientConfigureDeviceError
(t *testing.T)
internal/wguser/configure_test.go:42
Function
TestClientConfigureDeviceOK
(t *testing.T)
internal/wguser/configure_test.go:82
Function
TestClientDevice
(t *testing.T)
client_test.go:69
Function
TestClientDevice
(t *testing.T)
internal/wguser/client_test.go:18
Function
TestClientDeviceBasic
(t *testing.T)
internal/wgopenbsd/client_openbsd_test.go:108
Function
TestClientDeviceNotExist
(t *testing.T)
internal/wgopenbsd/client_openbsd_test.go:265
Function
TestClientDeviceWrongMemorySize
(t *testing.T)
internal/wgopenbsd/client_openbsd_test.go:295
Function
TestClientDevices
(t *testing.T)
client_test.go:46
Function
TestClientDevices
(t *testing.T)
internal/wgopenbsd/client_openbsd_test.go:21
Function
TestClientDevices
(t *testing.T)
internal/wguser/parse_test.go:44
Function
TestIntegrationClient
(t *testing.T)
client_integration_test.go:22
Function
TestIntegrationClientIsNotExist
(t *testing.T)
client_integration_test.go:93
Function
TestKeyExchange
(t *testing.T)
wgtypes/types_test.go:36
Function
TestLinuxClientConfigureDevice
(t *testing.T)
internal/wglinux/configure_linux_test.go:22
Function
TestLinuxClientConfigureDeviceLargePeerIPChunks
(t *testing.T)
internal/wglinux/configure_linux_test.go:275
Function
TestLinuxClientDevicesEmpty
(t *testing.T)
internal/wglinux/client_linux_test.go:31
Function
TestLinuxClientDevicesError
(t *testing.T)
internal/wglinux/parse_linux_test.go:23
Function
TestLinuxClientDevicesOK
(t *testing.T)
internal/wglinux/parse_linux_test.go:99
Function
TestLinuxClientIsNotExist
(t *testing.T)
internal/wglinux/client_linux_test.go:65
Function
TestLinuxClientIsPermission
(t *testing.T)
internal/wglinux/client_linux_test.go:130
Function
TestMarshaling
(t *testing.T)
internal/wgfreebsd/internal/nv/nvlist_test.go:14
Function
TestPreparedKeys
(t *testing.T)
wgtypes/types_test.go:13
Function
TestUNIX_findUNIXSockets
(t *testing.T)
internal/wguser/conn_unix_test.go:15
Function
Test_initClientNotExist
(t *testing.T)
internal/wglinux/client_linux_test.go:155
Function
Test_parseRTNLInterfaces
(t *testing.T)
internal/wglinux/client_linux_test.go:170
Function
Test_parseTimespec
(t *testing.T)
internal/wglinux/parse_linux_test.go:494
Function
Test_timespec32MemoryLayout
(t *testing.T)
internal/wglinux/parse_linux_test.go:570
← previous
next →
101–200 of 219, ranked by callers