Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit def42ff4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

[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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0719bdf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ enum {

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

#define IP_TOS		1