Skip site navigation (1)Skip section navigation (2)
Date:      03 Jul 1999 11:56:30 +0200
From:      Dag-Erling Smorgrav <des@yes.no>
To:        hackers@freebsd.org
Subject:   netstat(1) / sockstat(1) field width adjustments
Message-ID:  <xzpaetem4z5.fsf@des.follo.net>

next in thread | raw e-mail | index | archive | help
[Bcc:ed to net, please follow up on hackers]

Attached are patches which widen the local/foreign address fields in
netstat(1) (so as not to truncate the port number) and the protocol
field in sockstat(1) (to accomodate 'divert').

The netstat patch has the unfortunate side effect of pushing the state
field so far to the right that most states (except LISTEN) spill over.
I consider that the lesser of two evils. I chopped two characters off
the process name field to avoid a similar problem in sockstat.

As usual, I welcome comments and suggestions, and will commit the
patches to -CURRENT in a few days if no-one objects.

The patches are by Ruslan Ermilov, with a few adjustment by yours
truly.

DES
-- 
Dag-Erling Smorgrav - des@yes.no


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?xzpaetem4z5.fsf>