This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

test_ifindex, current CVS glibc && Linux 2.3.5



As some probably noticed, ifindex is broken in glibc 2.1.1 with Linux
2.3.5.  The recent changes of Ulrich seems to have fixed this - but
let's look closer:

I compiled the current glibc CVS version on Linux 2.2.10pre3 and
inet/test_ifindex.out contains these 5 lines:
Idx            Name | Idx           Name
  1              lo |   1             lo      okay
  1            lo:0 |   1             lo      okay
  2           isdn1 |   2          isdn1      okay
  3           isdn4 |   3          isdn4      okay

Booting to Linux 2.3.5, I rerun the tests and got only these two
lines:
Idx            Name | Idx           Name
  1              lo |   1             lo      okay

netstat -i shows me that all four interfaces are available:
Kernel Interface table
Iface   MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
isdn1  1500   0       48      0      0      0       46      0      0      0 OPRU
isdn4  1500   0        0      0      0      0        0      0      0      0 OPRU
lo     3924   0      543      0      0      0      543      0      0      0 LRU
lo:0   3924   0      - no statistics available -                        LRU

But test_ifindex only reports the first one :-(.  Is this a kernel bug
(Linux 2.3.5 on i486) or a bug in glibc?  Is this only a problem on my
system or can others running Linux 2.3.5 or newer reproduce it?

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]