question about filters

2 replies [Last post]
rfernandezv
Offline
Joined: 10/14/2011

Hi, I have a question... I just need to capture VOIP packets(core protocols of jnetpcap), can I use PcapBpfProgram??, if I can, how is the expression in :

PcapBpfProgram program = new PcapBpfProgram();
pcap.compile(program, "xxxxxxxxxxxx", 0, 0);

xxxxxx = ???
the solution can be .... xxxxx= "port sip || port rtp || port sdp" ??????

or another one?

...thanks .....

Atte. Richar F.V.

Mark Bednarczyk
Offline
Joined: 03/22/2008
The syntax for pcap filter is

Sly Technologies, Inc.
http://slytechs.com

rfernandezv
Offline
Joined: 10/14/2011
thanks

Comment viewing options

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