www.digiembedded.com
399
Ethernet Communication Module
{
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);
}
/*
*