[U-Boot] [PATCH 1/2] net: make IPaddr type big endian

Kim Phillips kim.phillips at freescale.com
Thu Jan 17 01:09:11 CET 2013


for use with sparse.

Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
---
 include/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net.h b/include/net.h
index 970d4d1..4c5a000 100644
--- a/include/net.h
+++ b/include/net.h
@@ -39,7 +39,7 @@
 #define PKTALIGN	ARCH_DMA_MINALIGN
 
 /* IPv4 addresses are always 32 bits in size */
-typedef u32		IPaddr_t;
+typedef __be32		IPaddr_t;
 
 
 /**
-- 
1.8.1.1




More information about the U-Boot mailing list