Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH 00/12] Misc patches
@ 2018-01-01 10:52 Simon Ruderich
  2018-01-01 10:52 ` [PATCH 01/12] Fix typos in comments Simon Ruderich
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Simon Ruderich @ 2018-01-01 10:52 UTC (permalink / raw)
  To: wireguard

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(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-01-01 10:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-01 10:52 [PATCH 00/12] Misc patches Simon Ruderich
2018-01-01 10:52 ` [PATCH 01/12] Fix typos in comments Simon Ruderich
2018-01-01 10:52 ` [PATCH 02/12] tun_linux: use getDummySock() Simon Ruderich
2018-01-01 10:52 ` [PATCH 03/12] receive, send: use AtomicBool for dropped in QueueInboundElement, QueueOutboundElement Simon Ruderich
2018-01-01 10:52 ` [PATCH 04/12] device: move removePeerUnsafe() into Device Simon Ruderich
2018-01-01 10:52 ` [PATCH 05/12] index: NewIndex(): don't use separate read-lock to check if index is present Simon Ruderich
2018-01-01 10:52 ` [PATCH 06/12] device: use UnderLoadAfterTime constant Simon Ruderich
2018-01-01 10:52 ` [PATCH 07/12] peer: NewPeer(): add missing device.mutex.Unlock() in error paths Simon Ruderich
2018-01-01 10:52 ` [PATCH 08/12] conn_linux: move comment to make its meaning more obvious Simon Ruderich
2018-01-01 10:52 ` [PATCH 09/12] ratelimiter: Allow(): don't use separate read-lock to check if ip is present Simon Ruderich
2018-01-01 10:53 ` [PATCH 10/12] receive, send: specialize addTo*Queue() functions Simon Ruderich
2018-01-01 10:53 ` [PATCH 11/12] noise_protocol: mixHash(): remove unnecessary Reset() Simon Ruderich
2018-01-01 10:53 ` [PATCH 12/12] timers: log error if handshake sending fails Simon Ruderich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).