Skip to content
Browse files

net: arp: Drop request where src hw address is our address

We replied to an ARP request that has the same Sender Hardware Address
than that of ours. Such an ARP request must be discarded, no reply
should be sent and translation table should not be updated.

Fixes #16110

Signed-off-by: Jukka Rissanen <>
  • Loading branch information...
jukkar committed May 13, 2019
1 parent a84e934 commit 9552796361a3f1d4f7a4607b1bceb2139774fc14
Showing with 9 additions and 0 deletions.
  1. +9 −0 subsys/net/l2/ethernet/arp.c
@@ -564,6 +564,15 @@ enum net_verdict net_arp_input(struct net_pkt *pkt,

switch (ntohs(arp_hdr->opcode)) {
/* If ARP request sender hw address is our address,
* we must drop the packet.
if (memcmp(&arp_hdr->src_hwaddr,
sizeof(struct net_eth_addr)) == 0) {
return NET_DROP;

if (memcmp(&eth_hdr->dst,

0 comments on commit 9552796

Please sign in to comment.
You can’t perform that action at this time.