Questions tagged [jnetpcap]

jNetPcap is an open-source Java wrapper for nearly all libpcap library native calls.

Links

129 questions
1
vote
1 answer

java.lang.UnsatisfiedLinkError JNetPcap output error

I received the following error while running my javacode that uses jNetPcap jar : Exception in thread "main" java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)J at…
L29101987
  • 25
  • 2
  • 7
1
vote
1 answer

Object creation impossible in scala

I have the following error while executing the code below. Object creation impossible, since member nextPacket(PcapPacket,T):void in org.jnetpcap.packet.PcapPacketHandler is not defined. How can it be solved ? while (true) { val jpacketHandler…
user3823859
  • 469
  • 1
  • 7
  • 20
1
vote
0 answers

the jnetpcap lib PcapIf, I want save it to a file so no need to choose everytime

Example 1: String serverIP=null; try { File file = new File("serverIP.txt"); if(file.exists()){ serverIP = new Scanner(new File("serverIP.txt")).useDelimiter("\\Z").next(); rmi = (ServerInterface)…
1
vote
1 answer

jNetPcap sendPacket() function duplicating the frame

I would like to ask you a specific question: I'm trying to develop a software switch with the jNetPcap 1.4 library on Java 1.7, the goal is to have a program, that can forward packets received on port no. 1 to port no. 2 and vice versa (just on…
balcsok
  • 33
  • 2
  • 11
1
vote
1 answer

Reading WIRELESS .pcap packet using Java

I want to read captured (.pcap) WIRELESS packets and get information like IP addresses and port number, flag ( from network layer and above layer of OSI model ). SO which JAVA library can help me. I tried with JnetPcap but did not succeed, so…
user3292475
  • 49
  • 1
  • 7
1
vote
1 answer

Data usage counting using jnetpcap

I have written the following code for a program which could measure the total data usage of the computer. I have used the method getTotalSize() of the class PcapPacket. Is it directly indicative of the data usage (if added continuously) or should I…
1
vote
1 answer

No implementation found for Native Lcom/slytechs/library/NativeLibrary

I am stack in using JNetPcap library in an Android project: I can't reach my native application with this code, even I set up the JNetPcap as a library for the project. Could someone help me ? plz My code is as below : import…
N.B
  • 31
  • 1
  • 8
1
vote
1 answer

jnetpcap get html web page source code

I'm using jnetpcap to analyzing packet. I want to get html web page source code. However, when I use html.page() to get source code I get some messy code which look like binary code. Can anyone help me? How to solve it?
user2507405
  • 27
  • 1
  • 4
1
vote
1 answer

Having exception regarding packet buffer JNETPCAP

Hi I was using this example for offline packet capture using JNETPCAP. But I am getting this exception all the time, illegalarguementexception wirelen < buffer len Any idea how can I resolve this problem?
P basak
  • 4,874
  • 11
  • 40
  • 63
1
vote
0 answers

JList updating with live captured packets info (using jNetPcap) is causing list blanking

I am coding app which is capturing packet from 2 NI Cards at the same time in specific thread for them. I am using jnetPcap and I am getting captured packet in jpackethanler's method nextPacket i need to show info from the current packet in JList…
Martin
  • 25
  • 5
1
vote
4 answers

Display IP address from packets

How can I display IP Address from the packets. I am able to display ports and protocols but not the IP addresses from a pcap file. I am using jnetpcap. Any help ?
Aj.
  • 25
  • 1
  • 4
1
vote
2 answers

RTP SSRC: How to know call direction

I am using jNetPcap to decode rtp from tcpdumps. Currently I use the SIP Invite Message and the source IP (and also checking via source ips..) to detect the directions (forward, reverse) from the call.. this is working but not really how it is…
Stefan
  • 2,603
  • 2
  • 33
  • 62
1
vote
1 answer

jnetpcap save rtp payload: both channels

I am using a combination of wireshark's tshark and jnetpcap to decode offline captures and extract the rtp audio payload from files for foward and reverse directions. In the first steps I isolate only the rtp files and save them to an extra…
Stefan
  • 2,603
  • 2
  • 33
  • 62
0
votes
1 answer

binding to some port with jNetPcap

I am using java language with jNetPcap library. I would like to know how can I bind to port 5060. I have to make a server program. So my vision is like that: bind to port 5060 get all packets which are going to my server ip and this port load them…
feromakovi
  • 99
  • 2
  • 9
0
votes
1 answer

Use JNetPcap with Ant

I have an ant project, Here is the build.xml
SanjiSqurt
  • 75
  • 7
1 2 3
8 9