Skip to content

Misc patches

Simon Ruderich wireguard 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Fix typos in commentssrc/conn_linux.go src/index.go src/keypair.go +3 more+12 -120 replies
2/12tun_linux: use getDummySock()src/tun_linux.go+2 -210 replies
3/12receive, send: use AtomicBool for dropped in QueueInboundElement, QueueOutboundElementsrc/receive.go src/send.go+7 -90 replies
4/12device: move removePeerUnsafe() into Devicesrc/device.go+5 -50 replies
5/12index: NewIndex(): don't use separate read-lock to check if index is presentsrc/index.go+3 -90 replies
6/12device: use UnderLoadAfterTime constantsrc/device.go+1 -10 replies
7/12peer: NewPeer(): add missing device.mutex.Unlock() in error pathssrc/peer.go+2 -00 replies
8/12conn_linux: move comment to make its meaning more obvioussrc/conn_linux.go+1 -20 replies
9/12ratelimiter: Allow(): don't use separate read-lock to check if ip is presentsrc/ratelimiter.go+2 -80 replies
10/12receive, send: specialize addTo*Queue() functionssrc/receive.go src/send.go+11 -200 replies
11/12noise_protocol: mixHash(): remove unnecessary Reset()src/noise_protocol.go+0 -10 replies
12/12timers: log error if handshake sending failssrc/timers.go+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] Misc patches

Hello,

In addition to the TUN patches I noticed a few other things while reading the code. Some of these patches might be biased so just drop anything you don't like (or tell me how to improve it)

Regards
Simon

Simon Ruderich (12):
Fix typos in comments
tun_linux: use getDummySock()
receive, send: use AtomicBool for dropped in QueueInboundElement,
QueueOutboundElement
device: move removePeerUnsafe() into Device
index: NewIndex(): don't use separate read-lock to check if index is
present
device: use UnderLoadAfterTime constant
peer: NewPeer(): add missing device.mutex.Unlock() in error paths
conn_linux: move comment to make its meaning more obvious
ratelimiter: Allow(): don't use separate read-lock to check if ip is
present
receive, send: specialize addTo*Queue() functions
noise_protocol: mixHash(): remove unnecessary Reset()
timers: log error if handshake sending fails

 src/conn_linux.go     |  9 ++++-----
 src/device.go         | 12 ++++++------
 src/index.go          | 14 ++++----------
 src/keypair.go        |  2 +-
 src/main.go           |  2 +-
 src/noise_protocol.go | 11 +++++------
 src/peer.go           |  4 +++-
 src/ratelimiter.go    | 10 ++--------
 src/receive.go        | 30 +++++++++++-------------------
 src/send.go           | 17 +++++++----------
 src/timers.go         |  4 ++--
 src/tun_linux.go      | 23 ++---------------------
 12 files changed, 48 insertions(+), 90 deletions(-)
Signature · 1 line
2.15.1