This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

filter traffic by protocol

0

I want to use a command line filter to sort out the traffic by protocol. For example, how can I show other traffic aside from http? Also how can I then get a count of how many TCP sessions exist my packet capture?

asked 15 Oct '13, 13:45

jayhawk100's gravatar image

jayhawk100
11112
accept rate: 0%


One Answer:

1

There are several ways of doing this. A simple display filter like "not tcp.port==80" (or whatever port http is using) will do it.

Also, Statistics, Conversations (TCP Tab) will show you how many streams are in play.

answered 15 Oct '13, 14:19

hansangb's gravatar image

hansangb
7912619
accept rate: 12%

Thanks, I figured I could use a filter syntax like "not http",etc. For the second question, how would I get those conversation statistics from the command line? I don't have the gui on my older linux OS.

(15 Oct '13, 15:00) jayhawk100
1

tshark -z conv,tcp -q -r somefilehere.pcap

-z says give me the stats for tcp conversation -q says give me the summary and not a per packet info.

(15 Oct '13, 17:26) hansangb