Bug #170 » 666-make-DAT-drop-ARP-requests-targeting-loca.patch
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 |
- |
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »