[U-Boot-Users] dhcp problems with Windows Server

Wolfgang Denk wd at denx.de
Thu Oct 12 02:09:58 CEST 2006


In message <452D825F.8040304 at 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 at denx.de
"Success covers a multitude of blunders."       - George Bernard Shaw




More information about the U-Boot mailing list