[3276] in linux-net channel archive

home help back first fref pref prev next nref lref last post

struct ifnet in struct rtentry in

daemon@ATHENA.MIT.EDU (tony@trishul.sci.gu.edu.au)
Tue Jun 18 00:27:30 1996

Date: 	Tue, 18 Jun 1996 10:38:09 +1000
To: Linus.Torvalds@cs.helsinki.fi, linux-gcc@vger.rutgers.edu,
        linux-kernel@vger.rutgers.edu, linux-net@vger.rutgers.edu
From: tony@trishul.sci.gu.edu.au

I was attempting to compile rpc-1.00 and had *heaps* of problems, most
of which are directly related to the recent changes in linux-2.0 and
libc... so much of the networking related stuff in the new kernel has
changed that it's made a lot of the older net software a nightmare to
compile.

With rpc-1.00 though, I found one problem that I couldn't resolve...

rstat_proc.c: In function `updatestat':
rstat_proc.c:180: storage size of `ifnet' isn't known

Hmm...

% find /usr/include -follow -type f | xargs grep -n ifnet /dev/null
/usr/include/linux/route.h:36:  struct ifnet	*rt_ifp;

That's all that showed up!  Nowhere could I find the actual
declaration of `struct ifnet'.

It's one of the elements of `struct rtentry'.  Does this mean that
anything that uses this struct will also bomb out?

Hey, waddaya know... I just did the same grep over my 1.2.13 sources
and it also turned up exactly the same line in the same place.  Am I
missing something here?

I'm certainly no expert on this, but it looks as if these structs
haven't existed in linux for a long time (if they ever really did),
yet they are still referred to.  I assume that it is either an
oversight for the ommision, or that the declaration for rt_ifp in
`struct rtentry', or even rtentry itself, need to be removed from
<linux/route.h>.

Cheers
Tony


home help back first fref pref prev next nref lref last post