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)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:35 +0000 (11:11 -0600)
commit5917e7d165d4a66d724631c196cf307485769821
tree27eb6e1b25fb97fe7f92342fd77b24d3d1e7d2ba
parentbc0571fc1067ff8a8fd16990ae65c1a2826ea90c
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