Dear Bernhard Kaindl,

In message <1318759162-10523-1-git-send-email-bernhard.kai...@gmx.net> you 
wrote:
> From: Bernhard Kaindl <bernhard.kai...@thalesgroup.com>
> 
> net/dns.c used endian conversion macros wrongly (shorts in reply
> were put swapped into CPU, and then ntohs() was used to swap it
> back, which broke on big-endian).
> 
> Fix this by using the correct linux conversion macro for reading
> a unaligned short in network byte order: get_unaligned_be16()
> Thanks to Mike Frysinger pointing at the best macro to use.
> 
> Tested on big and little endian qemu boards (mips and versatile)
> 
> Signed-off-by: Bernhard Kaindl <bernhard.kai...@thalesgroup.com>
> Cc: Pieter Voorthuijsen <pieter.voorthuij...@prodrive.nl>
> Cc: Robin Getz <rg...@blackfin.uclinux.org>
> ---
>  net/dns.c |   20 ++++++++------------
>  1 files changed, 8 insertions(+), 12 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
The Wright Bothers weren't the first to fly. They were just the first
not to crash.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to