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

Commit b1a5a34b authored by Changli Gao's avatar Changli Gao Committed by David S. Miller
Browse files

net: Swap ver and type in pppoe_hdr



Ver and type in pppoe_hdr should be swapped as defined by RFC2516
section-4.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ccb93ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,11 +135,11 @@ struct pppoe_tag {

struct pppoe_hdr {
#if defined(__LITTLE_ENDIAN_BITFIELD)
	__u8 ver : 4;
	__u8 type : 4;
	__u8 ver : 4;
#elif defined(__BIG_ENDIAN_BITFIELD)
	__u8 type : 4;
	__u8 ver : 4;
	__u8 type : 4;
#else
#error	"Please fix <asm/byteorder.h>"
#endif