]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Fix incorrect DHCP/BOOTP packets on 64-bit systems
authorSergey Temerkhanov <s.temerkhanov@gmail.com>
Wed, 8 Apr 2015 06:41:22 +0000 (01:41 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:28:25 +0000 (22:28 +0200)
commit1046b5c4712d74fcc50d4572cba6593f7757abea
treec370ac65a8d176913c46da9f1228917529ed543c
parentbaeb63bf7f95a0dd888875f3b370780b050a2f1c
net: Fix incorrect DHCP/BOOTP packets on 64-bit systems

This commit fixes incorrect DHCP/BOOTP packet layout caused by
'ulong' type size difference on 64 and 32-bit architectures.
It also renames NetReadLong()/NetCopyLong() to
net_read_u32/net_copy_u32() accordingly.

Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
include/net.h
net/bootp.c
net/bootp.h