summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-12-01 14:56:00 +0000
committerbz <bz@FreeBSD.org>2009-12-01 14:56:00 +0000
commit3595d5cfed7d9eaa4ef3c6d382c4564a6df138f2 (patch)
tree8d3073d931debd0983ea8fb1f909269e211622ed
parent3c3bf7569ef5da9014f27c65c577f5db3c4d803d (diff)
downloadFreeBSD-src-3595d5cfed7d9eaa4ef3c6d382c4564a6df138f2.zip
FreeBSD-src-3595d5cfed7d9eaa4ef3c6d382c4564a6df138f2.tar.gz
Unbreak user space after if_timer/if_watchdog removal in r199975.
Tested by: glebius
-rw-r--r--share/man/man9/ifnet.916
-rw-r--r--usr.bin/netstat/if.c6
-rw-r--r--usr.bin/netstat/main.c4
-rw-r--r--usr.bin/netstat/netstat.h1
4 files changed, 2 insertions, 25 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9
index 532f6cd..4f0ff98 100644
--- a/share/man/man9/ifnet.9
+++ b/share/man/man9/ifnet.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 14, 2007
+.Dd December 1, 2009
.Os
.Dt IFNET 9
.Sh NAME
@@ -279,13 +279,6 @@ to refer to a particular interface by index
.Xr link_addr 3 ) .
(Initialized by
.Fn if_alloc . )
-.It Va if_timer
-.Pq Vt short
-Number of seconds until the watchdog timer
-.Fn if_watchdog
-is called, or zero if the timer is disabled.
-(Set by driver,
-decremented by generic watchdog code.)
.It Va if_flags
.Pq Vt int
Flags describing operational parameters of this interface (see below).
@@ -401,11 +394,6 @@ flags and flushing queues.
See the description of
.Fn ifioctl
below for more information.
-.It Fn if_watchdog
-Routine called by the generic code when the watchdog timer,
-.Va if_timer ,
-expires.
-Usually this will reset the interface.
.\" .It Fn if_poll_recv
.\" .It Fn if_poll_xmit
.\" .It Fn if_poll_slowinput
@@ -415,7 +403,7 @@ Usually this will reset the interface.
.\" section, below.
.It Fn if_init
Initialize and bring up the hardware,
-e.g., reset the chip and the watchdog timer and enable the receiver unit.
+e.g., reset the chip and enable the receiver unit.
Should mark the interface running,
but not active
.Dv ( IFF_RUNNING , ~IIF_OACTIVE ) .
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index e9e77b9..02f390a 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -200,7 +200,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
u_long ierrors;
u_long idrops;
u_long collisions;
- short timer;
int drops;
struct sockaddr *sa = NULL;
char name[IFNAMSIZ];
@@ -234,8 +233,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
if (bflag)
printf(" %10.10s","Obytes");
printf(" %5s", "Coll");
- if (tflag)
- printf(" %s", "Time");
if (dflag)
printf(" %s", "Drop");
putchar('\n');
@@ -288,7 +285,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
ierrors = ifnet.if_ierrors;
idrops = ifnet.if_iqdrops;
collisions = ifnet.if_collisions;
- timer = ifnet.if_timer;
drops = ifnet.if_snd.ifq_drops;
if (ifaddraddr == 0) {
@@ -435,8 +431,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
show_stat("lu", 10, obytes, link_layer|network_layer);
show_stat("NRSlu", 5, collisions, link_layer);
- if (tflag)
- show_stat("LSd", 4, timer, link_layer);
if (dflag)
show_stat("LSd", 4, drops, link_layer);
putchar('\n');
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index b1c4940..d2f6b46 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -339,7 +339,6 @@ int numeric_port; /* show ports numerically */
static int pflag; /* show given protocol */
int rflag; /* show routing tables (or routing stats) */
int sflag; /* show protocol statistics */
-int tflag; /* show i/f watchdog timers */
int Wflag; /* wide display */
int xflag; /* extra information, includes all socket buffer info */
int zflag; /* zero stats */
@@ -455,9 +454,6 @@ main(int argc, char *argv[])
case 'S':
numeric_addr = 1;
break;
- case 't':
- tflag = 1;
- break;
case 'u':
af = AF_UNIX;
break;
diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h
index 259ca82..c224f46 100644
--- a/usr.bin/netstat/netstat.h
+++ b/usr.bin/netstat/netstat.h
@@ -49,7 +49,6 @@ extern int numeric_addr; /* show addresses numerically */
extern int numeric_port; /* show ports numerically */
extern int rflag; /* show routing tables (or routing stats) */
extern int sflag; /* show protocol statistics */
-extern int tflag; /* show i/f watchdog timers */
extern int Wflag; /* wide display */
extern int xflag; /* extended display, includes all socket buffer info */
extern int zflag; /* zero stats */
OpenPOWER on IntegriCloud