From: Murali Karicheri <m-karicheri2@ti.com>
To: <netdev@vger.kernel.org>
Cc: David Miller <davem@davemloft.net>
Subject: Does arping update arp table?
Date: Tue, 27 Jan 2015 14:23:33 -0500 [thread overview]
Message-ID: <54C7E5B5.8060401@ti.com> (raw)
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
next reply other threads:[~2015-01-27 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 19:23 Murali Karicheri [this message]
2015-01-27 20:46 ` Does arping update arp table? David Ahern
2015-01-27 21:12 ` Murali Karicheri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C7E5B5.8060401@ti.com \
--to=m-karicheri2@ti.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).