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

How to filter only errors or bad tcp packets

0

I want to apply only filter such as

Bad TCP

Checksum errors

ICMP errors

for wireshark. How can I achieve this.

asked 29 Apr '15, 12:07

Devendra's gravatar image

Devendra
1112
accept rate: 0%

edited 29 Apr '15, 12:23


One Answer:

0

ICMP should be easy, just filter away echo request and reply (type 8 and 0). Unless you have funky stuff like address mask/timestamp requests that should only show problems. The best filter for this is

(icmp.type > 0 and icmp.type < 8) or icmp.type > 8

Filtering for checksum errors doesn't make sense because you won't be able to capture real packets with checksum errors. They'd be dropped by your network card before you ever see them. See this blog post for more details: https://blog.packet-foo.com/2013/05/capturing-damaged-frames/

For bad TCP you could try to work with the filter

tcp.analysis.flags

answered 29 Apr '15, 12:17

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%