Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 1999 01:23:47 -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.9902080116450.287-100000@bsd-daemon.net>
In-Reply-To: <Pine.BSF.4.01.9902072313270.287-100000@bsd-daemon.net>

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



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