[981] in linux-net channel archive

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

Re: struct ifnet?

daemon@ATHENA.MIT.EDU (Martin Schulze)
Thu Aug 24 02:35:22 1995

From: joey@finlandia.Infodrom.North.DE (Martin Schulze)
To: frayser@earthlink.net (Louis Frayser)
Date: Wed, 23 Aug 1995 12:52:12 +0200 (MET DST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.91.950820205944.263B-100000@lucho.frayser.earthlink.net> from "Louis Frayser" at Aug 20, 95 09:40:34 pm

Hello Louis Frayser!

}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 ^^^^^^^^^^


I had the same error, for me the following has helped:

diff -u --recursive --new-file orig/tcpdump-2.2.1/linuxinclude/netinet/if_ether.h tcpdump-2.2.1/linuxinclude/netinet/if_ether.h
--- orig/tcpdump-2.2.1/linuxinclude/netinet/if_ether.h  Wed Dec 29 05:06:56 1993
+++ tcpdump-2.2.1/linuxinclude/netinet/if_ether.h       Wed Aug  9 21:29:52 1995
@@ -96,7 +96,7 @@
  * is issued for the interface.
  */
 struct arpcom {
-       struct  ifnet ac_if;            /* network-visible interface */
+       struct  ifnet *ac_if;           /* network-visible interface */
        struct  ether_addr ac_enaddr;   /* ethernet hardware address */
        struct  in_addr ac_ipaddr;      /* copy of ip address- XXX */
        struct  mcaddr *ac_mcaddr;      /* table of multicast addrs */

Perhaps also a 

diff -u --recursive --new-file orig/tcpdump-2.2.1/savefile.c tcpdump-2.2.1/savefile.c
--- orig/tcpdump-2.2.1/savefile.c       Mon Jan 27 06:29:30 1992
+++ tcpdump-2.2.1/savefile.c    Wed Aug  9 21:41:03 1995
@@ -37,7 +37,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/time.h>
-#include <net/bpf.h>
+#include "net/bpf.h"

 #include "version.h"
 #include "savefile.h"

Regards,

	Joey

-- 
   / Martin Schulze  *  joey@infodrom.north.de  *  26129 Oldenburg /
  / +49-441-777884  *  Login&Passwd: nuucp  *  Index: ~/ls-lR.gz  /
 /                                     http://home.pages.de/~joey/
/ Unix is user friendly ...  It's just picky about it's friends /
----------------------------------------------------------------
28.8.95: Oldenburger Linux-Stammtisch ab 20 Uhr im DaCapo

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