All of lore.kernel.org
 help / color / mirror / Atom feed
* Does arping update arp table?
@ 2015-01-27 19:23 Murali Karicheri
  2015-01-27 20:46 ` David Ahern
  0 siblings, 1 reply; 3+ messages in thread
From: Murali Karicheri @ 2015-01-27 19:23 UTC (permalink / raw)
  To: netdev; +Cc: David Miller

Experts,

The ARP code (net/ipv4/arp.c) seems to treat arp response resulting from 
a arping as an unsolicited response and doesn't update the arp table. 
This get updated if the per interface accept sys ctrl is enabled. This 
command seems to have been updating the arp table in older kernel. For 
example on a Ubuntu 12.04 based kernel I see

a0868495@ula0868495 ~/Project/linux-keystone $ sudo arping 192.168.1.10 
-c 1 -f
ARPING 192.168.1.10 from 192.168.1.9 eth0
Unicast reply from 192.168.1.10 [00:1B:A9:02:26:10]  5.411ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
a0868495@ula0868495 ~/Project/linux-keystone $ arp -n -a
? (192.168.1.10) at 00:1b:a9:02:26:10 [ether] on eth0
? (192.168.1.1) at 00:1f:90:6d:5c:a8 [ether] on eth0

a0868495@ula0868495 ~/Project/linux-keystone $ uname -a
Linux ula0868495 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 
2012 i686 i686 i386 GNU/Linux

However this command doesn't update the arp table on my Keystone EVM 
based on v3.19.x and also newer ubuntu machine based on v3.11. Is this 
expected behavior? I believe the arp response resulting from a arping 
command is controlled through per interface accept sys control like as 
in gratuitous arp. Please repond.

Thanks and regards,
-- 
Murali Karicheri
Linux Kernel, Texas Instruments

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does arping update arp table?
  2015-01-27 19:23 Does arping update arp table? Murali Karicheri
@ 2015-01-27 20:46 ` David Ahern
  2015-01-27 21:12   ` Murali Karicheri
  0 siblings, 1 reply; 3+ messages in thread
From: David Ahern @ 2015-01-27 20:46 UTC (permalink / raw)
  To: Murali Karicheri, netdev; +Cc: David Miller

On 1/27/15 12:23 PM, Murali Karicheri wrote:
> However this command doesn't update the arp table on my Keystone EVM
> based on v3.19.x and also newer ubuntu machine based on v3.11. Is this
> expected behavior? I believe the arp response resulting from a arping
> command is controlled through per interface accept sys control like as
> in gratuitous arp. Please repond.

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_accept

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does arping update arp table?
  2015-01-27 20:46 ` David Ahern
@ 2015-01-27 21:12   ` Murali Karicheri
  0 siblings, 0 replies; 3+ messages in thread
From: Murali Karicheri @ 2015-01-27 21:12 UTC (permalink / raw)
  To: David Ahern; +Cc: netdev, David Miller

On 01/27/2015 03:46 PM, David Ahern wrote:
> On 1/27/15 12:23 PM, Murali Karicheri wrote:
>> However this command doesn't update the arp table on my Keystone EVM
>> based on v3.19.x and also newer ubuntu machine based on v3.11. Is this
>> expected behavior? I believe the arp response resulting from a arping
>> command is controlled through per interface accept sys control like as
>> in gratuitous arp. Please repond.
>
> echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_accept
>

Thanks. That is what I thought.

-- 
Murali Karicheri
Linux Kernel, Texas Instruments

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-27 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 19:23 Does arping update arp table? Murali Karicheri
2015-01-27 20:46 ` David Ahern
2015-01-27 21:12   ` Murali Karicheri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.