MCPcopy Create free account

hub / github.com/WireGuard/wireguard-go / functions

Functions712 in github.com/WireGuard/wireguard-go

↓ 2 callersMethodLocalAddr
()
tun/netstack/tun.go:389
↓ 2 callersMethodLookup
(addr []byte)
device/allowedips_rand_test.go:60
↓ 2 callersMethodLookupContextHost
(ctx context.Context, host string)
tun/netstack/tun.go:813
↓ 2 callersMethodLookupPeer
(pk NoisePublicKey)
device/device.go:341
↓ 2 callersMethodMTU
MTU returns the MTU of the Device.
tun/tun.go:38
↓ 2 callersFunctionNewChannelTUN
()
tun/tuntest/tuntest.go:91
↓ 2 callersMethodNewIndexForHandshake
(peer *Peer, handshake *Handshake)
device/indextable.go:58
↓ 2 callersFunctionNotify
(cq Cq)
conn/winrio/rio_windows.go:248
↓ 2 callersFunctionPing
(dst, src netip.Addr)
tun/tuntest/tuntest.go:17
↓ 2 callersMethodPrettyName
()
conn/conn.go:92
↓ 2 callersMethodPush
()
conn/bind_windows.go:45
↓ 2 callersMethodReadBatch
([]ipv6.Message, int)
conn/bind_std.go:219
↓ 2 callersMethodReceive
(buf []byte, isOpen *atomic.Uint32)
conn/bind_windows.go:355
↓ 2 callersFunctionRegisterPointer
(ptr unsafe.Pointer, size uint32)
conn/winrio/rio_windows.go:224
↓ 2 callersMethodRemoveAllPeers
()
device/device.go:359
↓ 2 callersMethodRemoveByPeer
(peer *Peer)
device/allowedips_rand_test.go:70
↓ 2 callersMethodRemovePeer
(key NoisePublicKey)
device/device.go:348
↓ 2 callersMethodReturn
(count uint32)
conn/bind_windows.go:57
↓ 2 callersMethodSetMark
SetMark sets the mark for each packet sent through this Bind. This mark is passed to the kernel as the socket option SO_MARK.
conn/conn.go:46
↓ 2 callersMethodSetPrivateKey
(sk NoisePrivateKey)
device/device.go:229
↓ 2 callersMethodSetReadDeadline
(t time.Time)
tun/netstack/tun.go:473
↓ 2 callersMethodSetWriteDeadline
(deadline time.Time)
ipc/namedpipe/file.go:236
↓ 2 callersFunctionSocket
(af, typ, proto int32)
conn/winrio/rio_windows.go:147
↓ 2 callersMethodStagePackets
(elems *QueueOutboundElementsContainer)
device/send.go:318
↓ 2 callersMethodTUN
()
tun/tuntest/tuntest.go:103
↓ 2 callersFunctionUAPIListen
(name string, file *os.File)
ipc/uapi_linux.go:53
↓ 2 callersMethodValidateCounter
ValidateCounter checks if the counter should be accepted. Overlimit counters (>= limit) are always rejected.
replay/replay.go:37
↓ 2 callersMethodWriteTo
(p []byte, addr net.Addr)
tun/netstack/tun.go:407
↓ 2 callersMethodZeroAndFlushAll
()
device/peer.go:214
↓ 2 callersFunctionbindSocketToInterface4
(handle windows.Handle, interfaceIndex uint32)
conn/bind_windows.go:585
↓ 2 callersFunctionbindSocketToInterface6
(handle windows.Handle, interfaceIndex uint32)
conn/bind_windows.go:598
↓ 2 callersMethodchangeState
changeState attempts to change the device state to match want.
device/device.go:139
↓ 2 callersFunctioncheckResponse
(reqID uint16, reqQues dnsmessage.Question, respHdr dnsmessage.Header, respQues dnsmessage.Question)
tun/netstack/tun.go:586
↓ 2 callersMethodcleanup
()
ratelimiter/ratelimiter.go:84
↓ 2 callersMethodclearPointers
clearPointers clears elem fields that contain pointers. This makes the garbage collector's life easier and avoids accidentally keeping other objects a
device/send.go:72
↓ 2 callersMethodcloseAndZero
()
conn/bind_windows.go:214
↓ 2 callersFunctioncloseBindLocked
closeBindLocked closes the device's net.bind. The caller must hold the net mutex.
device/device.go:425
↓ 2 callersFunctioncoalesceMessages
(addr *net.UDPAddr, ep *StdNetEndpoint, bufs [][]byte, msgs []ipv6.Message, setGSO setGSOFunc)
conn/bind_std.go:450
↓ 2 callersMethoddownLocked
downLocked attempts to bring the device down. The caller must hold device.state.mu and is responsible for updating device.state.state.
device/device.go:195
↓ 2 callersFunctionensureEOFOnClose
(t *testing.T, r io.Reader, w io.Closer)
ipc/namedpipe/namedpipe_test.go:308
↓ 2 callersFunctionfastrandn
go:linkname fastrandn runtime.fastrandn
device/timers.go:17
↓ 2 callersMethodgetMessages
()
conn/bind_std.go:209
↓ 2 callersFunctiongoroutineLeakCheck
(t *testing.T)
device/device_test.go:395
↓ 2 callersFunctionhandleVirtioRead
handleVirtioRead splits in into bufs, leaving offset bytes at the front of each buffer. It mutates sizes to reflect the size of each element of bufs,
tun/tun_linux.go:375
↓ 2 callersMethodinitFromFlags
(name string)
tun/tun_linux.go:511
↓ 2 callersFunctionipHeadersCanCoalesce
ipHeadersCanCoalesce returns true if the IP headers found in pktA and pktB meet all requirements to be merged as part of a GRO operation, otherwise it
tun/offload_linux.go:279
↓ 2 callersFunctionlistenNet
(network string, port int)
conn/bind_std.go:122
↓ 2 callersMethodlookupOrInsert
lookupOrInsert looks up a flow for the provided packet and metadata, returning the packets found for the flow, or inserting a new one if none is found
tun/offload_linux.go:100
↓ 2 callersFunctionmakeFile
makeFile makes a new file from an existing file handle
ipc/namedpipe/file.go:71
↓ 2 callersMethodmakeReceiveFunc
(ch chan []byte)
conn/bindtest/bindtest.go:96
↓ 2 callersFunctionmakeServerPipeHandle
(path string, sd *windows.SECURITY_DESCRIPTOR, c *ListenConfig, isFirstPipe bool)
ipc/namedpipe/namedpipe.go:237
↓ 2 callersFunctionnewTCPFlowKey
(pkt []byte, srcAddrOffset, dstAddrOffset, tcphOffset int)
tun/offload_linux.go:85
↓ 2 callersFunctionnewUDPFlowKey
(pkt []byte, srcAddrOffset, dstAddrOffset, udphOffset int)
tun/offload_linux.go:193
↓ 2 callersFunctionpacketIsGROCandidate
(b []byte, canUDPGRO bool)
tun/offload_linux.go:751
↓ 2 callersMethodputMessages
(msgs *[]ipv6.Message)
conn/bind_std.go:201
↓ 2 callersFunctionrandDevice
(t *testing.T)
device/noise_test.go:35
↓ 2 callersMethodreceiveIP
( br batchReader, conn *net.UDPConn, rxOffload bool, bufs [][]byte, sizes []int, eps []Endpoint, )
conn/bind_std.go:226
↓ 2 callersMethodremove
()
device/allowedips.go:226
↓ 2 callersMethodremoveFromPeerEntries
()
device/allowedips.go:62
↓ 2 callersMethodreset
()
tun/offload_linux.go:161
↓ 2 callersMethodsend
(conn *net.UDPConn, pc batchWriter, msgs []ipv6.Message)
conn/bind_std.go:412
↓ 2 callersMethodset
(deadline time.Time)
ipc/namedpipe/file.go:248
↓ 2 callersFunctionsplitCoalescedMessages
(msgs []ipv6.Message, firstMsgAt int, getGSO getGSOFunc)
conn/bind_std.go:502
↓ 2 callersFunctionsupportsUDPOffload
(conn *net.UDPConn)
conn/features_linux.go:14
↓ 2 callersFunctiontcpGRO
tcpGRO evaluates the TCP packet at pktI in bufs for coalescing with existing packets tracked in table. It returns a groResultNoop when no action was t
tun/offload_linux.go:531
↓ 2 callersMethodtimersHandshakeComplete
* Should be called after a handshake response message is received and processed or when getting key confirmation via the first data message. */
device/timers.go:177
↓ 2 callersMethodtimersSessionDerived
* Should be called after an ephemeral key is created, which is before sending a handshake response or after receiving a handshake response. */
device/timers.go:187
↓ 2 callersMethodtryOneName
(ctx context.Context, name string, qtype dnsmessage.Type)
tun/netstack/tun.go:746
↓ 2 callersFunctiontunName
(fd uintptr)
tun/tun_freebsd.go:135
↓ 2 callersFunctionudpGRO
udpGRO evaluates the UDP packet at pktI in bufs for coalescing with existing packets tracked in table. It returns a groResultNoop when no action was t
tun/offload_linux.go:786
↓ 2 callersFunctionudpPacketsCanCoalesce
udpPacketsCanCoalesce evaluates if pkt can be coalesced with the packet described by item. iphLen and gsoSize describe pkt. bufs is the vector of pack
tun/offload_linux.go:314
↓ 2 callersMethodunmarshal
(b []byte)
device/noise-protocol.go:153
↓ 2 callersMethodupdate
(packetLen uint64)
tun/tun_windows.go:228
↓ 2 callersMethodupdateAt
(item tcpGROItem, i int)
tun/offload_linux.go:131
↓ 1 callersMethodAccept
()
ipc/uapi_linux.go:24
↓ 1 callersMethodAccept
()
ipc/uapi_windows.go:32
↓ 1 callersMethodBindClose
()
device/device.go:531
↓ 1 callersMethodBindSetMark
(mark uint32)
device/device.go:444
↓ 1 callersMethodClose
()
tun/tun_darwin.go:246
↓ 1 callersMethodClose
()
tun/tun_openbsd.go:246
↓ 1 callersMethodClose
()
tun/tun_freebsd.go:378
↓ 1 callersMethodClose
()
device/device.go:370
↓ 1 callersMethodClose
()
ratelimiter/ratelimiter.go:36
↓ 1 callersFunctionCreateTUNFromFile
(file *os.File, mtu int)
tun/tun_darwin.go:135
↓ 1 callersFunctionCreateTUNFromFile
(file *os.File, mtu int)
tun/tun_openbsd.go:143
↓ 1 callersFunctionCreateTUNFromFile
(file *os.File, mtu int)
tun/tun_freebsd.go:264
↓ 1 callersFunctionCreateTUNWithRequestedGUID
CreateTUNWithRequestedGUID creates a Wintun interface with the given name and a requested GUID. Should a Wintun interface with the same name exist, it
tun/tun_windows.go:68
↓ 1 callersFunctionDeregisterBuffer
(id BufferId)
conn/winrio/rio_windows.go:212
↓ 1 callersMethodDialContext
(ctx context.Context, network, address string)
tun/netstack/tun.go:957
↓ 1 callersMethodDialContextTCP
(ctx context.Context, addr *net.TCPAddr)
tun/netstack/tun.go:213
↓ 1 callersMethodDialTCP
(addr *net.TCPAddr)
tun/netstack/tun.go:226
↓ 1 callersMethodDialTimeout
DialTimeout connects to the specified named pipe by path, timing out if the connection takes longer than the specified duration. If timeout is zero,
ipc/namedpipe/namedpipe.go:149
↓ 1 callersMethodEntriesForPeer
(peer *Peer, cb func(prefix netip.Prefix) bool)
device/allowedips.go:213
↓ 1 callersMethodEquals
(tar NoisePrivateKey)
device/noise-types.go:44
↓ 1 callersMethodErrorCode
()
device/uapi.go:37
↓ 1 callersMethodEvents
Events returns a channel of type Event, which is fed Device events.
tun/tun.go:44
↓ 1 callersMethodExpireCurrentKeypairs
()
device/peer.go:240
↓ 1 callersMethodFromMaybeZeroHex
(src string)
device/noise-types.go:54
↓ 1 callersMethodGetInboundElement
()
device/pools.go:105
↓ 1 callersMethodGetInboundElementsContainer
()
device/pools.go:69
← previousnext →201–300 of 712, ranked by callers