Re: [U-Boot] [PATCH] net/dns.c: Fix endian conversion for big-endian in dns command

2011-10-23 Thread Wolfgang Denk
Dear Bernhard Kaindl, In message <1318759162-10523-1-git-send-email-bernhard.kai...@gmx.net> you wrote: > From: Bernhard Kaindl > > 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-endia

Re: [U-Boot] [PATCH] net/dns.c: Fix endian conversion for big-endian in dns command

2011-10-16 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] net/dns.c: Fix endian conversion for big-endian in dns command

2011-10-16 Thread Robin Getz
On Sun 16 Oct 2011 05:59, Bernhard Kaindl pondered: > From: Bernhard Kaindl > > 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 conversio

[U-Boot] [PATCH] net/dns.c: Fix endian conversion for big-endian in dns command

2011-10-16 Thread Bernhard Kaindl
From: Bernhard Kaindl 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_u