summaryrefslogtreecommitdiffstats
path: root/include/linux/in.h
diff options
context:
space:
mode:
authorAlexey Dobriyan2006-08-29 08:57:56 +0200
committerDavid S. Miller2006-09-23 00:18:28 +0200
commitdef42ff4dd6f54ebcf78192579a8ff1f81d8e2e8 (patch)
tree3ad722dea8f5a157ee9fb01725b7b58aae28d5c1 /include/linux/in.h
parent[NETFILTER]: xt_CONNMARK.c build fix (diff)
downloadkernel-qcow2-linux-def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8.tar.gz
kernel-qcow2-linux-def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8.tar.xz
kernel-qcow2-linux-def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8.zip
[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 <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/in.h')
-rw-r--r--include/linux/in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/in.h b/include/linux/in.h
index 94f557fa4636..9a9d5dd32e73 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