mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add dummy -n option, for compatibility with the standard netstat
This commit is contained in:
parent
f8acf87bb5
commit
4ff9c03cc5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71702
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue