From: Simon Wunderlich Date: Wed, 24 Jun 2015 12:50:20 +0000 (+0200) Subject: batman-adv: remove broadcast packets scheduled for purged outgoing if X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3f1e08d0ae6746379b9e21264dae52f4f35c7ad2;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index 0a01992e65ab..191076ef1eca 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c @@ -616,7 +616,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);