kaitai-io / kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
http://formats.kaitai.io
711 stars 204 forks source link

CRC checksum value of ethernet_frame #617

Closed H4rryK4ne closed 2 years ago

H4rryK4ne commented 2 years ago

Hi,

we want to validate the CRC value of the ethernet frame, and we became aware, that this is not in the ethernet_frame at all.

My first approach would be to use an instance to get the last 4 bytes of the body to get the CRC value.

Maybe someone has a smarter way to do it.

BR Martin

H4rryK4ne commented 2 years ago

Thanks to @generalmimon there is indeed a smarter solution than I thought, but in the end we found, that all the pcap files we have, don't include the frame check sum.