aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 18:39:28 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 18:39:28 +0100
commit422f3c16d74f361b12d4ff76864c639908d4ff90 (patch)
tree93f75246c01ff9d2cab125df2acee8fd704900e4 /src/send.c
parentcookie: avoid void pointer arithmatic (diff)
downloadwireguard-monolithic-historical-422f3c16d74f361b12d4ff76864c639908d4ff90.tar.xz
wireguard-monolithic-historical-422f3c16d74f361b12d4ff76864c639908d4ff90.zip
debug: support dynamic debug on skb addr
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index a2b93b2..72fd239 100644
--- a/src/send.c
+++ b/src/send.c
@@ -75,7 +75,7 @@ void packet_send_handshake_cookie(struct wireguard_device *wg, struct sk_buff *i
{
struct message_handshake_cookie packet;
-#ifdef DEBUG
+#if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG)
struct sockaddr_storage addr = { 0 };
socket_addr_from_skb(&addr, initiating_skb);
net_dbg_ratelimited("Sending cookie response for denied handshake message for %pISpfsc\n", &addr);