646 |
u8_t i; |
u8_t i; |
647 |
|
|
648 |
srcaddr = (struct eth_addr *)netif->hwaddr; |
srcaddr = (struct eth_addr *)netif->hwaddr; |
|
i = 0; |
|
649 |
/* bail out if this IP address is pending */ |
/* bail out if this IP address is pending */ |
650 |
for(i; i < ARP_TABLE_SIZE; ++i) { |
for(i = 0; i < ARP_TABLE_SIZE; ++i) { |
651 |
if(ip_addr_cmp(ipaddr, &arp_table[i].ipaddr)) { |
if(ip_addr_cmp(ipaddr, &arp_table[i].ipaddr)) { |
652 |
if (arp_table[i].state == ETHARP_STATE_PENDING) { |
if (arp_table[i].state == ETHARP_STATE_PENDING) { |
653 |
DEBUGF(ETHARP_DEBUG, ("etharp_query: requested IP already pending\n")); |
DEBUGF(ETHARP_DEBUG, ("etharp_query: requested IP already pending\n")); |