[maint,2/2] batman-adv: remove broadcast packets scheduled for purged outgoing if
Commit Message
From: Simon Wunderlich <simon@open-mesh.com>
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>
---
send.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Wednesday, June 24, 2015 14:50:20 Simon Wunderlich wrote:
> From: Simon Wunderlich <simon@open-mesh.com>
>
> 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>
> ---
> send.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied in revision 07bec2d.
Thanks,
Marek
@@ -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);