From: Al Viro Date: Sat, 25 Aug 2007 06:04:18 +0000 (-0700) Subject: [PPPOL2TP]: Fix endianness annotations. X-Git-Tag: accepted/tizen/common/20141203.182822~28479^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f424bb9efaee90b752aabcb4e5e95920ee9580bb;p=platform%2Fkernel%2Flinux-arm64.git [PPPOL2TP]: Fix endianness annotations. {s,d}_{session,tunnel} in pppol2tp_addr are actually host-endian everywhere. We might switch them to net-endian, of course, but that structure is exposed to userland via getname... Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/include/linux/if_pppol2tp.h b/include/linux/if_pppol2tp.h index 516203b..a7d6a22 100644 --- a/include/linux/if_pppol2tp.h +++ b/include/linux/if_pppol2tp.h @@ -32,8 +32,8 @@ struct pppol2tp_addr struct sockaddr_in addr; /* IP address and port to send to */ - __be16 s_tunnel, s_session; /* For matching incoming packets */ - __be16 d_tunnel, d_session; /* For sending outgoing packets */ + __u16 s_tunnel, s_session; /* For matching incoming packets */ + __u16 d_tunnel, d_session; /* For sending outgoing packets */ }; /* Socket options: