From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Mon, 20 Jul 2009 21:48:49 -0700 Subject: [U-Boot] [PATCH] v3 - add dns In-Reply-To: <200907201453.54857.rgetz@blackfin.uclinux.org> References: <200907171553.08108.rgetz@blackfin.uclinux.org> <200907201453.54857.rgetz@blackfin.uclinux.org> Message-ID: <4A6548B1.10802@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Robin, Robin Getz wrote: > On 04 Oct 2008 Pieter posted a dns implementation for U-Boot. > > http://www.mail-archive.com/u-boot-users at lists.sourceforge.net/msg10216.html > >> DNS can be enabled by setting CFG_CMD_DNS. After performing a query, >> the serverip environment var is updated. >> >> Probably there are some cosmetic issues with the patch. Unfortunatly I >> do not have the time to correct these. So if anybody else likes DNS >> support in U-Boot and has the time, feel free to patch it in the main tree. >> > > Here it is again - slightly modified & smaller: > - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0) > - README.dns is added > - syntax is changed (now takes a third option, the env var to store > the result in) > - add a random port() function in net.c > - sort Makefile in ./net/Makefile > - dns just returns unless a env var is given > - run through checkpatch, and clean up style issues > - remove packet from stack > - cleaned up some comments > - failure returns much faster (if server responds, don't wait for > timeout) > - use built in functions (memcpy) rather than byte copy. > > > Signed-off-by: Robin Getz > Signed-off-by: Pieter Voorthuijsen > Looks like I missed a pretty interesting discussion here. Anyway, patch V3 is applied to the net repo with some cosmetic changes to the changelog (no changes to the patch). thanks, Ben