From owner-freebsd-hackers Sun Feb 7 22:24:59 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA20228 for freebsd-hackers-outgoing; Sun, 7 Feb 1999 22:24:59 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bsd-daemon.net (bsd-daemon.net [209.90.150.171]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA20223 for ; Sun, 7 Feb 1999 22:24:57 -0800 (PST) (envelope-from pjp@bsd-daemon.net) Received: from localhost (pjp@localhost) by bsd-daemon.net (8.9.1/8.9.1) with SMTP id BAA17927; Mon, 8 Feb 1999 01:23:47 -0500 (EST) Date: Mon, 8 Feb 1999 01:23:47 -0500 (EST) From: Peter Philipp To: Ruslan Ermilov cc: hackers@FreeBSD.ORG Subject: Re: Problems with fstat/netstat in 3.0-STABLE In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ruslan and FreeBSD hackers, I have made a small patch that seems to work. I'm not sure if this is semantically correct but for the functionality that Ruslan was mentioning it seems to do the job. Feel free to stick this in the CVS tree if useful and correct. If not *shrug* no loss. The patch is for inet.c in netstat. *** inet.c.orig Mon Feb 8 01:13:44 1999 --- inet.c Mon Feb 8 01:15:04 1999 *************** *** 171,177 **** first = 0; } if (Aflag) ! printf("%8lx ", (u_long)so->so_pcb); printf("%-5.5s %6ld %6ld ", name, so->so_rcv.sb_cc, so->so_snd.sb_cc); if (nflag) { --- 171,180 ---- first = 0; } if (Aflag) ! if(istcp) ! printf("%8x ", (int)inp->inp_ppcb); ! else ! printf("%8lx ", (u_long)so->so_pcb); printf("%-5.5s %6ld %6ld ", name, so->so_rcv.sb_cc, so->so_snd.sb_cc); if (nflag) { Peter Philipp (PP2441) Daemonic Networks "In theory, theory is the same as practice, but not in practice" - ??? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message