提交 b1a5a34b 编写于 作者: C Changli Gao 提交者: David S. Miller

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: NDavid S. Miller <davem@davemloft.net>
上级 4ccb93ce
...@@ -135,11 +135,11 @@ struct pppoe_tag { ...@@ -135,11 +135,11 @@ struct pppoe_tag {
struct pppoe_hdr { struct pppoe_hdr {
#if defined(__LITTLE_ENDIAN_BITFIELD) #if defined(__LITTLE_ENDIAN_BITFIELD)
__u8 ver : 4;
__u8 type : 4; __u8 type : 4;
__u8 ver : 4;
#elif defined(__BIG_ENDIAN_BITFIELD) #elif defined(__BIG_ENDIAN_BITFIELD)
__u8 type : 4;
__u8 ver : 4; __u8 ver : 4;
__u8 type : 4;
#else #else
#error "Please fix <asm/byteorder.h>" #error "Please fix <asm/byteorder.h>"
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册