net: Swap ver and type in pppoe_hdr
authorChangli Gao <xiaosuo@gmail.com>
Fri, 28 Jun 2013 16:15:51 +0000 (00:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 01:20:33 +0000 (18:20 -0700)
Ver and type in pppoe_hdr should be swapped as defined by RFC2516
section-4.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_pppox.h

index 0b46fd5..e36a4ae 100644 (file)
@@ -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