Skip to content

Commit

Permalink
[PPPOL2TP]: Fix endianness annotations.
Browse files Browse the repository at this point in the history
{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>
  • Loading branch information
Al Viro authored and David S. Miller committed Aug 27, 2007
1 parent e422397 commit f424bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/if_pppol2tp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f424bb9

Please sign in to comment.