November 2015


Hi Mark

Just wondering how to remove the offset and extra text from the payload.toHexdump().

i.e if we have the following Hexdump:

0000: 80 63 00 3e 00 e2 04 a0 00 00 0a 4a 02 04 02 00 .c.>.......J....
0010: 10 00 00 00 05 00 00 00 29 00 00 02 bc 00 01 00 ........).......
0020: 15 3e 22 93 02 00 00 00 00 00 00 00 00 00 00 17 .>".............
0030: 71 00 02 bc q...

How would we get just the payload parts:

80 63 00 3e 00 e2 04 a0 00 00 0a 4a 02 04 02 00
10 00 00 00 05 00 00 00 29 00 00 02 bc 00 01 00
15 3e 22 93 02 00 00 00 00 00 00 00 00 00 00 17
71 00 02 bc

Thank you

Decode DynamicType 99 RTP packet

Hi there

I am looking to decode RTP packets with dynamic payload (type 99).

I have had a look at the program you have written and was wondering if you had any suggestions on how to go about decoding Dynamic payloads with jNetPcap?

Any help would be greatly appreciated.

Kind regards

Read Packet Protocol

Hi all.

I just use this lib for some week, and i want to ask about get packet protocol.

I want to get last protocol of packet, but I have no way to find this. I followed this topic, but in this line, seems have no getStaticLastHeader() method.
Header last = JPacket.getStaticLastHeader(packet);

So how i can get protocol of the packet?

Thank all for reading, and sorry for my bad english. Thank you very much.

extract smtp, dns and ftp headers from pcap file

dear all
i have a pcap file and i want to read the smtp,ftp and dns headers in human readable format. for http i ca do it in this way:
if (packet.hasHeader(http)) {
Http h = packet.getHeader(http);
String s = new String(h.getHeader());

output is like this:

GET /show.aspx?s=4&u=635202019766428367 HTTP/1.1
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1

for other application layer protocols how can i do it??
could anyone please help me?
thanks a lot

Using Jnetpcap in Spring


I'm Trying to use Jnetpcap in a Web Application. It is working fine with the first startup of the Application Server.
i.e., The Native Libraries are registering Correctly and it able to parse the Input files.

But, once I do redeployment of code or enable/disable of the WAR file. (i.e., Application server is not restarted, only the application is redeployed) it fails to startup, the native libraries are not registered and throwing

java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)

Once, wee restart the Application Server, It works Fine.

Please let me know how to un-register the Native Library?

I'm Trying some thing like this..


But it doesn't Help....

"Unable To Satisfy Dependency" problem


I have a need to decode radius and dhcp traffic for a large number of devices (approx 6 million). Due to the amount of data this needs to be run across multiple servers so it is preferable to be written in Java or Scala. Can jNetPcap grab fields out of DHCP and Radius packets? Happy to purchase the commercial version if it is available and does what we need. It would need to decode v6 information also.