Commit b0d43763 authored by Changli Gao's avatar Changli Gao Committed by Willy Tarreau

net: Swap ver and type in pppoe_hdr

[ Upstream commit b1a5a34b ]

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>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent af6739a5
......@@ -108,11 +108,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment