Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262092AbTHTRzl (ORCPT ); Wed, 20 Aug 2003 13:55:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262113AbTHTRzl (ORCPT ); Wed, 20 Aug 2003 13:55:41 -0400 Received: from pizda.ninka.net ([216.101.162.242]:19355 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id S262092AbTHTRzj (ORCPT ); Wed, 20 Aug 2003 13:55:39 -0400 Date: Wed, 20 Aug 2003 10:48:31 -0700 From: "David S. Miller" To: Ben Greear Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com Subject: Re: [2.4 PATCH] bugfix: ARP respond on all devices Message-Id: <20030820104831.6235f3b9.davem@redhat.com> In-Reply-To: <3F43B389.5060602@candelatech.com> References: <1061320363.3744.14.camel@athena.fprintf.net> <20030820100044.3127d612.davem@redhat.com> <3F43B389.5060602@candelatech.com> X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.6; sparc-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1231 Lines: 33 On Wed, 20 Aug 2003 10:44:41 -0700 Ben Greear wrote: > It seems that these reasons would not preclude the addition of a flag > that would default to the current behaviour but allow the behaviour that > other setups desire easily? I would accept a patch that did something like the following in arp_solicit(). if (skb && inet_addr_type(skb->nh.iph->saddr) == RTN_LOCAL && (in_dev->conf.shared_media || inet_addr_onlink(dev, skb->nh.iph->saddr, 0))) saddr = skb->nh.iph->saddr; else saddr = inet_select_addr(dev, target, RT_SCOPE_LINE); Then people can frob the shared_media sysctl for devices where they want the behavior to be that we will only use addresses assigned to the device as the solicitor address. The shared_media setting defaults to one and thus would preserve current behavior by default. The idea is not mine, Alexey suggested it to me the other day. I hope this pleases people wrt. ARP request solicitor address handling. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/