diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-02-21 16:10:28 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-02-21 16:10:28 +0100 |
commit | 5bcc932168f262e2738684b159c680bb295271c5 (patch) | |
tree | efbfdaa3da68cf5ae3d76c439314b20915ddfb40 /sys/src/9/port/netif.c | |
parent | 00ba1aac9ed4df13a9880ad63a4291a953d53752 (diff) |
netif: fix stat() on "stats" and "ifstats" files in network interface
the kernel would go into endless loop when stating "stats" and "ifstats"
files and the network interface having no connections, or otherwise return
wrong stat info.
Diffstat (limited to 'sys/src/9/port/netif.c')
-rw-r--r-- | sys/src/9/port/netif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/netif.c b/sys/src/9/port/netif.c index 3d77f0500..e775fe847 100644 --- a/sys/src/9/port/netif.c +++ b/sys/src/9/port/netif.c @@ -67,7 +67,7 @@ netifgen(Chan *c, char*, Dirtab *vp, int, int i, Dir *dp) /* second level contains clone plus all the conversations */ t = NETTYPE(c->qid.path); - if(t == N2ndqid || t == Ncloneqid || t == Naddrqid){ + if(t == N2ndqid || t == Ncloneqid || t == Naddrqid || t == Nstatqid || t == Nifstatqid){ switch(i) { case DEVDOTDOT: q.type = QTDIR; |