From owner-freebsd-current Thu Oct 15 00:32:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA17444 for freebsd-current-outgoing; Thu, 15 Oct 1998 00:32:44 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA17436 for ; Thu, 15 Oct 1998 00:32:36 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id JAA25142; Thu, 15 Oct 1998 09:37:34 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Thu, 15 Oct 1998 09:37:33 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: bryan collins cc: freebsd-current@FreeBSD.ORG Subject: Re: /usr/sbin/arp: actual retrieval of routing table In-Reply-To: <199810150116.SAA03564@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 15 Oct 1998, bryan collins wrote: > occasionaly I get the error message in the subject > > /usr/sbin/arp: actual retrieval of routing table > > and doesnt print the arp table. > > the command is '/usr/sbin/arp -an' which runs every 60 seconds. > the arp table has around 300-400 entries all the time. > > have i come across some limitation for the table? If your machine is quite busy adding/deleteing routes, I can understand this. When you retrieve a bigger chunk of data from the kernel, you first do the "sizing" of the memory needed, then you actually retrieve the data - 'arp' does exactly this. If the actual routing table grows between these two sysctl(3) calls, the data wouldn't fit and sysctl(3) refuses to transfer them to your buffer. Perhaps the programs which use this double sysctl(3) calls should allocate somewhat bigger buffer than that calculated on basis of previous call, anticipating for unexpected change in data size... Andrzej Bialecki -------------------- ++-------++ ------------------------------------- ||PicoBSD|| FreeBSD in your pocket? Go and see: Research & Academic |+-------+| "Small & Embedded FreeBSD" Network in Poland | |TT~~~| | http://www.freebsd.org/~picobsd/ -------------------- ~-+==---+-+ ------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message