Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f1e08d0 authored by Simon Wunderlich's avatar Simon Wunderlich Committed by Antonio Quartulli
Browse files

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: default avatarSimon Wunderlich <simon@open-mesh.com>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
parent 1f155101
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -616,7 +616,8 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
		 * we delete only packets belonging to the given interface
		 * we delete only packets belonging to the given interface
		 */
		 */
		if ((hard_iface) &&
		if ((hard_iface) &&
		    (forw_packet->if_incoming != hard_iface))
		    (forw_packet->if_incoming != hard_iface) &&
		    (forw_packet->if_outgoing != hard_iface))
			continue;
			continue;


		spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
		spin_unlock_bh(&bat_priv->forw_bcast_list_lock);