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
↓ 4 callers
Method
DialUDPAddrPort
(laddr, raddr netip.AddrPort)
tun/netstack/tun.go:247
↓ 4 callers
Method
Flush
()
ipc/namedpipe/file.go:240
↓ 4 callers
Method
GetMessageBuffer
()
device/pools.go:97
↓ 4 callers
Method
IsZero
()
device/noise-types.go:67
↓ 4 callers
Method
Name
()
tun/tun_linux.go:302
↓ 4 callers
Method
SendStagedPackets
()
device/send.go:337
↓ 4 callers
Method
SetEndpointFromPacket
(endpoint conn.Endpoint)
device/peer.go:279
↓ 4 callers
Method
Swap
(i, j int)
device/allowedips_rand_test.go:39
↓ 4 callers
Function
benchmarkTrie
(peerNumber, addressNumber, _ int, b *testing.B)
device/allowedips_test.go:42
↓ 4 callers
Function
checkAlignment
(t *testing.T, name string, offset uintptr)
tun/alignment_windows_test.go:14
↓ 4 callers
Method
deviceState
deviceState returns device.state.state as a deviceState See those docs for how to interpret this value.
device/device.go:112
↓ 4 callers
Function
getConnection
(cfg *namedpipe.ListenConfig)
ipc/namedpipe/namedpipe_test.go:171
↓ 4 callers
Function
loadExactHex
(dst []byte, src string)
device/noise-types.go:27
↓ 4 callers
Method
markEndpointSrcForClearing
()
device/peer.go:289
↓ 4 callers
Method
mixKey
(data []byte)
device/noise-protocol.go:259
↓ 4 callers
Function
newTCPGROTable
()
tun/offload_linux.go:74
↓ 4 callers
Function
newUDPGROTable
()
tun/offload_linux.go:182
↓ 4 callers
Function
socketCloexec
(family, sotype, proto int)
tun/tun_darwin.go:310
↓ 4 callers
Method
zeroizePointers
()
device/allowedips.go:80
↓ 3 callers
Method
Accept
()
ipc/uapi_bsd.go:27
↓ 3 callers
Method
BindUpdate
()
device/device.go:471
↓ 3 callers
Method
Cancel
()
rwcancel/rwcancel.go:109
↓ 3 callers
Method
CloseWrite
()
ipc/namedpipe/namedpipe_test.go:352
↓ 3 callers
Function
CreateNetTUN
(localAddresses, dnsServers []netip.Addr, mtu int)
tun/netstack/tun.go:55
↓ 3 callers
Method
Current
()
device/keypair.go:42
↓ 3 callers
Method
DialPingAddr
(laddr, raddr netip.Addr)
tun/netstack/tun.go:315
↓ 3 callers
Method
File
File returns the file descriptor of the device.
tun/tun.go:22
↓ 3 callers
Method
GetOutboundElementsContainer
()
device/pools.go:83
↓ 3 callers
Function
HMAC2
(sum *[blake2s.Size]byte, key, in0, in1 []byte)
device/noise-helpers.go:33
↓ 3 callers
Method
InsertReceiveRequest
()
conn/bind_windows.go:335
↓ 3 callers
Method
IpcGetOperation
IpcGetOperation implements the WireGuard configuration protocol "get" operation. See https://www.wireguard.com/xplatform/#configuration-protocol for d
device/uapi.go:51
↓ 3 callers
Method
IsPending
()
device/timers.go:69
↓ 3 callers
Function
KDF3
(t0, t1, t2 *[blake2s.Size]byte, key, input []byte)
device/noise-helpers.go:56
↓ 3 callers
Method
Name
Name returns the current name of the Device.
tun/tun.go:41
↓ 3 callers
Method
NewOutboundElement
()
device/send.go:60
↓ 3 callers
Method
NewPeer
(pk NoisePublicKey)
device/peer.go:61
↓ 3 callers
Function
NewRWCancel
(fd int)
rwcancel/rwcancel.go:26
↓ 3 callers
Function
NewStdNetBind
()
conn/bind_std.go:51
↓ 3 callers
Method
PutInboundElement
(elem *QueueInboundElement)
device/pools.go:109
↓ 3 callers
Method
PutInboundElementsContainer
(c *QueueInboundElementsContainer)
device/pools.go:75
↓ 3 callers
Method
ReadyRead
()
rwcancel/rwcancel.go:45
↓ 3 callers
Method
SendBuffers
(buffers [][]byte)
device/peer.go:116
↓ 3 callers
Method
SetReadDeadline
(deadline time.Time)
ipc/namedpipe/file.go:232
↓ 3 callers
Method
addToPeerEntries
()
device/allowedips.go:58
↓ 3 callers
Method
asyncIo
asyncIo processes the return value from ReadFile or WriteFile, blocking until the operation has actually completed.
ipc/namedpipe/file.go:141
↓ 3 callers
Function
checksum
Checksum is the "internet checksum" from https://tools.ietf.org/html/rfc1071.
tun/tuntest/tuntest.go:29
↓ 3 callers
Method
clamp
()
device/noise-helpers.go:80
↓ 3 callers
Function
handleGRO
handleGRO evaluates bufs for GRO, and writes the indices of the resulting packets into toWrite. toWrite, tcpTable, and udpTable should initially be em
tun/offload_linux.go:865
↓ 3 callers
Method
handlePostConfig
()
device/uapi.go:258
↓ 3 callers
Method
insert
insert an item in the table for the provided packet and packet metadata.
tun/offload_linux.go:112
↓ 3 callers
Method
insert
(ip []byte, cidr uint8, peer *Peer)
device/allowedips.go:101
↓ 3 callers
Function
isZero
(val []byte)
device/noise-helpers.go:65
↓ 3 callers
Function
listenConfig
listenConfig returns a net.ListenConfig that applies the controlFns to the socket prior to bind. This is used to apply socket buffer sizing and packet
conn/controlfns.go:32
↓ 3 callers
Method
lookup
(ip []byte)
device/allowedips.go:191
↓ 3 callers
Method
marshal
(b []byte)
device/noise-protocol.go:169
↓ 3 callers
Method
maskSelf
()
device/allowedips.go:73
↓ 3 callers
Function
nanotime
go:linkname nanotime runtime.nanotime
tun/tun_windows.go:58
↓ 3 callers
Method
nodePlacement
(ip []byte, cidr uint8)
device/allowedips.go:88
↓ 3 callers
Method
prepareIo
prepareIo prepares for a new IO operation. The caller must call f.wg.Done() when the IO is finished, prior to Close() returning.
ipc/namedpipe/file.go:112
↓ 3 callers
Function
printUsage
()
main.go:35
↓ 3 callers
Function
removePeerLocked
Must hold device.peers.Lock()
device/device.go:129
↓ 3 callers
Function
setSrc
(ep *StdNetEndpoint, addr netip.Addr, ifidx int32)
conn/sticky_linux_test.go:21
↓ 3 callers
Function
sockPath
(iface string)
ipc/uapi_unix.go:31
↓ 3 callers
Function
stamp
(t time.Time)
tai64n/tai64n.go:22
↓ 3 callers
Function
tcp6PacketMutateIPFields
(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32, ipFn func(*header.IPv6Fi
tun/offload_linux_test.go:133
↓ 3 callers
Method
timersAnyAuthenticatedPacketReceived
* Should be called after any type of authenticated packet is received -- keepalive, data, or handshake. */
device/timers.go:163
↓ 3 callers
Method
timersAnyAuthenticatedPacketSent
* Should be called after any type of authenticated packet is sent -- keepalive, data, or handshake. */
device/timers.go:156
↓ 3 callers
Function
udp6PacketMutateIPFields
(srcIPPort, dstIPPort netip.AddrPort, payloadLen int, ipFn func(*header.IPv6Fields))
tun/offload_linux_test.go:64
↓ 2 callers
Method
Allow
(ip netip.Addr)
ratelimiter/ratelimiter.go:99
↓ 2 callers
Method
Clear
()
device/noise-protocol.go:246
↓ 2 callers
Method
ClearSrc
()
conn/conn.go:79
↓ 2 callers
Function
CloseCompletionQueue
(cq Cq)
conn/winrio/rio_windows.go:151
↓ 2 callers
Method
ConsumeMessageInitiation
(msg *MessageInitiation)
device/noise-protocol.go:340
↓ 2 callers
Method
ConsumeMessageResponse
(msg *MessageResponse)
device/noise-protocol.go:512
↓ 2 callers
Method
ConsumeReply
(msg *MessageCookieReply)
device/cookie.go:194
↓ 2 callers
Function
CreateIOCPCompletionQueue
(queueSize uint32, iocp windows.Handle, key uintptr, overlapped *windows.Overlapped)
conn/winrio/rio_windows.go:170
↓ 2 callers
Method
CreateMessageInitiation
(peer *Peer)
device/noise-protocol.go:270
↓ 2 callers
Method
CreateMessageResponse
(peer *Peer)
device/noise-protocol.go:444
↓ 2 callers
Method
CreateReply
( msg []byte, recv uint32, src []byte, )
device/cookie.go:117
↓ 2 callers
Function
CreateRequestQueue
(socket windows.Handle, maxOutstandingReceive, maxReceiveDataBuffers, maxOutstandingSend, maxSendDataBuffers u
conn/winrio/rio_windows.go:192
↓ 2 callers
Function
CreateTUN
CreateTUN creates a Device with the provided name and MTU.
tun/tun_linux.go:551
↓ 2 callers
Function
CreateTUNFromFile
CreateTUNFromFile creates a Device from an os.File with the provided MTU.
tun/tun_linux.go:585
↓ 2 callers
Method
Dial
(network, address string)
tun/netstack/tun.go:1055
↓ 2 callers
Function
DialContext
DialContext calls DialConfig.DialContext using an empty configuration.
ipc/namedpipe/namedpipe.go:219
↓ 2 callers
Method
DialContext
DialContext attempts to connect to the specified named pipe by path.
ipc/namedpipe/namedpipe.go:163
↓ 2 callers
Method
DialTCPAddrPort
(addr netip.AddrPort)
tun/netstack/tun.go:221
↓ 2 callers
Method
DialUDP
(laddr, raddr *net.UDPAddr)
tun/netstack/tun.go:267
↓ 2 callers
Method
Down
()
device/device.go:213
↓ 2 callers
Method
DstIP
()
device/endpoint_test.go:43
↓ 2 callers
Method
DstToBytes
returns the destination address (ip:port)
conn/conn.go:82
↓ 2 callers
Method
Error
()
conn/bind_std.go:333
↓ 2 callers
Method
Fd
()
ipc/namedpipe/file.go:244
↓ 2 callers
Method
FlushStagedPackets
()
device/send.go:404
↓ 2 callers
Method
FromHex
(src string)
device/noise-types.go:63
↓ 2 callers
Method
Insert
(addr []byte, cidr uint8, peer *Peer)
device/allowedips_rand_test.go:43
↓ 2 callers
Method
IpcHandle
(socket net.Conn)
device/uapi.go:419
↓ 2 callers
Method
IpcSetOperation
IpcSetOperation implements the WireGuard configuration protocol "set" operation. See https://www.wireguard.com/xplatform/#configuration-protocol for d
device/uapi.go:140
↓ 2 callers
Function
KDF1
(t0 *[blake2s.Size]byte, key, input []byte)
device/noise-helpers.go:43
↓ 2 callers
Method
ListenTCP
(addr *net.TCPAddr)
tun/netstack/tun.go:239
↓ 2 callers
Method
ListenTCPAddrPort
(addr netip.AddrPort)
tun/netstack/tun.go:234
← previous
next →
101–200 of 712, ranked by callers