Subject: Re: import OpenBSD's tcpdrop(8) command?
To: Dheeraj Reddy <dheerajr@gmail.com>
From: Rui Paulo <rpaulo@NetBSD.org>
List: netbsd-users
Date: 09/22/2005 18:45:39
--WhfpMioaduB5tiZL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On 2005.09.22 12:16:06 -0400, Dheeraj Reddy wrote:
|  2) i seem to recollect that netstat on netbsd has a way to see the tcp
| state information. maybe there is a hint there. as to implement without a
| new sysctl.

Are you talking about:

% sudo netstat -P c0bfba64                                                  [~]
TCP Protocol Control Block at 0xc0bfba64:

Timers:
        REXMT: 0        PERSIST: 0      KEEP: 719803    2MSL: 0

State: ESTABLISHED, flags 0xbe4, inpcb 0x0, in6pcb 0xc0bed444

rxtshift 0, rxtcur 3, dupacks 0
peermss 1440, ourmss 1440, segsz 1428

snd_una 435394693, snd_nxt 435394693, snd_up 435394693
snd_wl1 200860267, snd_wl2 435394693, iss 435354859, snd_wnd 33120

rcv_wnd 33120, rcv_nxt 200861771, rcv_up 200860267, irs 200644208

rcv_adv 200894891, snd_max 435394693, snd_cwnd 65535, snd_ssthresh 1073725440
rcvtime 25624, rtttime 0, rtseq 435394645, srtt 39, rttvar 3, rttmin 2, max_sndwnd 33120

oobflags 0, iobc 0, softerror 0

snd_scale 0, rcv_scale 0, req_r_scale 0, req_s_scale 0
ts_recent 24586, ts_regent_age 25624, last_ack_sent 200861771



		-- Rui Paulo

--WhfpMioaduB5tiZL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFDMu3CZPqyxs9FH4QRAmVCAJ0R9cBtHCa7QQn4mnB/49xHc3gI1ACdGjF2
VvAlAR0E0EKeV4wTScen4AI=
=TijS
-----END PGP SIGNATURE-----

--WhfpMioaduB5tiZL--