Digi NS9750 User Manual
Page 423

w w w . d i g i e m b e d d e d . c o m
3 9 9
E t h e r n e t C o m m u n i c a t i o n M o d u l e
{
set_hash_bit ((BYTE *) hash_table, calculate_hash_bit (mca_address
[index]));
}
}
/
*
*
* Function: void set_hash_bit (BYTE *table, int bit)
*
* Description:
*
*
This routine sets the appropriate bit in the hash table.
*
* Parameters:
*
*
table
pointer to hash table
*
bit
position of bit to set
*
* Return Values:
*
*
none
*
*/
static void set_hash_bit (BYTE *table, int bit)
{
int byte_index, bit_index;
byte-index = bit >> 3;
bit_index = bit & 7;
table [byte_index] |= (1 << bit_index);
}
/
*
*