1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00
wireguard-go/device
Josh Bleecher Snyder 4d87c9e824 device: remove code using unsafe
There is no performance impact.

name                             old time/op  new time/op  delta
TrieIPv4Peers100Addresses1000-8  78.6ns ± 1%  79.4ns ± 3%    ~     (p=0.604 n=10+9)
TrieIPv4Peers10Addresses10-8     29.1ns ± 2%  28.8ns ± 1%  -1.12%  (p=0.014 n=10+9)
TrieIPv6Peers100Addresses1000-8  78.9ns ± 1%  78.6ns ± 1%    ~     (p=0.492 n=10+10)
TrieIPv6Peers10Addresses10-8     29.3ns ± 2%  28.6ns ± 2%  -2.16%  (p=0.000 n=10+10)

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-11-23 22:03:15 +01:00
..
alignment_test.go device: fix alignment on 32-bit machines and test for it 2021-02-09 15:37:04 +01:00
allowedips_rand_test.go global: use netip where possible now 2021-11-23 22:03:15 +01:00
allowedips_test.go global: use netip where possible now 2021-11-23 22:03:15 +01:00
allowedips.go device: remove code using unsafe 2021-11-23 22:03:15 +01:00
bind_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
channels.go device: flush peer queues before starting device 2021-02-10 00:39:28 +01:00
constants.go device: allow reducing queue constants on iOS 2021-05-22 01:00:51 +02:00
cookie_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
cookie.go global: bump copyright 2021-01-28 17:52:15 +01:00
device_test.go global: use netip where possible now 2021-11-23 22:03:15 +01:00
device.go device: align 64-bit atomic member in Device 2021-11-16 21:07:31 +01:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
endpoint_test.go global: use netip where possible now 2021-11-23 22:03:15 +01:00
indextable.go global: bump copyright 2021-01-28 17:52:15 +01:00
ip.go global: bump copyright 2021-01-28 17:52:15 +01:00
kdf_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
keypair.go global: bump copyright 2021-01-28 17:52:15 +01:00
logger.go global: bump copyright 2021-01-28 17:52:15 +01:00
misc.go device: reduce size of trie struct 2021-06-03 13:51:03 +02:00
mobilequirks.go device: make new peers inherit broken mobile semantics 2021-11-15 23:40:47 +01:00
noise_test.go device: start peers before running handshake test 2021-11-16 21:07:31 +01:00
noise-helpers.go global: bump copyright 2021-01-28 17:52:15 +01:00
noise-protocol.go device: do not consume handshake messages if not running 2021-11-15 23:40:47 +01:00
noise-types.go global: bump copyright 2021-01-28 17:52:15 +01:00
peer.go device: defer state machine transitions until configuration is complete 2021-11-15 23:40:47 +01:00
pools_test.go device: disable waitpool tests 2021-02-22 15:26:47 +01:00
pools.go device: use a waiting sync.Pool instead of a channel 2021-02-02 19:32:13 +01:00
queueconstants_android.go global: bump copyright 2021-01-28 17:52:15 +01:00
queueconstants_default.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
queueconstants_ios.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
queueconstants_windows.go conn: implement RIO for fast Windows UDP sockets 2021-02-25 15:08:08 +01:00
race_disabled_test.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
race_enabled_test.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
receive.go global: use netip where possible now 2021-11-23 22:03:15 +01:00
send.go device: simplify allowedips lookup signature 2021-06-03 16:29:43 +02:00
sticky_default.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
sticky_linux.go conn: make binds replacable 2021-02-23 20:00:57 +01:00
timers.go device: timers: use pre-seeded per-thread unlocked fastrandn for jitter 2021-10-28 13:47:50 +02:00
tun.go device: don't track device interface state in RoutineTUNEventReader 2021-02-08 10:32:07 -08:00
uapi.go global: use netip where possible now 2021-11-23 22:03:15 +01:00