From: Tom Rini Date: Tue, 16 Sep 2014 20:46:52 -0400 Subject: [U-Boot] [U-Boot, v2, 1/1] net: dns: fix for DNS queries sent to the wrong MAC address In-Reply-To: <1410504495-13118-1-git-send-email-gsi@denx.de> References: <1410504495-13118-1-git-send-email-gsi@denx.de> Message-ID: <20140917004652.GJ25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Sep 12, 2014 at 08:48:15AM +0200, Gerhard Sittig wrote: > When a DNS query is sent out, the ethernet packet can get directed to > the MAC address of a server that was communicated to before. This is > wrong when the previously stored MAC address corresponds to a different > server's IP address, i.e. when the IP address of the previous and the > current communication are different. > > The error can get reproduced by running a sequence of e.g. a TFTP > download and a DNS query, where the TFTP and DNS servers reside on > individual machines. > > The fix is to clear the server's MAC address that might be left from a > previous operation, and to fetch the peer's MAC address in a new ARP > lookup, before the DNS query is sent. This is the approach taken in > other network services, like 8e52533d1095 ("net: tftpsrv: Get correct > client MAC address"). > > Reported-by: Dirk Zimoch > Signed-off-by: Gerhard Sittig Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: