diff options
author | Bernhard Kaindl <bernhard.kaindl@thalesgroup.com> | 2011-10-15 23:59:22 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-23 23:34:19 +0200 |
commit | 6dc809f40721e5424367b09c8dbfe07da50b8ca9 (patch) | |
tree | 0f5ec2f2eacdb4e3bfdaef96c32edd97e597af15 /arch/nios2 | |
parent | f5ca20c6b60acfce81f45a0a0a92a5e72de5b008 (diff) | |
download | u-boot-imx-6dc809f40721e5424367b09c8dbfe07da50b8ca9.zip u-boot-imx-6dc809f40721e5424367b09c8dbfe07da50b8ca9.tar.gz u-boot-imx-6dc809f40721e5424367b09c8dbfe07da50b8ca9.tar.bz2 |
net/dns.c: Fix endian conversion for big-endian in dns command
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.kaindl@thalesgroup.com>
Cc: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
Cc: Robin Getz <rgetz@blackfin.uclinux.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/nios2')
0 files changed, 0 insertions, 0 deletions