Hello,
I'm facing an issue with determining whether a packet's checksums need recalculation after modifications. Currently, the only options are:
- Manually triggering recalculation in every code path where the packet changes, which becomes repetitive and error-prone with complex logic.
- Always recalculating all checksums before serialization, which incurs unnecessary performance overhead.
Is there a way to implement automatic checksum recalculation, similar to libraries like PyPacker? For example, by tracking field modifications and recalculating only the affected layer's checksum when changes occur?
Hello,
I'm facing an issue with determining whether a packet's checksums need recalculation after modifications. Currently, the only options are:
Is there a way to implement automatic checksum recalculation, similar to libraries like PyPacker? For example, by tracking field modifications and recalculating only the affected layer's checksum when changes occur?