[PPPOL2TP]: Fix endianness annotations.
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Aug 2007 06:04:18 +0000 (23:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Aug 2007 01:35:42 +0000 (18:35 -0700)
{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 <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_pppol2tp.h

index 516203b6fdeb7de5fe0306fbf13f69e7d0d28bff..a7d6a2234b318c6b90109acec9845ea059bd63b2 100644 (file)
@@ -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: