Libpcap wrapper

Intermittent SIGSEGV


I'm experiencing issues with Jnetpcap and the JVM getting a segmentation fault intermittently. The problem occurs with Jnetpcap 1.3 or 1.4 latest release.

I'm running:
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Linux .. 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

The problem always seems to be here:

C [] Java_org_jnetpcap_nio_JBuffer_getUShort0+0x34
j org.jnetpcap.nio.JBuffer.getUShort0(JZI)I+0
j org.jnetpcap.nio.JBuffer.getUShort(I)I+18
j org.jnetpcap.packet.JHeader.decode()V+1
j org.jnetpcap.packet.JPacket.getHeaderByIndex(ILorg/jnetpcap/packet/JHeader;)Lorg/jnetpcap/packet/JHeader;+40
j org.jnetpcap.packet.JPacket.getHeader(Lorg/jnetpcap/packet/JHeader;I)Lorg/jnetpcap/packet/JHeader;+27
j org.jnetpcap.packet.JPacket.getHeader(Lorg/jnetpcap/packet/JHeader;)Lorg/jnetpcap/packet/JHeader;+3

Any ideas?


Received signal strength


I'd like to get the received signal strength (RSSI) for every received WLAN packet. I can do that with wireshark, so this information must be somwhere.

My setup:
Ubuntu 12.04.2 LTS (precise)
3.2.0-48-generic x86_64

jNetPcap Release 1.3.0 (2011-04-01)

I've compiled the svn trunk and integrated the newstuff with some radotap definitions in it, but I was not able to use it. Is there any documentation on the radiotap stuff?

How can I get the RSSI level?


Syndicate content