From 689b6abf98d8f9ae31541c526ff14fc4fda4b89a Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 11 Jan 2010 03:00:17 +0000 Subject: Add a new option, -q howmany, which when used in conjuction with -w, exits netstat after _howmany_ outputs. Requested by: thomasa Reviewed by: freebsd-net (bms, old version in early 2007) MFC after: 1 month --- usr.bin/netstat/netstat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/netstat/netstat.h') diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h index c224f46..485901d 100644 --- a/usr.bin/netstat/netstat.h +++ b/usr.bin/netstat/netstat.h @@ -45,6 +45,7 @@ extern int hflag; /* show counters in human readable format */ extern int iflag; /* show interfaces */ extern int Lflag; /* show size of listen queues */ extern int mflag; /* show memory stats */ +extern int noutputs; /* how much outputs before we exit */ extern int numeric_addr; /* show addresses numerically */ extern int numeric_port; /* show ports numerically */ extern int rflag; /* show routing tables (or routing stats) */ -- cgit v1.1