NetBSD Problem Report #10482
Received: (qmail 10153 invoked from network); 29 Jun 2000 23:32:24 -0000
Message-Id: <200006292332.QAA07277@nbwww.isc.org>
Date: Thu, 29 Jun 2000 16:32:24 -0700 (PDT)
From: chris@nice.ch
Reply-To: chris@nice.ch
To: gnats-bugs@gnats.netbsd.org
Subject: proxy-arp requests are answered on the wrong interfaces (+fix)
X-Send-Pr-Version: www-1.0
>Number: 10482
>Category: kern
>Synopsis: proxy-arp requests are answered on the wrong interfaces (+fix)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: is
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 29 23:33:00 +0000 2000
>Closed-Date: Sat Jan 05 07:46:23 +0000 2002
>Last-Modified: Sat Jan 05 07:46:23 +0000 2002
>Originator: Christian Limpach
>Release: 1.4.2
>Organization:
n.a.
>Environment:
NetBSD joblin.pin.lu 1.4.2 NetBSD 1.4.2 (REDBALL) #6: Sat Jun 10 18:49:55 CEST 2000 root@joblin.pin.lu:/usr/src/sys/arch/i386/compile/REDBALL i386
>Description:
Proxy-arp entries are only valid for one interface since they include
this interface's ether address. The proxy-arp support included in the
kernel will answer arp request on all interfaces. It will send arp
replies which include an ether address which is not reachable on all
segments except on the one connected to the interface whose ether
address is used. This will disturb the network startup of windows
machines (and probably others) for which the proxy-arp is done as they
use arp to check for duplicate ip addresses.
>How-To-Repeat:
you need two segments: a.a.a.0/24 and b.b.b.0/24
the multihomed netbsd machine is rl0 connected to a.a.a.0/24 with
address a.a.a.1 (ether address 00:00:aa:bb:cc:dd) and rl1 connected to
b.b.b.0/24 with address b.b.b.1.
a windows machine is connected to the b.b.b.0/24 segment and has the
addresses b.b.b.2 and also a a.a.a.0/24 address a.a.a.2 but it has no
connection to the a.a.a.0/24 segment
the multihomed netbsd machine has the following proxy-arp entry:
? (a.a.a.2) at 00:00:aa:bb:cc:dd permanent published (proxy only)
and routing table entry:
a.a.a.2 b.b.b.2 UGHS .... rl1
the routing table entry is not necessary to repeat the problem but
gives a vague idea what this setup is used for.
When the windows machine boots, it will send an arp-request which will
be answered by netbsd on rl1 with the rl0 ether address
00:00:aa:bb:cc:dd. Windows will complain with a duplicate ip address
error.
>Fix:
before sending a reply, check if the arp entry for the reply is
associated to the interface we are going to send the reply on.
Index: sys/netinet/if_arp.c
===================================================================
RCS file: /cvsroot/syssrc/sys/netinet/if_arp.c,v
retrieving revision 1.56.2.3
diff -c -r1.56.2.3 if_arp.c
*** if_arp.c 1999/06/20 19:20:33 1.56.2.3
--- if_arp.c 2000/06/29 23:00:37
***************
*** 681,686 ****
--- 681,688 ----
if (la == 0)
goto out;
rt = la->la_rt;
+ if (rt->rt_ifp != ifp)
+ goto out;
bcopy((caddr_t)ar_sha(ah), (caddr_t)ar_tha(ah), ah->ar_hln);
sdl = SDL(rt->rt_gateway);
bcopy(LLADDR(sdl), (caddr_t)ar_sha(ah), ah->ar_hln);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: is
State-Changed-When: Mon Nov 20 06:37:50 PST 2000
State-Changed-Why:
PR 7490/7497 attach what I think is the same problem at the ARP packet input
end, and the fix is in NetBSD 1.4.3/1.5.
Please report whether these forthcoming releases fix your problem.
Responsible-Changed-From-To: kern-bug-people->is
Responsible-Changed-By: is
Responsible-Changed-When: Mon Nov 20 06:37:50 PST 2000
Responsible-Changed-Why:
I'll handle this.
From: Ignatios Souvatzis <is@mail.netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: kern/10482
Date: Mon, 26 Mar 2001 01:56:18 -0800
Please report (as already requested on the 20th of Nov, 2000)
whether either of the 1.4.3 or 1.5 releases fixes your problem.
We believe your problem is solved in either of them, and will close your PR
if we get no feedback.
-is
State-Changed-From-To: feedback->closed
State-Changed-By: fair
State-Changed-When: Fri Jan 4 23:45:41 PST 2002
State-Changed-Why:
More than a year since fix committed with no feedback.
This PR is presumed resolved.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.