I try to use the jnetpcap in RHEL4,
But when try to sendPacket, it failed.
I found that my libpcap version is 0.8.4.
Then I update the libpcap to 0.9.4,
I see in the manul that if libpcap version > 0.9.3, the jnetpcap will support sendpacket API,
But it still failed.
Why?
I see the jnetpcap will support FreeBSD,
Is this version released?
The libjnetpcap.so does not dynamically check the version of the libpcap. The build scripts check during compilation. The minimum pre-requisite for RHEL4 is 0.8 and therefore only 0.8 API is compiled into the native library.
The only way around that is to compile jnetpcap yourself on RHEL4 with the newer libpcap package installed. The build script will detect it and compile the higher API level.
Either way you should use Pcap.isSendPacketSupported() call, otherwise you will get operation unsupported exception with jnetpcap libraries that do not have the call compiled in.
The only way around that is to compile jnetpcap yourself on RHEL4 with the newer libpcap package installed. The build script will detect it and compile the higher API level.
Either way you should use Pcap.isSendPacketSupported() call, otherwise you will get operation unsupported exception with jnetpcap libraries that do not have the call compiled in.
Hi, Mark.
Thanks for your reply.
It is a really tough stuff to build jnetpcap on RHEL4.^-^
And is now jnetpcap 2.0 support FreeBSD now?
To build on RHEL: http://jnetpcap.com/node/357
No support for bsd yet. Its coming though.
Thanks Mark !
And look forward to seeing the jnetpcap work on BSD.