Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 1999 02:13:26 -0500 (EST)
From:      Peter Philipp <pjp@bsd-daemon.net>
To:        Ruslan Ermilov <ru@ucb.crimea.ua>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Problems with fstat/netstat in 3.0-STABLE
Message-ID:  <Pine.BSF.4.01.9902080208120.287-100000@bsd-daemon.net>
In-Reply-To: <Pine.BSF.4.01.9902080116450.287-100000@bsd-daemon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9902080208120.287-100000>