-/* $OpenBSD: if.c,v 1.79 2022/08/26 18:37:44 kn Exp $ */
+/* $OpenBSD: if.c,v 1.80 2022/09/08 13:18:47 kn Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
"Ipkts", if_errs->iname,
"Opkts", if_errs->oname, "Colls");
}
- if (tflag)
- printf(" %s", "Time");
putchar('\n');
lim = buf + len;
ifd->ifi_iqdrops);
total += if_errs->count(ifd->ifi_oerrors,
ifd->ifi_oqdrops);
- if (tflag)
- total += 0; // XXX ifnet.if_timer;
if (total == 0)
continue;
}
ifd->ifi_opackets,
if_errs->count(ifd->ifi_oerrors, ifd->ifi_oqdrops),
ifd->ifi_collisions);
- if (tflag)
- printf(" %4d", 0 /* XXX ifnet.if_timer */);
putchar('\n');
}
-/* $OpenBSD: main.c,v 1.121 2021/01/26 18:22:45 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.122 2022/09/08 13:18:47 kn Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
int rflag; /* show routing tables (or routing stats) */
int Rflag; /* show rdomain and rtable summary */
int sflag; /* show protocol statistics */
-int tflag; /* show i/f watchdog timers */
int vflag; /* be verbose */
int Wflag; /* show net80211 protocol statistics */
tableid = getrtable();
while ((ch = getopt(argc, argv,
- "AaBbc:deFf:ghI:iLlM:mN:np:P:qRrsT:tuvW:w:")) != -1)
+ "AaBbc:deFf:ghI:iLlM:mN:np:P:qRrsT:uvW:w:")) != -1)
switch (ch) {
case 'A':
Aflag = 1;
errx(1, "invalid table id: %s", errstr);
Tflag = 1;
break;
- case 't':
- tflag = 1;
- break;
case 'u':
af = AF_UNIX;
break;
"usage: netstat [-AaBln] [-M core] [-N system] [-p protocol] [-T rtable]\n"
" netstat -W interface\n"
" netstat -m\n"
- " netstat -I interface | -i [-bdehnqt]\n"
- " netstat -w wait [-bdehnqt] [-c count] [-I interface]\n"
+ " netstat -I interface | -i [-bdehnq]\n"
+ " netstat -w wait [-bdehnq] [-c count] [-I interface]\n"
" netstat -s [-gru] [-f address_family] [-p protocol]\n"
" netstat -g [-lnu] [-f address_family]\n"
" netstat -R\n"
-.\" $OpenBSD: netstat.1,v 1.94 2022/06/19 13:59:22 claudio Exp $
+.\" $OpenBSD: netstat.1,v 1.95 2022/09/08 13:18:47 kn Exp $
.\" $NetBSD: netstat.1,v 1.11 1995/10/03 21:42:43 thorpej Exp $
.\"
.\" Copyright (c) 1983, 1990, 1992, 1993
.\"
.\" from: @(#)netstat.1 8.8 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: June 19 2022 $
+.Dd $Mdocdate: September 8 2022 $
.Dt NETSTAT 1
.Os
.Sh NAME
.Fl m
.Nm
.Fl I Ar interface | Fl i
-.Op Fl bdehnqt
+.Op Fl bdehnq
.Nm
.Fl w Ar wait
-.Op Fl bdehnqt
+.Op Fl bdehnq
.Op Fl c Ar count
.Op Fl I Ar interface
.Nm
.It Fl T Ar rtable
Select an alternate routing table to query.
The default is to use the current routing table.
-.It Fl t
-With the
-.Fl i
-option, display the current value of the watchdog timer function.
.It Fl u
Limit statistics or address control block reports to the
.Dv AF_UNIX
-/* $OpenBSD: netstat.h,v 1.76 2021/01/26 18:22:45 deraadt Exp $ */
+/* $OpenBSD: netstat.h,v 1.77 2022/09/08 13:18:47 kn Exp $ */
/* $NetBSD: netstat.h,v 1.6 1996/05/07 02:55:05 thorpej Exp $ */
/*
extern int rflag; /* show routing tables (or routing stats) */
extern int Rflag; /* show rdomain and rtable summary */
extern int sflag; /* show protocol statistics */
-extern int tflag; /* show i/f watchdog timers */
extern int vflag; /* be verbose */
extern int Wflag; /* show net80211 protocol statistics */