]> Pileus Git - ~andy/linux/blobdiff - net/batman-adv/send.c
batman-adv: Distributed ARP Table - add snooping functions for ARP messages
[~andy/linux] / net / batman-adv / send.c
index 570a8bce0364ea08ea45341b57b362a72beedc45..660d9bf7d219ee3714585059dfe29ddeecdf7301 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "main.h"
+#include "distributed-arp-table.h"
 #include "send.h"
 #include "routing.h"
 #include "translation-table.h"
@@ -209,6 +210,9 @@ static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
        if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_DEACTIVATING)
                goto out;
 
+       if (batadv_dat_drop_broadcast_packet(bat_priv, forw_packet))
+               goto out;
+
        /* rebroadcast packet */
        rcu_read_lock();
        list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) {