aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-31 04:25:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-31 05:36:21 +0200
commitc4bf6e6ea0670ecc856a4a8373217cf467f88b84 (patch)
tree081c9503db19ebbd36b034d6bff7f8a109e4147a /src/data.c
parentcompat: remove warning for < 4.1 (diff)
downloadwireguard-monolithic-historical-c4bf6e6ea0670ecc856a4a8373217cf467f88b84.tar.xz
wireguard-monolithic-historical-c4bf6e6ea0670ecc856a4a8373217cf467f88b84.zip
debug: print interface name in dmesg
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 943d6e8..9210304 100644
--- a/src/data.c
+++ b/src/data.c
@@ -351,7 +351,7 @@ static void finish_decrypt_packet(struct decryption_ctx *ctx)
return;
if (unlikely(!counter_validate(&ctx->keypair->receiving.counter, PACKET_CB(ctx->skb)->nonce))) {
- net_dbg_ratelimited("Packet has invalid nonce %Lu (max %Lu)\n", PACKET_CB(ctx->skb)->nonce, ctx->keypair->receiving.counter.receive.counter);
+ net_dbg_ratelimited("%s: Packet has invalid nonce %Lu (max %Lu)\n", netdev_pub(ctx->keypair->entry.peer->device)->name, PACKET_CB(ctx->skb)->nonce, ctx->keypair->receiving.counter.receive.counter);
peer_put(ctx->keypair->entry.peer);
noise_keypair_put(ctx->keypair);
dev_kfree_skb(ctx->skb);