Re: [U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-14 Thread Mike Frysinger
On Friday 14 October 2011 03:44:13 Bernhard Kaindl wrote: > Am 12.10.2011 23:48, schrieb Mike Frysinger: > >> Ditch this brain-deadness by just shifting the MSB from the network byte > >> stream of the reply message into the right (MSB) location of a short int > >> and putting the LSB from the netw

Re: [U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-14 Thread Bernhard Kaindl
Am 12.10.2011 23:48, schrieb Mike Frysinger: >> >> Ditch this brain-deadness by just shifting the MSB from the network byte >> stream of the reply message into the right (MSB) location of a short int >> and putting the LSB from the network byte stream as the lower byte of it, >> and we are done wit

Re: [U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-12 Thread Mike Frysinger
On Wednesday 12 October 2011 17:23:20 Bernhard Kaindl wrote: > The U-Boot dns command only worked in little-endian CPUs so far because it > was based on an antique version of the TADNS source which was using a > broken macro to read the shorts found in DNS reply messages by shifting > the LSB from

[U-Boot] [PATCH] net/dns.c: Fix broken endian handling in dns command

2011-10-12 Thread Bernhard Kaindl
From: Bernhard Kaindl The U-Boot dns command only worked in little-endian CPUs so far because it was based on an antique version of the TADNS source which was using a broken macro to read the shorts found in DNS reply messages by shifting the LSB from the message into the CPU's MSB of a short int