Date: 16 Oct 1998 22:14:42 +0200 From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: Andrzej Bialecki <abial@nask.pl> Cc: bryan collins <bryan@coombs.anu.edu.au>, freebsd-current@FreeBSD.ORG Subject: Re: /usr/sbin/arp: actual retrieval of routing table Message-ID: <xzpaf2wl0wd.fsf@jarnsaxa.ifi.uio.no> In-Reply-To: Andrzej Bialecki's message of "Thu, 15 Oct 1998 09:37:33 %2B0200 (CEST)" References: <Pine.BSF.4.02A.9810150930550.11086-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrzej Bialecki <abial@nask.pl> writes: > 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. Write up a PR and set me (des) as responsible, and I'll fix it ASAP. I've already fixed a similar bug in libkvm so I know precisely how to lick it. Not right now though... DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpaf2wl0wd.fsf>