aboutsummaryrefslogtreecommitdiffstats
path: root/device/receive.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-04-09 17:21:35 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-12 15:35:32 -0600
commit54dbe2471f8ed67f49e8b5e5c92f6f4eb4a5a912 (patch)
tree192f5dc94cddab9552d3e5da6ed20432cd5c6add /device/receive.go
parentdevice: allocate new buffer in receive death spiral (diff)
downloadwireguard-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 '')
-rw-r--r--device/receive.go5
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