This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

filtering out protocol, sequence number, and ack using tshark

asked Nov 23 '17

How can I filter out the protocol, sequence number, and ack using tshark? I could filter out other options as follow:

tshark -r traffic.pcap -T fields -E separator=, -e frame.number -e frame.time_epoch -e ip.src -e ip.dst -e tcp.srcport -e tcp.dstport  -e frame.len -e tcp.flags  -e _ws.col.Info -E header=y -E quote=d -E occurrence=f

1 Answer

1

answered Nov 23 '17

Use the "-e" options listed below:

  • protocol, -e _ws.col.Protocol
  • sequence number, assuming you mean tcp sequence number, -e tcp.seq
  • ack, for ack number use -e tcp.ack, for ack flag use -e tcp.flags.ack

In general to find the filter name select the item in the packet details pane and look at the name in parenthesis in the status bar at the bottom. Any column can be used by prefixing the name with "_ws.col.".

cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.