lkml.org 
[lkml]   [2003]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net devices
On Tue, 29 Apr 2003 09:28:57 -0700 "Randy.Dunlap" <rddunlap@osdl.org> wrote:

| 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?
|
| --
|
|
| 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;
| }
| -


Oh well, I don't think that works.

How do I configure the dummy network driver to get loads of interfaces?

--
~Randy
-
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    [W:0.010 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site