Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wireguard-go
/ functions
Functions
712 in github.com/WireGuard/wireguard-go
⨍
Functions
712
◇
Types & classes
136
↓ 1 callers
Method
routineRouteListener
(tunIfindex int)
tun/tun_darwin.go:31
↓ 1 callers
Method
routineRouteListener
(tunIfindex int)
tun/tun_openbsd.go:39
↓ 1 callers
Method
routineRouteListener
(tunIfindex int)
tun/tun_freebsd.go:79
↓ 1 callers
Method
routineRouteListener
(_ conn.Bind, netlinkSock int, netlinkCancel *rwcancel.RWCancel)
device/sticky_linux.go:50
↓ 1 callers
Function
server
(l net.Listener, ch chan int)
ipc/namedpipe/namedpipe_test.go:225
↓ 1 callers
Method
setMTU
(n int)
tun/tun_linux.go:231
↓ 1 callers
Method
setMTU
(n int)
tun/tun_darwin.go:263
↓ 1 callers
Method
setMTU
(n int)
tun/tun_openbsd.go:264
↓ 1 callers
Method
setMTU
(n int)
tun/tun_freebsd.go:400
↓ 1 callers
Function
skipToAnswer
(p *dnsmessage.Parser, qtype dnsmessage.Type)
tun/netstack/tun.go:728
↓ 1 callers
Method
startRouteListener
(bind conn.Bind)
device/sticky_linux.go:27
↓ 1 callers
Function
tcpPacketsCanCoalesce
tcpPacketsCanCoalesce evaluates if pkt can be coalesced with the packet described by item. This function makes considerations that match the kernel's
tun/offload_linux.go:334
↓ 1 callers
Method
timersDataReceived
* Should be called after an authenticated data packet is received. */
device/timers.go:145
↓ 1 callers
Method
timersDataSent
* Should be called after an authenticated data packet is sent. */
device/timers.go:138
↓ 1 callers
Method
timersHandshakeInitiated
* Should be called after a handshake initiation message is sent. */
device/timers.go:170
↓ 1 callers
Method
timersInit
()
device/timers.go:201
↓ 1 callers
Method
timersStart
()
device/timers.go:209
↓ 1 callers
Method
timersStop
()
device/timers.go:215
↓ 1 callers
Function
tryDialPipe
tryDialPipe attempts to dial the specified pipe until cancellation or timeout.
ipc/namedpipe/namedpipe.go:117
↓ 1 callers
Method
unmarshal
(b []byte)
device/noise-protocol.go:185
↓ 1 callers
Method
upLocked
upLocked attempts to bring the device up and reports whether it succeeded. The caller must hold device.state.mu and is responsible for updating device
device/device.go:171
↓ 1 callers
Function
warning
()
main.go:39
Method
Addr
()
ipc/uapi_linux.go:49
Method
Addr
()
ipc/uapi_bsd.go:52
Method
Addr
()
ipc/uapi_windows.go:48
Method
Addr
()
ipc/namedpipe/namedpipe.go:483
Method
BatchSize
TODO: When all Binds handle IdealBatchSize, remove this dynamic function and rename the IdealBatchSize constant to BatchSize.
conn/bind_std.go:294
Method
BatchSize
TODO: When all Binds handle IdealBatchSize, remove this dynamic function and rename the IdealBatchSize constant to BatchSize.
conn/bind_windows.go:326
Method
BatchSize
()
conn/bindtest/bindtest.go:92
Method
BatchSize
()
tun/tun_linux.go:501
Method
BatchSize
()
tun/tun_darwin.go:306
Method
BatchSize
()
tun/tun_openbsd.go:331
Method
BatchSize
()
tun/tun_windows.go:140
Method
BatchSize
()
tun/tun_freebsd.go:433
Method
BatchSize
BatchSize returns the preferred/max number of packets that can be read or written in a single read/write call. BatchSize must not change over the life
tun/tun.go:52
Method
BatchSize
()
tun/netstack/tun.go:190
Method
BatchSize
()
tun/tuntest/tuntest.go:143
Method
BatchSize
()
device/device_test.go:433
Method
BatchSize
()
device/device_test.go:448
Function
BenchmarkChecksum
(b *testing.B)
tun/checksum_test.go:72
Function
BenchmarkLatency
(b *testing.B)
device/device_test.go:326
Function
BenchmarkSyncPool
(b *testing.B)
device/pools_test.go:119
Function
BenchmarkThroughput
(b *testing.B)
device/device_test.go:340
Function
BenchmarkTrieIPv4Peers100Addresses1000
(b *testing.B)
device/allowedips_test.go:70
Function
BenchmarkTrieIPv4Peers10Addresses10
(b *testing.B)
device/allowedips_test.go:74
Function
BenchmarkTrieIPv6Peers100Addresses1000
(b *testing.B)
device/allowedips_test.go:78
Function
BenchmarkTrieIPv6Peers10Addresses10
(b *testing.B)
device/allowedips_test.go:82
Function
BenchmarkUAPIGet
(b *testing.B)
device/device_test.go:384
Function
BenchmarkWaitPool
(b *testing.B)
device/pools_test.go:71
Function
BenchmarkWaitPoolEmpty
(b *testing.B)
device/pools_test.go:95
Method
BindSocketToInterface4
(interfaceIndex uint32, blackhole bool)
conn/conn.go:63
Method
BindSocketToInterface4
(interfaceIndex uint32, blackhole bool)
conn/bind_windows.go:517
Method
BindSocketToInterface4
(interfaceIndex uint32, blackhole bool)
conn/bind_windows.go:557
Method
BindSocketToInterface6
(interfaceIndex uint32, blackhole bool)
conn/conn.go:64
Method
BindSocketToInterface6
(interfaceIndex uint32, blackhole bool)
conn/bind_windows.go:537
Method
BindSocketToInterface6
(interfaceIndex uint32, blackhole bool)
conn/bind_windows.go:571
Method
Cancel
()
rwcancel/rwcancel_stub.go:9
Method
ClearSrc
()
conn/bind_std.go:100
Method
ClearSrc
()
conn/bind_windows.go:132
Method
ClearSrc
()
conn/bindtest/bindtest.go:58
Method
ClearSrc
()
device/endpoint_test.go:26
Method
Close
()
conn/bind_std.go:301
Method
Close
()
conn/bind_windows.go:306
Method
Close
()
conn/bindtest/bindtest.go:81
Method
Close
()
tun/tun_linux.go:482
Method
Close
()
tun/tun_windows.go:109
Method
Close
()
tun/netstack/tun.go:169
Method
Close
()
tun/netstack/tun.go:397
Method
Close
()
tun/tuntest/tuntest.go:152
Method
Close
()
rwcancel/rwcancel.go:114
Method
Close
()
device/device_test.go:429
Method
Close
()
device/device_test.go:447
Method
Close
()
device/bind_test.go:47
Method
Close
()
ipc/uapi_linux.go:36
Method
Close
()
ipc/uapi_bsd.go:39
Method
Close
()
ipc/uapi_windows.go:44
Method
Close
Close closes a file.
ipc/namedpipe/file.go:105
Method
Close
()
ipc/namedpipe/namedpipe.go:474
Method
CloseAndZero
()
conn/bind_windows.go:204
Method
CloseWrite
()
ipc/namedpipe/namedpipe_test.go:492
Method
CloseWrite
CloseWrite closes the write side of a message pipe in byte mode.
ipc/namedpipe/namedpipe.go:52
Function
CreateDummyEndpoint
()
device/endpoint_test.go:17
Function
CreateEventCompletionQueue
(queueSize uint32, event windows.Handle, notifyReset bool)
conn/winrio/rio_windows.go:155
Function
CreatePolledCompletionQueue
(queueSize uint32)
conn/winrio/rio_windows.go:184
Function
CreateTUN
(name string, mtu int)
tun/tun_darwin.go:85
Function
CreateTUN
(name string, mtu int)
tun/tun_openbsd.go:104
Function
CreateTUN
CreateTUN creates a Wintun interface with the given name. Should a Wintun interface with the same name exist, it is reused.
tun/tun_windows.go:62
Function
CreateTUN
(name string, mtu int)
tun/tun_freebsd.go:162
Function
CreateUnmonitoredTUNFromFD
CreateUnmonitoredTUNFromFD creates a Device from the provided file descriptor.
tun/tun_linux.go:637
Method
DialPing
(laddr, raddr *PingAddr)
tun/netstack/tun.go:370
Method
DisableSomeRoamingForBrokenMobileSemantics
DisableSomeRoamingForBrokenMobileSemantics should ideally be called before peers are created, though it will try to deal with it, and race maybe, if c
device/mobilequirks.go:10
Function
DiscardLogf
Function for use in Logger for discarding logged lines.
device/logger.go:31
Method
DstIP
()
conn/bind_std.go:107
Method
DstIP
()
conn/bind_windows.go:134
Method
DstIP
()
conn/bindtest/bindtest.go:66
Method
DstToBytes
See control_default,linux, etc for implementations of SrcIP and SrcIfidx.
conn/bind_std.go:113
Method
DstToBytes
()
conn/bind_windows.go:148
Method
DstToBytes
()
conn/bindtest/bindtest.go:64
Method
DstToBytes
()
device/endpoint_test.go:36
Method
DstToString
()
conn/bind_std.go:118
← previous
next →
401–500 of 712, ranked by callers