Share

Network Packet Capture Facility for Java

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

problems compiling libjpcap on linux

  1. 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
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.