From owner-freebsd-net Sat Jul 3 2:56:48 1999 Delivered-To: freebsd-net@freebsd.org Received: from des.follo.net (des.follo.net [195.204.143.216]) by hub.freebsd.org (Postfix) with ESMTP id 763A51536F; Sat, 3 Jul 1999 02:56:41 -0700 (PDT) (envelope-from des@des.follo.net) Received: (from des@localhost) by des.follo.net (8.9.3/8.9.3) id LAA54563; Sat, 3 Jul 1999 11:56:30 +0200 (CEST) (envelope-from des) To: hackers@freebsd.org Subject: netstat(1) / sockstat(1) field width adjustments Organization: Yes Interactive Visit-Us-At: http://www.yes.no/ From: Dag-Erling Smorgrav Date: 03 Jul 1999 11:56:30 +0200 Message-ID: Lines: 20 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [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-net" in the body of the message