Locked History Actions

checksums.EthernetChecksumFixup

checksums.EthernetChecksumFixup

This CRC-32 fixup uses a checksum key of 0x04C11DB7 as required by Ethernet. You can read more about fixups here.

NOTE: The Number data element MUST be signed as the python CRC code can produce negative numbers.

<Block name="HelloWorld">
  <Number name="CRC" size="32" signed="true" endian="little">
     <Fixup class="checksums.EthernetChecksumFixup">
        <Param name="ref" value="Data"/>
     </Fixup>
  </Number>
  <Blob name="Data">
</Block>

Attributes:

  • class -- Must be checksums.EthernetChecksumFixup

Valid Child-Elements: