3 |
* Address Resolution Protocol module for IP over Ethernet |
* Address Resolution Protocol module for IP over Ethernet |
4 |
* |
* |
5 |
* $Log$ |
* $Log$ |
6 |
|
* Revision 1.20 2003/01/08 10:49:16 likewise |
7 |
|
* Added check if ARP_QUEUEING is 1 for a queueing related debug statement. |
8 |
|
* |
9 |
* Revision 1.19 2003/01/08 10:09:43 likewise |
* Revision 1.19 2003/01/08 10:09:43 likewise |
10 |
* Updated lwIP module copyright years to include 2003. Committers must check theirs. |
* Updated lwIP module copyright years to include 2003. Committers must check theirs. |
11 |
* |
* |
342 |
if (arp_table[i].state == ETHARP_STATE_STABLE) { |
if (arp_table[i].state == ETHARP_STATE_STABLE) { |
343 |
DEBUGF(ETHARP_DEBUG, ("update_arp_entry: overwriting old stable entry %u\n", i)); |
DEBUGF(ETHARP_DEBUG, ("update_arp_entry: overwriting old stable entry %u\n", i)); |
344 |
/* stable entries should have no queued packets (TODO: allow later) */ |
/* stable entries should have no queued packets (TODO: allow later) */ |
345 |
|
#if ARP_QUEUEING |
346 |
ASSERT("update_arp_entry: arp_table[i].p == NULL", arp_table[i].p == NULL); |
ASSERT("update_arp_entry: arp_table[i].p == NULL", arp_table[i].p == NULL); |
347 |
|
#endif |
348 |
} else { |
} else { |
349 |
DEBUGF(ETHARP_DEBUG, ("update_arp_entry: filling empty entry %u with state %u\n", i, arp_table[i].state)); |
DEBUGF(ETHARP_DEBUG, ("update_arp_entry: filling empty entry %u with state %u\n", i, arp_table[i].state)); |
350 |
ASSERT("update_arp_entry: arp_table[i].state == ETHARP_STATE_EMPTY", arp_table[i].state == ETHARP_STATE_EMPTY); |
ASSERT("update_arp_entry: arp_table[i].state == ETHARP_STATE_EMPTY", arp_table[i].state == ETHARP_STATE_EMPTY); |