Using JNetPcap in RHEL4

4 replies [Last post]
jason.lin
Offline
Joined: 02/25/2010

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?

Mark Bednarczyk
Mark Bednarczyk's picture
Offline
Joined: 03/22/2008
The libjnetpcap.so does not

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.

Sly Technologies, Inc.
R&D

jason.lin
Offline
Joined: 02/25/2010
The libjnetpcap.so does not

Mark B. wrote:
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.

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?

Mark Bednarczyk
Mark Bednarczyk's picture
Offline
Joined: 03/22/2008
To build on RHEL:

To build on RHEL: http://jnetpcap.com/node/357

No support for bsd yet. Its coming though.

Sly Technologies, Inc.
R&D

jason.lin
Offline
Joined: 02/25/2010
To build on RHEL and jnetpcap in BSD

Thanks Mark !
And look forward to seeing the jnetpcap work on BSD.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.