|
From: | anonymous |
Subject: | [lwip-devel] [bug #18924] index in etharp.c ( function etharp_arp_input ) |
Date: | Thu, 01 Feb 2007 04:37:01 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text |
URL: <http://savannah.nongnu.org/bugs/?18924> Summary: index in etharp.c ( function etharp_arp_input ) Project: lwIP - A Lightweight TCP/IP stack Submitted by: None Submitted on: Thursday 02/01/2007 at 04:37 UTC Category: pbufs Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: //i = netif->hwaddr_len; //while(i > 0) { // i--; for(i=0;i<netif->hwaddr_len;i++) /* added */ { /* added */ hdr->dhwaddr.addr[i] = hdr->shwaddr.addr[i]; hdr->shwaddr.addr[i] = ethaddr->addr[i]; hdr->ethhdr.dest.addr[i] = hdr->dhwaddr.addr[i]; hdr->ethhdr.src.addr[i] = ethaddr->addr[i]; } The index should run from 0 to 5 NOT 1 to 6 ??? Original code is commented out. Added 'for' loop. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?18924> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |