From owner-freebsd-net Thu Oct 18 7:40:24 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 0118C37B407; Thu, 18 Oct 2001 07:40:04 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f9IEdZN45805; Thu, 18 Oct 2001 17:39:35 +0300 (EEST) (envelope-from ru) Date: Thu, 18 Oct 2001 17:39:35 +0300 From: Ruslan Ermilov To: Darren Henderson Cc: stable@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: /kernel: arp_rtrequest: bad gateway value Message-ID: <20011018173935.A43019@sunbay.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from darren@bmv.state.me.us on Wed, Sep 26, 2001 at 01:08:40PM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Sep 26, 2001 at 01:08:40PM -0400, Darren Henderson wrote: > > Posted something similar the other day, but thought I would ask in a more > general way.... > > What causes this error? Looking at the archives and source it appears to be > related to aliases and if_inet.c > > What has changed between 4.3 and 4.4 that would account for this error > appearing under 4.4 but not appear under 4.3 on a system where the network > configuration has not changed? > > Everything appears to be working fine after the upgrade other then the > appearance of this message numerous times during the day with no apparent > pattern. > > Any thoughts appreciated. > There's the problem with routed(8). It issues a command similar to "route change ip ip" for each (but last) IP address of an interface if the route already exists and is different. This results in a changed route with AF_INET gateway, but route's IFA still points to Ethernet device and rt_ifa->ifa_rtrequest == arp_rtrequest. This results in this message as AF_INET != AF_LINK. The message is harmless. This is also reproduceable on a 4.1-RELEASE machine. How to repeat without routed(8): 1. Add IP address to your Ethernet interface: ifconfig rl0 192.168.1.1 alias 2. Create route for this address: ping -c1 192.168.1.1 3. Verify that the route was created with gateway of type AF_LINK: route -vn get 192.168.1.1 4. Change the route like routed(8) does: route change 192.168.1.1 192.168.1.1 5. Watch the dmesg(8) output then repeat "route get" command to see route's gateway changed to AF_INET: route -vn get 192.168.1.1 Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message