netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] arp announce, arp_proxy and windows ip conflict verification
@ 2009-03-01 11:44 Denys Fedoryschenko
  2009-03-13 23:02 ` David Miller
  2009-06-30 22:55 ` Eric W. Biederman
  0 siblings, 2 replies; 36+ messages in thread
From: Denys Fedoryschenko @ 2009-03-01 11:44 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

Windows (XP at least) hosts on boot, with configured static ip, performing 
address conflict detection, which is defined in RFC3927.
Here is quote of important information:

"
An ARP announcement is identical to the ARP Probe described above, 
except    that now the sender and target IP addresses are both set 
to the host's newly selected IPv4 address. 
"

But it same time this goes wrong with RFC5227.
"
The 'sender IP address' field MUST be set to all zeroes; this is to avoid
polluting ARP caches in other hosts on the same link in the case
where the address turns out to be already in use by another host.
"

When ARP proxy configured, it must not answer to both cases, because 
it is address conflict verification in any case. For Windows it is just 
causing to detect false "ip conflict". Already there is code for RFC5227, so 
just trivially we just check also if source ip == target ip.

Signed-off-by: Denys Fedoryshchenko <denys@visp.net.lb>
---

[-- Attachment #2: arp_announce.diff --]
[-- Type: text/x-diff, Size: 656 bytes --]

diff --git a/net-next-2.6/net/ipv4/arp.c b/linux-net-next-a/net/ipv4/arp.c
index 3f6b735..5afaf2a 100644
--- a/net-next-2.6/net/ipv4/arp.c
+++ b/linux-net-next-a/net/ipv4/arp.c
@@ -801,8 +801,11 @@ static int arp_process(struct sk_buff *skb)
  *  cache.
  */
 
-	/* Special case: IPv4 duplicate address detection packet (RFC2131) */
-	if (sip == 0) {
+	/* 
+	*  Special case: IPv4 duplicate address detection packet (RFC2131)
+	*  and Gratuitous ARP/ARP Announce. (RFC3927, Section 2.4) 
+	*/
+	if (sip == 0 || tip == sip) {
 		if (arp->ar_op == htons(ARPOP_REQUEST) &&
 		    inet_addr_type(net, tip) == RTN_LOCAL &&
 		    !arp_ignore(in_dev, sip, tip))

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

end of thread, other threads:[~2009-07-05  6:16 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-01 11:44 [RFC] arp announce, arp_proxy and windows ip conflict verification Denys Fedoryschenko
2009-03-13 23:02 ` David Miller
2009-06-30 22:55 ` Eric W. Biederman
2009-06-30 22:54   ` Denys Fedoryschenko
     [not found]     ` <m1iqicyjmr.fsf@fess.ebiederm.org>
2009-07-01  9:00       ` Denys Fedoryschenko
2009-07-01  9:42       ` Denys Fedoryschenko
2009-07-01 17:40         ` Eric W. Biederman
2009-07-01 18:12           ` Denys Fedoryschenko
2009-07-01 19:01           ` Denys Fedoryschenko
2009-07-02 20:36             ` Eric W. Biederman
2009-07-02 20:51             ` Eric W. Biederman
2009-07-02 21:22               ` Denys Fedoryschenko
2009-07-02 22:18                 ` Eric W. Biederman
2009-07-02 23:03                   ` Denys Fedoryschenko
2009-07-02 23:23                     ` Eric W. Biederman
2009-07-02 23:46                       ` Denys Fedoryschenko
2009-07-03  1:38                         ` David Miller
2009-07-03  3:14                         ` Eric W. Biederman
2009-07-03 11:02                           ` Denys Fedoryschenko
2009-07-03 20:20                             ` David Miller
2009-07-03 20:37                               ` Denys Fedoryschenko
2009-07-04  0:46                                 ` Eric W. Biederman
2009-07-04  7:55                                   ` Denys Fedoryschenko
2009-07-04 15:00                                     ` Eric W. Biederman
2009-07-04 15:03                                       ` Denys Fedoryschenko
2009-07-04 21:57                                         ` Eric W. Biederman
2009-07-04 22:00                                           ` Denys Fedoryschenko
2009-07-04 23:22                                             ` Mark Smith
2009-07-05  0:07                                               ` Eric W. Biederman
2009-07-05  0:28                                                 ` Denys Fedoryschenko
2009-07-05  6:16                                                 ` Mark Smith
2009-07-04 23:47                                             ` Eric W. Biederman
2009-07-03  1:34                     ` David Miller
2009-07-02 23:13                   ` Denys Fedoryschenko
2009-07-01  2:27   ` [PATCH] Revert "ipv4: arp announce, arp_proxy and windows ip conflict verification" Eric W. Biederman
2009-07-01  3:10     ` David Miller

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).