|
Listing 3: A
function to flush the ARP cache
|
void
NetArpFlush(void)
{
int i;
/*
* Fill the ARP cache with null records.
*/
for (i = 0; i
<
NET_ARP_CACHE_SIZE; i++)
{
gArpCache[i].ip_addr = 0;
memcpy(gArpCache[i].hw_addr, broadcast, HW_ADDR_LEN);
}
} /* NetArpFlush() */
|
|
|
|
|