33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 07bec2d4dec83f024baf166b95cf037be3a7eca5 Mon Sep 17 00:00:00 2001
|
|
From: Simon Wunderlich <simon@open-mesh.com>
|
|
Date: Wed, 24 Jun 2015 14:50:20 +0200
|
|
Subject: [PATCH 13/17] batman-adv: remove broadcast packets scheduled for
|
|
purged outgoing if
|
|
|
|
When an interface is purged, the broadcast packets scheduled for this
|
|
interface should get purged as well.
|
|
|
|
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
|
|
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
|
|
---
|
|
send.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/send.c b/send.c
|
|
index 23635bd..a7e84b2 100644
|
|
--- a/send.c
|
|
+++ b/send.c
|
|
@@ -598,7 +598,8 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
|
|
* we delete only packets belonging to the given interface
|
|
*/
|
|
if ((hard_iface) &&
|
|
- (forw_packet->if_incoming != hard_iface))
|
|
+ (forw_packet->if_incoming != hard_iface) &&
|
|
+ (forw_packet->if_outgoing != hard_iface))
|
|
continue;
|
|
|
|
spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
|
|
--
|
|
2.1.4
|
|
|