diff options
author | 2021-04-09 17:21:35 -0600 | |
---|---|---|
committer | 2021-04-12 15:35:32 -0600 | |
commit | 54dbe2471f8ed67f49e8b5e5c92f6f4eb4a5a912 (patch) | |
tree | 192f5dc94cddab9552d3e5da6ed20432cd5c6add /device | |
parent | device: allocate new buffer in receive death spiral (diff) | |
download | wireguard-go-54dbe2471f8ed67f49e8b5e5c92f6f4eb4a5a912.tar.xz wireguard-go-54dbe2471f8ed67f49e8b5e5c92f6f4eb4a5a912.zip |
conn: reconstruct v4 vs v6 receive function based on symtab
This is kind of gross but it's better than the alternatives.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
-rw-r--r-- | device/receive.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/device/receive.go b/device/receive.go index 3aa4458..9af0e18 100644 --- a/device/receive.go +++ b/device/receive.go @@ -69,14 +69,15 @@ func (peer *Peer) keepKeyFreshReceiving() { * IPv4 and IPv6 (separately) */ func (device *Device) RoutineReceiveIncoming(recv conn.ReceiveFunc) { + recvName := recv.PrettyName() defer func() { - device.log.Verbosef("Routine: receive incoming %p - stopped", recv) + device.log.Verbosef("Routine: receive incoming %s - stopped", recvName) device.queue.decryption.wg.Done() device.queue.handshake.wg.Done() device.net.stopping.Done() }() - device.log.Verbosef("Routine: receive incoming %p - started", recv) + device.log.Verbosef("Routine: receive incoming %s - started", recvName) // receive datagrams until conn is closed |