From owner-freebsd-hackers Sun Feb 7 23:14:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA25889 for freebsd-hackers-outgoing; Sun, 7 Feb 1999 23:14:31 -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 XAA25882 for ; Sun, 7 Feb 1999 23:14:28 -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 CAA18119; Mon, 8 Feb 1999 02:13:26 -0500 (EST) Date: Mon, 8 Feb 1999 02:13:26 -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 I wrote: > 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. > This was the patch for inet.c in version: "$Id: inet.c,v 1.30 1998/07/06 21:01:23 bde Exp $"; The patch I made is almost identical to the an earlier version: "$Id: inet.c,v 1.26 1997/08/25 16:57:05 wollman Exp $"; I only noticed this later. But anyhow I'm correcting myself it seems we already had something similar which was stripped when it got to CVS 1.30. Apologies. My (broken?) patch below. Dunno if I'd use this anymore. :-) > *** 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