Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a pcap which contains only tcp packets. now i want to see only those packets which have non zero payload length. can someone please let me know which display filter to use ? using

data.len or

doesnt help. please let me know the appropriate filter. Even


wont suffice as headers may be of different length. so some sort of filter like tcp.payload_len is required. any help will be greatly appreciated. thanks.

share|improve this question

migrated from Aug 31 '12 at 13:26

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

What you want is tcp.len which is the length of the payload. I won't be populated when the frame contains no payload.

The full list of tcp attributes you can filter on is available here:

share|improve this answer
Thanks, tcp.len > 0 worked! – TheBronx Oct 1 '13 at 9:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.