From: Alexey Dobriyan Date: Tue, 29 Aug 2006 06:57:56 +0000 (-0700) Subject: [IPV4]: Make struct in_addr::s_addr __be32 X-Git-Tag: v2.6.19-rc1~1272^2~98 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8;p=linux-2.6 [IPV4]: Make struct in_addr::s_addr __be32 There will be relatively small increase in sparse endian warnings, but this (and sin_port) patch is a first step to make networking code endian clean. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/include/linux/in.h b/include/linux/in.h index 94f557fa46..9a9d5dd32e 100644 --- a/include/linux/in.h +++ b/include/linux/in.h @@ -52,7 +52,7 @@ enum { /* Internet address. */ struct in_addr { - __u32 s_addr; + __be32 s_addr; }; #define IP_TOS 1