/[lwip]/lwip/src/netif/etharp.c
ViewVC logotype

Diff of /lwip/src/netif/etharp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by likewise, Mon Nov 4 14:56:40 2002 UTC revision 1.3 by likewise, Wed Nov 6 11:43:21 2002 UTC
# Line 3  Line 3 
3   * Address Resolution Protocol module for IP over Ethernet   * Address Resolution Protocol module for IP over Ethernet
4   *   *
5   * $Log$   * $Log$
6     * Revision 1.3  2002/11/06 11:43:21  likewise
7     * find_arp_entry() returned 0 instead of ARP_TABLE_SIZE if full pending cache (bug #1625).
8     *
9   * Revision 1.2  2002/11/04 14:56:40  likewise   * Revision 1.2  2002/11/04 14:56:40  likewise
10   * Fixed NULL pointer bug (#1493). Fix for memory leak bug (#1601), etharp_output_sent(). Added etharp_query for DHCP.   * Fixed NULL pointer bug (#1493). Fix for memory leak bug (#1601), etharp_output_sent(). Added etharp_query for DHCP.
11   *   *
# Line 173  find_arp_entry(void) Line 176  find_arp_entry(void)
176       throw it away. */       throw it away. */
177    if(i == ARP_TABLE_SIZE) {    if(i == ARP_TABLE_SIZE) {
178      maxtime = 0;      maxtime = 0;
179      j = 0;      j = ARP_TABLE_SIZE;
180      for(i = 0; i < ARP_TABLE_SIZE; ++i) {      for(i = 0; i < ARP_TABLE_SIZE; ++i) {
181        if(arp_table[i].state == ETHARP_STATE_STABLE &&        if(arp_table[i].state == ETHARP_STATE_STABLE &&
182           ctime - arp_table[i].ctime > maxtime) {           ctime - arp_table[i].ctime > maxtime) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26