Hi,
I'm looking to write a packet capture routine to do the following;
1. Read Packets from 2-3 network interfaces;
2. Look for a specific pattern (e.g SIP (ACK))
3. Dump the specific UDP stream (RTP) to file i.e. from a specific src/dst port and src/dstIP.
The ideas is to be able to capture stimulations RTP streams on the network based on analysing passing traffic.
Is this possible with jNetpcap?
All the Best,
Shadi
Here is a link to a test that does almost exactly that. It captures RTP audio stream and extracts the RTP payload to individual files:
http://jnetpcap.svn.sourceforge.net/viewvc/jnetpcap/jnetpcap/trunk/tests...
You will be interested to look at test method: testRtpAudioExtract.
The analysis part of the API isn't complete yet, but you should be able to work with whats there to accomplish your goal.