summaryrefslogtreecommitdiffstats
path: root/release/picobsd/tinyware
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-01-27 03:18:55 +0000
committerluigi <luigi@FreeBSD.org>2001-01-27 03:18:55 +0000
commitd96206dc6f138208b8f69bee8dedf4a3078ab32d (patch)
treed881263fdae5d50aaa2085749f074e8958dfff46 /release/picobsd/tinyware
parent2ce587262d31ff02689f731abb38709909077e0c (diff)
downloadFreeBSD-src-d96206dc6f138208b8f69bee8dedf4a3078ab32d.zip
FreeBSD-src-d96206dc6f138208b8f69bee8dedf4a3078ab32d.tar.gz
Add dummy -n option, for compatibility with the standard netstat
Diffstat (limited to 'release/picobsd/tinyware')
-rw-r--r--release/picobsd/tinyware/ns/ns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/picobsd/tinyware/ns/ns.c b/release/picobsd/tinyware/ns/ns.c
index 2d62529..0e2eeff 100644
--- a/release/picobsd/tinyware/ns/ns.c
+++ b/release/picobsd/tinyware/ns/ns.c
@@ -75,7 +75,7 @@ extern int optind;
void
usage()
{
- fprintf(stderr,"\n%s [-rsi] [-p proto] [-w wait]\n",progname);
+ fprintf(stderr,"\n%s [-nrsi] [-p proto] [-w wait]\n",progname);
#ifdef BRIDGING
fprintf(stderr," proto: {ip|tcp|udp|icmp|bdg}\n\n");
#else
@@ -677,11 +677,13 @@ main(int argc, char *argv[])
progname=argv[0];
- while((c=getopt(argc,argv,"irsp:w:"))!=-1) {
+ while((c=getopt(argc,argv,"inrsp:w:"))!=-1) {
switch(c) {
case 'w':
wflag = atoi(optarg) ;
break;
+ case 'n' /* ignored, just for compatibility with std netstat */
+ break ;
case 'r':
rflag++;
break;
OpenPOWER on IntegriCloud