public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net device
@ 2003-05-02  0:16 Chuck Ebbert
  2003-05-02  1:31 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Ebbert @ 2003-05-02  0:16 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

Randy Dunlap wrote:

> The reason that I say that is that I can reproduce this problem on
> 2.5.68, but only in an xterm or similar window, but when I switch back
> to a console, the entire device list is displayed.

 There are strange bugs in the console layer and/or the VGA text console.
Choosing 34-line text mode results in a 30-line screen that the system
thinks has 34, with four 'hidden' lines at the bottom (on PCI TNT adapter.)
Maybe a similar thing is happening in X?

 And BTW I found a way to get lots of network devices:

  1. Load the gre tunneling driver (GRE tunnels over IP)
  2. ip tunnel add gre1 mode gre remote 127.1.1.1 local 127.0.0.1 dev lo
  3. Repeat for as many as you like... I can't make the kernel
     send packets through them but they show up on the list.

------
 Chuck

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net device
  2003-05-02  0:16 [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net device Chuck Ebbert
@ 2003-05-02  1:31 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2003-05-02  1:31 UTC (permalink / raw)
  To: Chuck Ebbert; +Cc: linux-kernel

On Thu, 1 May 2003 20:16:00 -0400 Chuck Ebbert <76306.1226@compuserve.com> wrote:

| Randy Dunlap wrote:
| 
| > The reason that I say that is that I can reproduce this problem on
| > 2.5.68, but only in an xterm or similar window, but when I switch back
| > to a console, the entire device list is displayed.
| 
|  There are strange bugs in the console layer and/or the VGA text console.
| Choosing 34-line text mode results in a 30-line screen that the system
| thinks has 34, with four 'hidden' lines at the bottom (on PCI TNT adapter.)
| Maybe a similar thing is happening in X?

I don't think it's quite as deep down as all that.  I built cat.c with
some additional debugging fprintf()s in it.  When I run it from the
text console, it tells me that the variable <outsize> is 4096
(derived from #define ST_BLKSIZE(statbuf)  <about 4 different #defines>.

However, when run from an X terminal window, it tells me that outsize
is 1024.

I don't have time right now to dig into the 4 #defines for ST_BLKSIZE
to see where the problem is.

Anyway, it looks as though the kernel read function for /proc/net/dev
is filling up cat's buffer and just stopping, which seems OK to me.
Looks like a cat bug IMO, but I haven't finished looking at it.


|  And BTW I found a way to get lots of network devices:
| 
|   1. Load the gre tunneling driver (GRE tunnels over IP)
|   2. ip tunnel add gre1 mode gre remote 127.1.1.1 local 127.0.0.1 dev lo
|   3. Repeat for as many as you like... I can't make the kernel
|      send packets through them but they show up on the list.

OK.  Loading dummy driver multiple times is OK for this.

Later,
--
~Randy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-02  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-02  0:16 [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net device Chuck Ebbert
2003-05-02  1:31 ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox