Project

General

Profile

Bug #170 » 666-make-DAT-drop-ARP-requests-targeting-loca.patch

Antonio Quartulli, 05/08/2013 10:14 AM

View differences:

distributed-arp-table.c
837 837

  
838 838
	dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst);
839 839
	if (dat_entry) {
840
		/* If the outgoing  ARP request is targeting a local client, the
841
		 * packet can be silently dropped: an ARP reply will be sent by
842
		 * the client itself through the LAN
843
		 */
844
		if (batadv_is_my_client(bat_priv, dat_entry->mac_addr)) {
845
			ret = true;
846
			goto out;
847
		}
848

  
840 849
		skb_new = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_src,
841 850
				     bat_priv->soft_iface, ip_dst, hw_src,
842 851
				     dat_entry->mac_addr, hw_src);
843
- 
(6-6/6)