summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-10-14 17:38:16 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-10-14 17:38:16 +0200
commit5a5a3c55d4291e2d2778cfafbb3f5c3ca003f38e (patch)
treef0e0da386d753083f3a3b9ec7ff537e307d7e09b
parentb228ae7d5911d0bd39ec61164594ebece2f4e510 (diff)
device: show debug message when no peer has allowed-ips for packet
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 377a2b5..584a8f0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -112,6 +112,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)) {
+ net_dbg_ratelimited("No peer is configured for outgoing packet address\n");
skb_unsendable(skb, dev);
return -ENOKEY;
}