here is the command I tried to use:
And the output:
That is the user guide I found. But I didnt get any useful info according to my issue. Please help.
I got this:
So how can save only those packets which I would filter by protocol name? asked 04 Feb '13, 06:41 HiB edited 04 Feb '13, 06:57 |
2 Answers:
The following might work for you: answered 04 Feb '13, 10:16 cmaynard ♦♦ thanks, in this case, but in generally I would do with protocol filtering, not with port filtering (04 Feb '13, 10:23) HiB You indicated that, "I would like to save only the diameter packets". That implies that you are in need of an appropriate capture filter in order to accomplish this. Since you need a capture filter, you must follow capture filter syntax, and not Wireshark's display filter syntax for the diameter protocol. See also the Wireshark diameter wiki page. (04 Feb '13, 11:00) cmaynard ♦♦ |
The output you're seeing is a pretty good explanation of what's going wrong. Capture filters are used to limit the packets that are actually sniffed off the wire. You are probably looking for a Display Filter, which can be applied using the -R flag:
I'm not familiar with the 'diameter' protocol, but I believe this will help you out. answered 04 Feb '13, 06:51 zachad thanks, but then I need to edit my original question, since I know this -R switch (04 Feb '13, 06:53) HiB |
With reference to question about filtering live captures with tshark, see this question. Note in particular the answer by @JeffMorriss
thanks, so this is a bug in tshark
The "bug" is more a consequence of how tshark works after the privilege separation work was done. As the comments on the bug show, some work is being done to improve the situation, but right now doing this doesn't work in release builds.