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

Commit f424bb9e authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4223976
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -32,8 +32,8 @@ struct pppol2tp_addr


	struct sockaddr_in addr;	/* IP address and port to send to */
	struct sockaddr_in addr;	/* IP address and port to send to */


	__be16 s_tunnel, s_session;	/* For matching incoming packets */
	__u16 s_tunnel, s_session;	/* For matching incoming packets */
	__be16 d_tunnel, d_session;	/* For sending outgoing packets */
	__u16 d_tunnel, d_session;	/* For sending outgoing packets */
};
};


/* Socket options:
/* Socket options: