Skip to content

Commit

Permalink
[IPV4]: Make struct in_addr::s_addr __be32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Sep 22, 2006
1 parent 0719bdf commit def42ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/in.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ enum {

/* Internet address. */
struct in_addr {
__u32 s_addr;
__be32 s_addr;
};

#define IP_TOS 1
Expand Down

0 comments on commit def42ff

Please sign in to comment.