From f62288c744d902256a8d77cea5e96f6f94a275b6 Mon Sep 17 00:00:00 2001 From: kieranm Date: Thu, 25 Sep 2003 17:15:47 +0000 Subject: [PATCH] Fixed update_arp_entry to insert the correct source address into the ethernet frame sent when a ARP reply is received. --- src/netif/etharp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index acc7123b..deea3403 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -285,6 +285,7 @@ update_arp_entry(struct netif *netif, struct ip_addr *ipaddr, struct eth_addr *e ethhdr = p->payload; for (k = 0; k < netif->hwaddr_len; ++k) { ethhdr->dest.addr[k] = ethaddr->addr[k]; + ethhdr->src.addr[k] = netif->hwaddr[k]; } ethhdr->type = htons(ETHTYPE_IP); LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("update_arp_entry: sending queued IP packet.\n"));