[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

nic_calc_crc_le()

Generate CRC32 checksums for little-endian mode

Synopsis:

uint32_t  nic_calc_crc_le  ( char * buf,
                           int len)

Arguments:

buf
A pointer to the buffer containing mulitcast packet addresses.
len
The byte-length of the multicast packet addresses.

Description:

The nic_calc_crc_le() function generates Cycle Redundancy Check (CRC32) checksums across the data buffer. Typically, the checksums are used for multicast packet filtering to determine which bit in a hash table corresponds to a given multicast address. The nic_calc_crc_le() function generates the CRC by shifting the bits from left to right.

Returns:

The computed 32-bit CRC value.

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

nic_calc_cre_be


[Previous] [Contents] [Index] [Next]