diff options
author | Vladimir Gavrilov <105977161+0xA50C1A1@users.noreply.github.com> | 2024-08-25 12:54:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 11:54:17 +0200 |
commit | aec2e2fbb83d25382efe0ee65b0d9164c71b2ed7 (patch) | |
tree | 72579ded4ade7705894f75799f6a2c3090bb3730 /example | |
parent | 763a9c647467bca5d43ccc555121bee5353ba2d4 (diff) |
Endian-independent implementation of IEEE 802.3 CRC32 (#2529)
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 9861f6505..b1fbfd7dd 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -4597,7 +4597,7 @@ static void ndpi_process_packet(u_char *args, /* The remaining bytes are already set to 0 */ crc = (uint32_t*)&extcap_buf[h.caplen+sizeof(struct ndpi_packet_trailer)]; - *crc = ndpi_crc32((const void*)extcap_buf, h.caplen+sizeof(struct ndpi_packet_trailer)); + *crc = ndpi_crc32((const void*)extcap_buf, h.caplen+sizeof(struct ndpi_packet_trailer), 0); h.caplen += delta, h.len += delta; #ifdef DEBUG_TRACE |