lkml.org 
[lkml]   [2003]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net devices
On Tue, 29 Apr 2003 14:34:18 +0200 Christian Bornträger <linux@borntraeger.net> wrote:

| Summary: /proc/net/devices doesnt show all devices using cat. With dd all are
| available.
|
| I tested a kernels prior to
| http://linus.bkbits.net:8080/linux-2.5/cset@1.797.156.3
| and it doesnt seem to have this problem.


I haven't tried to make that many net devices.
Acme, does this look helpful?
Christian, can you test this patch?

--
~Randy


patch_name: proc_net_dev_seq.patch
patch_version: 2003-04-29.09:10:38
author: Randy.Dunlap <rddunlap@osdl.org>
description: fix /proc/net/dev to include entire file for output
product: Linux
product_versions: linux-2568-428
changelog: seq_start() needs to increment i;
URL: _
requires: _
conflicts: _
maintainer: davem@redhat.com
diffstat: =
net/core/dev.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naur ./net/core/dev.c%SEQ ./net/core/dev.c
--- ./net/core/dev.c%SEQ 2003-04-28 15:07:01.000000000 -0700
+++ ./net/core/dev.c 2003-04-29 09:06:18.000000000 -0700
@@ -1789,7 +1789,7 @@
struct net_device *dev;
loff_t i;

- for (i = 0, dev = dev_base; dev && i < pos; dev = dev->next);
+ for (i = 0, dev = dev_base; dev && i < pos; dev = dev->next, i++);

return i == pos ? dev : NULL;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:35    [from the cache]
©2003-2011 Jasper Spaans