[946] in linux-net channel archive

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

struct ifnet?

daemon@ATHENA.MIT.EDU (Louis Frayser)
Mon Aug 21 20:54:56 1995

Date: Sun, 20 Aug 1995 21:40:34 -0700 (PDT)
From: Louis Frayser <frayser@earthlink.net>
To: linux-net@vger.rutgers.edu
In-Reply-To: <199508202106.XAA05305@lrc.epfl.ch>

I'm compiling tcpdump, but can't find a definition  for "struct ifnet".  
I think I had this problem once before but now there doesn't seem to 
be any Linux-header-file with this definition in it.

Has this struct been renamed, or discontinued?

Script started on Sun Aug 20 19:25:53 1995

hoser@lucho:/usr/local/home/ftp/pub/incoming/Network/tcpdump/
	tcpdump-2.2.1/i586-linux:# make
rm -f tcpgram.o; gcc -g -O -DCSLIP -DPPP -DFDDI -I. -I.. -I../linuxinclud
	e -c tcpgram.c
In file included from tcpgram.y:34:
	../linuxinclude/netinet/if_ether.h:99: field `ac_if' has incomplete type
make: *** [tcpgram.o] Error 1

^^^^^^^^ storage class of ac_if couldn't be determined  in ether.h ^^^^^^^^^^


# grep ac_if ../linuxinclude/netinet/if_ether.h
struct	ifnet ac_if;		/* network-visible interface */
^^^^^^^^^ struct if_net is the type definition that is missing ^^^^^^^^^^^^

# grep ifnet `find /usr/include/linux/ -name "*.h"`
/usr/include/linux/route.h:	struct ifnet	*rt_ifp;
^^^^^^^^^ One kernel-include-file, route.h, also references "struct ifnet" ^^^

# find /usr/include -follow -name '*.h' -exec grep ifnet {} \; 
struct ifnet    *rt_ifp;
^^^^^ Looking at all of /usr/include still doesn't provide a definition


I need a clue.  Can you help me?

-Louis
+--------------------------------+-------------------------------------+
| mailto:frayser@earthlink.net   |  http://www.earthlink.net/~frayser  |
|        frayser@aol.com         |                                     |
+--------------------------------+-------------------------------------+

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