Re: [lng-odp] ODP CRC32

2018-12-31 Thread Bill Fischofer
Hi Daniel. Thanks for your question. The spec for the odp_hash_crc32() API looks like this: /** * Calculate CRC-32 * * Calculates CRC-32 over the data. The polynomial is 0x04c11db7. * * @param data Pointer to data * @param data_len Data length in bytes * @param init_val CRC generator initializati

[lng-odp] ODP CRC32

2018-12-31 Thread Daniel Feferman
Hi all, I'm new into ODP and this is probably a too simple question, but I want to make the CRC32 of an ipv4 source address (e.g.: 211.97.49.209) using the function odp_hash_crc32(). However, I'm not quite sure what the data pointer should contain, is it: -211.97.49.209 -d3.61.31.d1 -d36131d1 -An