From owner-cvs-all Fri Jun 15 11:25:54 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 489A137B403; Fri, 15 Jun 2001 11:25:43 -0700 (PDT) (envelope-from ru@FreeBSD.org) Received: (from ru@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5FIPhO20350; Fri, 15 Jun 2001 11:25:43 -0700 (PDT) (envelope-from ru) Message-Id: <200106151825.f5FIPhO20350@freefall.freebsd.org> From: Ruslan Ermilov Date: Fri, 15 Jun 2001 11:25:42 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/netstat if.c main.c netstat.1 netstat.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ru 2001/06/15 11:25:42 PDT Modified files: usr.bin/netstat if.c main.c netstat.1 netstat.h Log: First round of netstat(1) cleanup. Removed the ambiguity in -s, -f, -p and -i flags handling. Basically, there are four displays (except others): 1. PCB display. 2. Protocol statistics display. (-s) 3. Interface statistics display. (-i) 4. Per-interface protocol statistics display. (-i -s) All of the above except 3) can be limited to a particular protocol family (-f) or a single protocol (-p). Some examples: 1. netstat -f inet -- show PCBs of all INET protocols 2. netstat -p udp -- show PCB of UDP protocol only (NEW!) 3. netstat -s -- show protocol statistics for all families 4. netstat -s -f inet -- show INET protocols statistics 5. netstat -s -p icmp -- show ICMP protocol statistics This is a work in progress. Manpage has been fixed slightly, but is still incomplete. Revision Changes Path 1.42 +2 -2 src/usr.bin/netstat/if.c 1.45 +22 -27 src/usr.bin/netstat/main.c 1.33 +31 -38 src/usr.bin/netstat/netstat.1 1.25 +1 -2 src/usr.bin/netstat/netstat.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message