2007-11-15 08:00:17 UTC
Hi,
I'm using jpcap on linux to run the packet sniffing application carnivore (http://r-s-g.org/carnivore/).
The problem was that the libjpcap.so provided with carnivore didn't work for my distro (Mandriva 2008). So I grabbed the latest source package of jpcap and tried to compile it. I had two problems:
* JAVA_HOME variable missing from the env_jpcap script
* In the line 678 of jpcap.c, I got the compilation error:
jpcap.c:678: error: lvalue required as left operand of assignment
which I solved by removing the (char*) cast of the ifr variable used in the for loop
After doing these two fixes, I was able to compile libjpcap.so and use it in the linux version of carnivore.
AC