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
dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst);
if (dat_entry) {
/* If the outgoing ARP request is targeting a local client, the
* packet can be silently dropped: an ARP reply will be sent by
* the client itself through the LAN
*/
if (batadv_is_my_client(bat_priv, dat_entry->mac_addr)) {
ret = true;
goto out;
}
skb_new = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_src,
bat_priv->soft_iface, ip_dst, hw_src,
dat_entry->mac_addr, hw_src);
(6-6/6)