netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Denys Fedoryschenko <denys@visp.net.lb>,
	stable@kernel.org
Subject: [PATCH] Revert "ipv4: arp announce, arp_proxy and windows ip conflict verification"
Date: Tue, 30 Jun 2009 19:27:17 -0700	[thread overview]
Message-ID: <m17hytrvcq.fsf_-_@fess.ebiederm.org> (raw)
In-Reply-To: <m1r5x1z5z4.fsf@fess.ebiederm.org> (Eric W. Biederman's message of "Tue\, 30 Jun 2009 15\:55\:59 -0700")

This reverts commit 73ce7b01b4496a5fbf9caf63033c874be692333f.

After discovering that we don't listen to gratuitious arps in 2.6.30
I tracked the failure down to this commit.

The patch makes absolutely no sense.  RFC2131 RFC3927 and RFC5227.
are all in agreement that an arp request with sip == 0 should be used
for the probe (to prevent learning) and an arp request with sip == tip
should be used for the gratitous announcement that people can learn
from.

It appears the author of the broken patch got those two cases confused
and modified the code to drop all gratuitous arp traffic.  Ouch!

Cc: stable@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
---
 net/ipv4/arp.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

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


  parent reply	other threads:[~2009-07-01  2:27 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Eric W. Biederman [this message]
2009-07-01  3:10     ` [PATCH] Revert "ipv4: arp announce, arp_proxy and windows ip conflict verification" David Miller

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=m17hytrvcq.fsf_-_@fess.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=davem@davemloft.net \
    --cc=denys@visp.net.lb \
    --cc=netdev@vger.kernel.org \
    --cc=stable@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).