From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Mon, 25 Jan 2016 09:50:31 +0800 Subject: [U-Boot] [PATCH V2] net: bootp: Ignore packets whose yiaddr is 0 In-Reply-To: <20160107160904.24DA4380311@gemini.denx.de> References: <1452151703-30647-1-git-send-email-van.freenix@gmail.com> <20160107160904.24DA4380311@gemini.denx.de> Message-ID: <20160125015030.GA22283@linux-7smt.suse> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Gentle ping.. Regards, Peng. On Thu, Jan 07, 2016 at 05:09:04PM +0100, Wolfgang Denk wrote: >Dear Peng Fan, > >In message <1452151703-30647-1-git-send-email-van.freenix@gmail.com> you wrote: >> From: Peng Fan >> >> When doing `dhcp`, there is a bad dhcp server in my network >> which always reply dhcp request with yiaddr 0, which cause >> uboot can not successfully get ipaddr from the good dhcp server. >> But the Linux PC can get the ip address even if there is a bad >> dhcp server. This patch is to fix that even if there is a bad >> dhcp server, uboot can still get ipaddr and tftp work ok. >> >> The way is to ignore the packets from the bad dhcp server by filtering >> out the yiaddr whose value is 0. >> >> Signed-off-by: Peng Fan >> Cc: Joe Hershberger >> --- >> >> Changes V2: >> Take Wolfgang's suggestion, move the code after debug message. > >THanks. > >Reviewed-by: Wolfgang Denk > >Best regards, > >Wolfgang Denk > >-- >DENX Software Engineering GmbH, Managing Director: Wolfgang Denk >HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany >Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de >About the use of language: it is impossible to sharpen a pencil with >a blunt ax. It is equally vain to try to do it with ten blunt axes >instead. -- Edsger Dijkstra