Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
tcp.pdu.size

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

frame.length

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 stackoverflow.com Aug 31 '12 at 13:26

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

add comment

1 Answer

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: http://www.wireshark.org/docs/dfref/t/tcp.html

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

Your Answer

 
discard

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.