summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-24 02:19:38 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-26 12:35:06 +0200
commit490f81be828490d691339cdf6e4e4472d6698932 (patch)
treed18218ca7a57deeb14dabcd4ad0ee57a7eaf5fcc /src
parenta8ab6d3b7ff9b91d3c1c7c1352b83486ed0772be (diff)
device: avoid double icmp send on routing loop
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 1b975d9..1b7e151 100644
--- a/src/device.c
+++ b/src/device.c
@@ -148,7 +148,6 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
if (unlikely(dev_recursion_level() > 4)) {
ret = -ELOOP;
net_dbg_ratelimited("%s: Routing loop detected\n", dev->name);
- skb_unsendable(skb, dev);
goto err;
}