batman-adv: 2015.0 bugfixes & stability updates
[feed/routing.git] / batman-adv / patches / 0013-batman-adv-remove-broadcast-packets-scheduled-for-pu.patch
1 From 07bec2d4dec83f024baf166b95cf037be3a7eca5 Mon Sep 17 00:00:00 2001
2 From: Simon Wunderlich <simon@open-mesh.com>
3 Date: Wed, 24 Jun 2015 14:50:20 +0200
4 Subject: [PATCH 13/17] batman-adv: remove broadcast packets scheduled for
5 purged outgoing if
6
7 When an interface is purged, the broadcast packets scheduled for this
8 interface should get purged as well.
9
10 Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
11 Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
12 ---
13 send.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 diff --git a/send.c b/send.c
17 index 23635bd..a7e84b2 100644
18 --- a/send.c
19 +++ b/send.c
20 @@ -598,7 +598,8 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
21 * we delete only packets belonging to the given interface
22 */
23 if ((hard_iface) &&
24 - (forw_packet->if_incoming != hard_iface))
25 + (forw_packet->if_incoming != hard_iface) &&
26 + (forw_packet->if_outgoing != hard_iface))
27 continue;
28
29 spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
30 --
31 2.1.4
32