aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.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/device.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/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 41df285..46d6704 100644
--- a/src/device.c
+++ b/src/device.c
@@ -111,7 +111,7 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
peer = routing_table_lookup_dst(&wg->peer_routing_table, skb);
if (unlikely(!peer)) {
-#ifdef DEBUG
+#if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG)
struct sockaddr_storage addr;
socket_addr_from_skb(&addr, skb);
net_dbg_ratelimited("No peer is configured for %pISc\n", &addr);