MCPcopy Create free account

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

Functions712 in github.com/WireGuard/wireguard-go

↓ 89 callersMethodClose
Close closes the Bind listener. All fns returned by Open must return net.ErrClosed after a call to Close.
conn/conn.go:42
↓ 53 callersMethodClose
Close stops the Device and closes the Event channel.
tun/tun.go:47
↓ 44 callersMethodRead
Read one or more packets from the Device (without any additional headers). On a successful read it returns the number of packets read, and sets packet
tun/tun.go:29
↓ 41 callersMethodWrite
Write one or more packets to the device (without any additional headers). On a successful write it returns the number of packets written. A nonzero of
tun/tun.go:35
↓ 25 callersFunctiontcp4Packet
(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32)
tun/offload_linux_test.go:129
↓ 23 callersMethodError
()
device/uapi.go:29
↓ 23 callersMethodWait
()
device/device.go:402
↓ 23 callersFunctionipcErrorf
(code int64, msg string, args ...any)
device/uapi.go:41
↓ 21 callersFunctionudp4Packet
(srcIPPort, dstIPPort netip.AddrPort, payloadLen int)
tun/offload_linux_test.go:92
↓ 20 callersMethodAddr
()
tun/netstack/tun.go:307
↓ 19 callersMethodOpen
Open puts the Bind into a listening state on a given port and reports the actual port that it bound to. Passing zero results in a random selection. fn
conn/conn.go:38
↓ 17 callersFunctionrandomPipePath
()
ipc/namedpipe/namedpipe_test.go:27
↓ 17 callersFunctionsetZero
* This function is not used as pervasively as it should because this is mostly impossible in Go at the moment */
device/noise-helpers.go:74
↓ 17 callersFunctiontcp6Packet
(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32)
tun/offload_linux_test.go:165
↓ 15 callersMethodSend
Send writes one or more packets in bufs to address ep. The length of bufs must not exceed BatchSize().
conn/conn.go:50
↓ 14 callersMethodPutMessageBuffer
(msg *[MaxMessageSize]byte)
device/pools.go:101
↓ 13 callersFunctionDialTimeout
DialTimeout calls DialConfig.DialTimeout using an empty configuration.
ipc/namedpipe/namedpipe.go:214
↓ 13 callersMethodGet
()
device/pools.go:26
↓ 13 callersMethodRemoveByPeer
(peer *Peer)
device/allowedips.go:280
↓ 13 callersMethodReset
Reset resets the filter to empty state.
replay/replay.go:30
↓ 12 callersFunctionListen
Listen calls ListenConfig.Listen using an empty configuration.
ipc/namedpipe/namedpipe.go:435
↓ 12 callersMethodPut
(x any)
device/pools.go:38
↓ 11 callersFunctionchecksum
(b []byte, initial uint64)
tun/checksum.go:86
↓ 11 callersMethodtimersActive
()
device/timers.go:75
↓ 11 callersFunctionudp6Packet
(srcIPPort, dstIPPort netip.AddrPort, payloadLen int)
tun/offload_linux_test.go:60
↓ 10 callersMethodAccept
()
ipc/namedpipe/namedpipe.go:454
↓ 10 callersMethodSrcIP
()
conn/sticky_linux.go:17
↓ 10 callersMethodSrcIfidx
()
conn/sticky_linux.go:32
↓ 10 callersMethodStop
()
device/peer.go:259
↓ 10 callersMethodString
()
device/peer.go:147
↓ 10 callersMethodpublicKey
()
device/noise-helpers.go:91
↓ 10 callersMethodsharedSecret
(pk NoisePublicKey)
device/noise-helpers.go:100
↓ 9 callersMethodPutOutboundElement
(elem *QueueOutboundElement)
device/pools.go:118
↓ 9 callersMethodPutOutboundElementsContainer
(c *QueueOutboundElementsContainer)
device/pools.go:89
↓ 9 callersMethodString
()
tun/netstack/tun.go:294
↓ 9 callersFunctionmixHash
(dst, h *[blake2s.Size]byte, data []byte)
device/noise-protocol.go:238
↓ 8 callersMethodAfter
(t2 Timestamp)
tai64n/tai64n.go:35
↓ 8 callersMethodDeleteKeypair
(key *Keypair)
device/keypair.go:48
↓ 8 callersMethodLookup
(id uint32)
device/indextable.go:94
↓ 8 callersFunctionNewDefaultBind
()
conn/default.go:10
↓ 8 callersFunctionNewWaitPool
(max uint32, new func() any)
device/pools.go:20
↓ 8 callersMethodUp
()
device/device.go:209
↓ 8 callersMethodchoose
(ip []byte)
device/allowedips.go:69
↓ 8 callersFunctionconvertToFullAddr
(endpoint netip.AddrPort)
tun/netstack/tun.go:194
↓ 8 callersFunctiontunDestroy
Destroy a named system interface
tun/tun_freebsd.go:145
↓ 7 callersMethodBatchSize
BatchSize returns the BatchSize for the device as a whole which is the max of the bind batch size and the tun batch size. The batch size reported by d
device/device.go:332
↓ 7 callersMethodDstIP
used for mac2 cookie calculations
conn/conn.go:83
↓ 7 callersMethodHandle
()
ipc/namedpipe/namedpipe.go:104
↓ 7 callersMethodIpcSet
(uapiConf string)
device/uapi.go:415
↓ 7 callersFunctionKDF2
(t0, t1 *[blake2s.Size]byte, key, input []byte)
device/noise-helpers.go:48
↓ 7 callersMethodMod
(d time.Duration)
device/timers.go:48
↓ 7 callersMethodNewTimer
(expirationFunction func(*Peer))
device/timers.go:28
↓ 7 callersFunctionassertEqual
(t *testing.T, a, b []byte)
device/noise_test.go:53
↓ 7 callersFunctionassertNil
(t *testing.T, err error)
device/noise_test.go:47
↓ 7 callersMethodmixHash
(data []byte)
device/noise-protocol.go:255
↓ 7 callersFunctionuapiCfg
uapiCfg returns a string that contains cfg formatted use with IpcSet. cfg is a series of alternating key/value strings. uapiCfg exists because editors
device/device_test.go:35
↓ 6 callersMethodCheckMAC2
(msg, src []byte)
device/cookie.go:86
↓ 6 callersMethodDel
()
device/timers.go:55
↓ 6 callersFunctionHMAC1
* KDF related functions. * HMAC-based Key Derivation Function (HKDF) * https://tools.ietf.org/html/rfc5869 */
device/noise-helpers.go:24
↓ 6 callersMethodInit
(pk NoisePublicKey)
device/cookie.go:44
↓ 6 callersMethodListen
Listen creates a listener on a Windows named pipe path,such as \\.\pipe\mypipe. The pipe must not already exist.
ipc/namedpipe/namedpipe.go:405
↓ 6 callersMethodLookup
(ip []byte)
device/allowedips.go:306
↓ 6 callersFunctionRetryAfterError
(err error)
rwcancel/rwcancel.go:41
↓ 6 callersMethodSendKeepalive
* Queues a keepalive if no packets are queued for peer */
device/send.go:81
↓ 6 callersMethodStart
()
device/peer.go:173
↓ 6 callersFunctionassertEquals
(t *testing.T, a, b string)
device/kdf_test.go:23
↓ 6 callersFunctionchecksumRef
(b []byte, initial uint16)
tun/checksum_test.go:12
↓ 6 callersFunctionchecksumValid
(pkt []byte, iphLen, proto uint8, isV6 bool)
tun/offload_linux.go:388
↓ 6 callersFunctioncommonBits
(ip1, ip2 []byte)
device/allowedips.go:35
↓ 6 callersMethodencode
(b []byte)
tun/offload_linux.go:46
↓ 6 callersFunctiongenTestPair
genTestPair creates a testPair.
device/device_test.go:152
↓ 6 callersMethodisClosed
isClosed reports whether the device is closed (or is closing). See device.state.state comments for how to interpret this value.
device/device.go:118
↓ 6 callersMethodisUp
isUp reports whether the device is up (or is attempting to come up). See device.state.state comments for how to interpret this value.
device/device.go:124
↓ 6 callersFunctionnewPrivateKey
()
device/noise-helpers.go:85
↓ 6 callersMethodoperateOnFd
(fn func(fd uintptr))
tun/operateonfd.go:14
↓ 6 callersMethodtimersAnyAuthenticatedPacketTraversal
* Should be called before a packet with authentication -- keepalive, data, or handshake -- is sent, or after one is received. */
device/timers.go:194
↓ 5 callersMethodAddMacs
(msg []byte)
device/cookie.go:215
↓ 5 callersMethodDelSync
()
device/timers.go:62
↓ 5 callersMethodDelete
(index uint32)
device/indextable.go:38
↓ 5 callersMethodDstToString
returns the local source address (ip:port)
conn/conn.go:81
↓ 5 callersMethodEquals
(tar NoisePublicKey)
device/noise-types.go:72
↓ 5 callersMethodInsert
(prefix netip.Prefix, peer *Peer)
device/allowedips.go:291
↓ 5 callersFunctionNewDevice
(tunDevice tun.Device, bind conn.Bind, logger *Logger)
device/device.go:284
↓ 5 callersFunctionNewLogger
NewLogger constructs a Logger that writes to stdout. It logs at the specified log level and above. It decorates log lines with the log level, date, ti
device/logger.go:36
↓ 5 callersMethodRemove
(prefix netip.Prefix, peer *Peer)
device/allowedips.go:259
↓ 5 callersMethodSendHandshakeInitiation
(isRetry bool)
device/send.go:98
↓ 5 callersFunctionchecksumNoFold
TODO: Explore SIMD and/or other assembly optimizations.
tun/checksum.go:9
↓ 5 callersFunctiongetSrcFromControl
getSrcFromControl parses the control for PKTINFO and if found updates ep with the source information found.
conn/sticky_linux.go:50
↓ 5 callersFunctionmixKey
(dst, c *[blake2s.Size]byte, data []byte)
device/noise-protocol.go:234
↓ 5 callersFunctionpseudoHeaderChecksumNoFold
(protocol uint8, srcAddr, dstAddr []byte, totalLen uint16)
tun/checksum.go:95
↓ 5 callersFunctionsetSrcControl
setSrcControl sets an IP{V6}_PKTINFO in control based on the source address and source ifindex found in ep. control's len will be set to 0 in the even
conn/sticky_linux.go:100
↓ 5 callersFunctiontcp4PacketMutateIPFields
(srcIPPort, dstIPPort netip.AddrPort, flags header.TCPFlags, segmentSize, seq uint32, ipFn func(*header.IPv4Fi
tun/offload_linux_test.go:96
↓ 5 callersFunctionudp4PacketMutateIPFields
(srcIPPort, dstIPPort netip.AddrPort, payloadLen int, ipFn func(*header.IPv4Fields))
tun/offload_linux_test.go:31
↓ 4 callersMethodBatchSize
BatchSize is the number of buffers expected to be passed to the ReceiveFuncs, and the maximum expected to be passed to SendBatch.
conn/conn.go:57
↓ 4 callersMethodBeginSymmetricSession
* Derives a new keypair from the current handshake state * */
device/noise-protocol.go:612
↓ 4 callersMethodBind
()
device/device.go:438
↓ 4 callersMethodCheckMAC1
(msg []byte)
device/cookie.go:69
↓ 4 callersMethodCloseAndZero
()
conn/bind_windows.go:182
↓ 4 callersFunctionDequeueCompletion
(cq Cq, results []Result)
conn/winrio/rio_windows.go:200
↓ 4 callersMethodDialContextTCPAddrPort
(ctx context.Context, addr netip.AddrPort)
tun/netstack/tun.go:208
next →1–100 of 712, ranked by callers