aboutsummaryrefslogtreecommitdiff
path: root/device/device.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-01-17 09:49:39 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-20 19:57:06 +0100
commita86492a5673983fe7755631996a23c2dc510808f (patch)
tree5444c653678b076799fa756a49a24d3521665e94 /device/device.go
parent7ee95e053c280796ecfb5533000915e7daa13f69 (diff)
downloadwireguard-go-a86492a5673983fe7755631996a23c2dc510808f.tar.gz
wireguard-go-a86492a5673983fe7755631996a23c2dc510808f.zip
device: remove QueueInboundElement.dropped
Now that we block when enqueueing to the decryption queue, there is only one case in which we "drop" a inbound element, when decryption fails. We can use a simple, obvious, sync-free sentinel for that, elem.packet == nil. Also, we can return the message buffer to the pool slightly later, which further simplifies the code. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/device.go')
0 files changed, 0 insertions, 0 deletions