[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    Fwd: Sending ARP requests to the peer over PF_PACKET socket
From:       "Mahesh Kelkar" <maheshkelkar () gmail ! com>
Date:       2008-09-22 22:40:10
Message-ID: 4a347610809221540r71420addob0ff4ccef45f73db () mail ! gmail ! com
[Download RAW message or body]

IP utility "arping" uses PF_PACKET socket to send the arp_request to
the peer. When peer responds with arp_reply, one copy is sent to the
PF_PACKET socket and other to the linux kernel. As a result, linux
kernel creates the new ARP entry.

In this case, kernel doesn't know about the arp_request, hence it
should treat the arp_reply as unsolicited. Linux Kernel (v2.6.21) by
default does not accept unsolicited ARP replies, then how what makes
kernel accept the ARP reply?

Is kernel snooping in the packet with arp_request going out over the
PF_PACKET socket?

Any response is appreciated.

Thanks
Mahesh
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic