I'm writing a script where I need tshark to calculate the frame check sequence. I know I can output the existing FCS that is stored in the packet with:
But if this FCS is wrong, can tshark calculate the correct one? In wireshark if I open a file where the FCS is wrong, wireshark tells me it's wrong and outputs the value that it should be. Can tshark output the value that it should be instead of just what is stored in the packet data? Thanks, Jon asked 31 Jul '13, 15:38 Lemurshark |
One Answer:
Here is how you can view the calculated FCS with tshark:
I leave it as an exercise for the reader to extract the FCS from the output :-) answered 01 Aug '13, 14:15 SYN-bit ♦♦ |
Any help is appreciated. I wrote a script that would run several options from tshark to see if it would output the correct, calculated checksum instead of the checksum that is stored in the packet, but I haven't been able to find the right option.
If I pull up the trace in wireshark, it tells me this:
So wireshark knows what the correct value should be. Can tshark tell me the same thing?