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

Compile the Tele Traffic Trapper network analysis tool Network
I wanted to use Tele Traffic Trapper (TTT) under OS X, but ran into a few snags getting it to work. Here's the solution I found that allowed me to compile the package:
  1. Install Fink.
  2. Download and install the Fink TTT dependencies and dependencies-dev packages.
  3. Download TTT.
The configure script doesn't know know about Darwin, so you have to supply a few arguments:
./configure -build=powerpc --with-blt=/sw --with-tcl=/sw --with-tk=/sw
The program will now make successfully. Other arguments may work as well, and I didn't list all of the dependencies; they're documented in the package, but this worked for me with a default Fink install under 10.3.8.

[robg adds: The link above should be to the real TTT homepage, but I couldn't get it to load. I found this page, though, which has at least some version and a basic description of the package. Basically, it's similar to the network analysis program tcpdump, but it supports some additional features like 'real-time, graphical, and remote traffic-monitoring,' according to the linked page. I haven't tried to compile it.]
    •    
  • Currently 2.50 / 5
  You rated: 1 / 5 (4 votes cast)
 
[7,209 views]  

Compile the Tele Traffic Trapper network analysis tool | 6 comments | Create New Account
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: mthurmond on Apr 01, '05 11:01:05AM

Well, I don't know how/why I posted that link, it's obviously not correct; your corrected one is the real one as far as I know.



[ Reply to This | # ]
Compile the Tele Traffic Trapper network analysis tool
Authored by: timhaigh on Apr 02, '05 11:04:14PM
The way I got fink to install the right dependencies was to use.

fink install blt

[ Reply to This | # ]
Compile the Tele Traffic Trapper network analysis tool
Authored by: timhaigh on Apr 02, '05 11:37:16PM

Oops some are missing it can't find the header blt.h

when I try and configure TTT it fails.



[ Reply to This | # ]
Compile the Tele Traffic Trapper network analysis tool
Authored by: timhaigh on Apr 02, '05 11:38:50PM

I fixed it.


fink install blt-dev



[ Reply to This | # ]
Compile the Tele Traffic Trapper network analysis tool
Authored by: andyinindy on Apr 05, '05 04:29:56PM

Configure succeeds, but make fails with the following:

[snip]
gcc -O2 -Wall -Wwrite-strings -fwritable-strings -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_GETHOSTENT=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DIPV6 -DTTT_LIBRARY=\"/sw/lib/ttt\" -I. -I/sw/include -I/sw/include -I/usr/X11R6/include -c net_read.c
net_read.c: In function `open_pf':
net_read.c:1164: error: `BIOCGBLEN' undeclared (first use in this function)
net_read.c:1164: error: (Each undeclared identifier is reported only once
net_read.c:1164: error: for each function it appears in.)
make: *** [net_read.o] Error 1

What gives??



[ Reply to This | # ]
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 | # ]