Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Compile the Tele Traffic Trapper network analysis tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compile the Tele Traffic Trapper network analysis tool
Authored by: kmschindler on Apr 10, '05 10:24:49AM

I had the same problem, but maybe I fixed it. However, I have no idea about the meaning of the fix and any side effects. So, if the world is eaten up by strangelets after you applied this fix, it is your and only your responsibility. I'll give an outline about how I found it. Maybe, someone more knowledgeable than me can comment/correct this :)

grep of /sw and /usr for the culprit "BIOCGBLEN" revealed that it is defined in /usr/include/net/bpf.h and is also present in /usr/share/man/man4 bpf. Nothing in /sw. BTW. libpcap, blt, tcltk were installed using fink prior to grep.

In order to define BIOCGBLEN I extended the file netread.c:

here comes the fix:

Open netread.c with your favourite text editor and search the line with:

#include <netinet/in.h>

and add the following line before it:

#include <net/bpf.h>

Probably, the exact location is not very important, but that's what I did and I did not check anything else.

Save the file.

I also modified the configure command. No idea whether it was actually necessary. Probably not.

./configure -build=powerpc --with-blt=/sw --with-tcl=/sw --with-tk=/sw --with-pcap=/sw

After this, simply make.

That was it.
Hint: ttt needs X11, so you have to start the ttt programs in the X11 xterm terminals. You get an error, if you do so in Terminal.



[ Reply to This | # ]