From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 12 Oct 2006 02:09:58 +0200 Subject: [U-Boot-Users] dhcp problems with Windows Server In-Reply-To: Your message of "Thu, 12 Oct 2006 09:46:39 +1000." <452D825F.8040304@magellan-technology.com> Message-ID: <20061012000958.9AD8E353DA2@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <452D825F.8040304@magellan-technology.com> you wrote: > > I fully understand that and no-one wants to have to include delays in their > system but unfortunately Microsoft didn't write their DHCP server code to allow > for a client which responds as quickly as U-Boot can. ;-) > --- current/net/bootp.c 2005-11-18 12:18:48.000000000 +1100 > +++ u-boot-1.1.3-MAGARMv3/net/bootp.c 2006-10-11 16:35:51.000000000 +1000 > @@ -844,6 +844,10 @@ > NetSetIP(iphdr, 0xFFFFFFFFL, PORT_BOOTPS, PORT_BOOTPC, iplen); > > debug ("Transmitting DHCPREQUEST packet: len = %d\n", pktlen); > + // delay a small amount because Windows Server 2003 has problems if you > reply too quickly > + // 15ms was proven to be OK on my at91rm9200 system, so I'll double it > just in case > + udelay(30000); > + > NetSendPacket(NetTxPacket, pktlen); > } Please submit a proper patch, i. e. * Include a CHANGELOG entry * Make sure not to violate the coding style (no C++ comments, indentation by TABs, line length < 70 * Make sure that your mailer does not wrap lines Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de "Success covers a multitude of blunders." - George Bernard Shaw