[U-Boot] [PATCH V2] net: Make sure IPaddr_t is 32 bits in size

Wolfgang Denk wd at denx.de
Tue Dec 6 22:15:40 CET 2011


Dear Matthias Weisser,

In message <1322918984-9089-1-git-send-email-weisserm at arcor.de> you wrote:
> When building u-boot as 64 bit application (e.g. sandbox) ulong might be
> 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in
> size then and an IPv4 address is 32 bits in size. This patch makes sure
> that IPaddr_t is always 32 bits in size. Also some warnings introduced
> by this patch are fixed.
> 
> Signed-off-by: Matthias Weisser <weisserm at arcor.de>
> Acked-by: Mike Frysinger <vapier at gentoo.org>
> ---
> Changes in v2:
>   Added explicit information about 32 bit size of IPv4 addresses in
>   commit message and source comment.
> 
>  include/net.h |    3 ++-
>  net/net.c     |    6 +++---
>  net/nfs.c     |    2 +-
>  net/tftp.c    |    2 +-
>  4 files changed, 7 insertions(+), 6 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: wd at denx.de
The one who says it cannot be done should never interrupt the one who
is doing it.


More information about the U-Boot mailing list