X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/84e1241f8063dab6b82a580584fa11893a162b55..e61345f872fc7f1a8b95e53ee68b4dbdea0650db:/Projects/Webserver/Lib/uip/uip_arp.c diff --git a/Projects/Webserver/Lib/uip/uip_arp.c b/Projects/Webserver/Lib/uip/uip_arp.c index dc21cc0a4..b7e3b7342 100644 --- a/Projects/Webserver/Lib/uip/uip_arp.c +++ b/Projects/Webserver/Lib/uip/uip_arp.c @@ -149,7 +149,7 @@ uip_arp_init(void) void uip_arp_timer(void) { - struct arp_entry *tabptr; + struct arp_entry *tabptr = NULL; ++arptime; for(i = 0; i < UIP_ARPTAB_SIZE; ++i) { @@ -165,7 +165,7 @@ uip_arp_timer(void) static void uip_arp_update(uip_ipaddr_t *ipaddr, struct uip_eth_addr *ethaddr) { - register struct arp_entry *tabptr; + register struct arp_entry *tabptr = NULL; /* Walk through the ARP mapping table and try to find an entry to update. If none is found, the IP -> MAC address mapping is inserted in the ARP table. */ @@ -282,7 +282,6 @@ uip_arp_ipin(void) void uip_arp_arpin(void) { - if(uip_len < sizeof(struct arp_hdr)) { uip_len = 0; return; @@ -362,10 +361,10 @@ uip_arp_arpin(void) void uip_arp_out(void) { - struct arp_entry *tabptr; + struct arp_entry *tabptr = NULL; /* Find the destination IP address in the ARP table and construct - the Ethernet header. If the destination IP addres isn't on the + the Ethernet header. If the destination IP address isn't on the local network, we use the default router's IP address instead. If not ARP table entry is found, we overwrite the original IP