From owner-freebsd-small Mon Jun 29 02:06:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA06837 for freebsd-small-outgoing; Mon, 29 Jun 1998 02:06:02 -0700 (PDT) (envelope-from owner-freebsd-small@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 CAA06803 for ; Mon, 29 Jun 1998 02:05:47 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id LAA26633; Mon, 29 Jun 1998 11:08:33 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Mon, 29 Jun 1998 11:08:32 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Martin Kammerhofer cc: freebsd-small@FreeBSD.ORG, Martin Kammerhofer Subject: Re: kernel symbols (was: netstat is not working) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 14 Jun 1998, Martin Kammerhofer wrote: > On Sat, 13 Jun 1998, Ekaterina N. Ivannikova wrote: > > > Ok, it seems the way to go would be to make dumpnlist dump addresses > > netstat needs, then change it to read the file "symbols". > > > One thing I didn't copy from FreeBSD's ``release'' source tree is that > ugly ``symbols'' hack. I devised a way to avoid this duplication of > functionality and will present it here in the hope it might be useful for > PicoBSD developers. It must be said though, that my approach would need > reworking for a ELF kernel. It looks interesting, and if I knew it 3-4 months ago I'd go this way. But now... The ugly hack is not to make netstat and ps happy but to save the changes from userconfig, and this works with (I think) minimal overhead. As for the netstat & co. - 3.0-really-current includes enough framwork to retrieve this data via sysctl's - one just needs to write the (small) utilities to do this. Andrzej Bialecki --------------------+--------------------------------------------------------- abial@nask.pl | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") } Research & Academic | "Be open-minded, but don't let your brains to fall out." Network in Poland | All of the above (and more) is just my personal opinion. --------------------+--------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message