/[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.39.2.2 by likewise, Wed May 14 14:38:28 2003 UTC revision 1.39.2.3 by likewise, Wed Jun 4 08:33:28 2003 UTC
# Line 149  etharp_tmr(void) Line 149  etharp_tmr(void)
149    /* remove expired entries from the ARP table */    /* remove expired entries from the ARP table */
150    for(i = 0; i < ARP_TABLE_SIZE; ++i) {    for(i = 0; i < ARP_TABLE_SIZE; ++i) {
151      arp_table[i].ctime++;              arp_table[i].ctime++;        
152      if ((arp_table[i].state == ETHARP_STATE_STABLE) &&            if ((arp_table[i].state == ETHARP_STATE_STABLE) &&
153         (arp_table[i].ctime >= ARP_MAXAGE)) {         (arp_table[i].ctime >= ARP_MAXAGE)) {
154        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired stable entry %u.\n", i));        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired stable entry %u.\n", i));
155        arp_table[i].state = ETHARP_STATE_EMPTY;        arp_table[i].state = ETHARP_STATE_EMPTY;
156  #if ARP_QUEUEING  #if ARP_QUEUEING
157        /* remove any queued packet */        /* remove any queued packet */
158        pbuf_free(arp_table[i].p);              pbuf_free(arp_table[i].p);
159        arp_table[i].p = NULL;        arp_table[i].p = NULL;
160  #endif  #endif
161      } else if ((arp_table[i].state == ETHARP_STATE_PENDING) &&      } else if ((arp_table[i].state == ETHARP_STATE_PENDING) &&
# Line 164  etharp_tmr(void) Line 164  etharp_tmr(void)
164  #if ARP_QUEUEING  #if ARP_QUEUEING
165        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired pending entry %u - dequeueing %p.\n", i, (void *)(arp_table[i].p)));        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired pending entry %u - dequeueing %p.\n", i, (void *)(arp_table[i].p)));
166        /* remove any queued packet */        /* remove any queued packet */
167        pbuf_free(arp_table[i].p);              pbuf_free(arp_table[i].p);
168        arp_table[i].p = NULL;        arp_table[i].p = NULL;
169  #else  #else
170        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired pending entry %u.\n", i));        DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired pending entry %u.\n", i));

Legend:
Removed from v.1.39.2.2  
changed lines
  Added in v.1.39.2.3

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