[General boards] [Fall 2018 courses] [Summer 2018 courses] [Winter 2018 courses] [Older or newer terms]

How do we find the Frame length for a certain packet?


I see theres 2 attributes, 1 is length and i was previously using that as my packet length. I wasn’t sure if i should add my packet header to that or if it already included it. Is the other attribute “len” the frame length? sometimes “len” is 0 in my file. if not how do we find frame length?


I am not sure what you are exactly referring to when you talk about length and len. However, if you refer to pcap header format (e.g., https://wiki.wireshark.org/Development/LibpcapFileFormat), then you will notice that the original size of the packet and the capture length are both available in the pcap file.