I want to get the PDUs length, I think it is found here:
or
But when I compile, I get an error from the compiler:
Does someone know what it is? member "length" exists. you can see it here. Thanks asked 03 Jul '13, 06:27 hudac |
2 Answers:
The length member is "private", to get the length use the function Also note the correct reference for Wireshark source code would be the actual Wireshark repository which can be found here. answered 03 Jul '13, 06:41 grahamb ♦ |
Remember, many capture programs, including Wireshark/TShark/dumpcap, tcpdump, and a number of other sniffers, let you limit the number of bytes captured and saved, so that if the snapshot length is N, and the packet is M bytes long, where M > N, only the first N bytes of the packet will be captured. So if you want the actual packet length, rather than the number of bytes of the packet that happen to have been captured, you want answered 03 Jul '13, 11:43 Guy Harris ♦♦ |