Function crc32_ethl

Function Documentation

uint32_t crc32_ethl(const uint8_t *buf, size_t n_bytes)

32 bit CRC according to IEEE 802.3 Ethernet standard

Same as crc32_eth(), but uses a precomputed lookup table

You have to call crc32_eth1_init() first, CRC will be wrong

Parameters:
  • buf – Buffer to compute over

  • n_bytes – # bytes in buffer

Returns:

CRC of data