History

net: Swap ver and type in pppoe_hdr

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

Changli Gao committed 13 years ago

Commit b1a5a341 parent 4ccb93c1 file · +2 −2Browse files

Unified · Split

include/uapi/linux/if_pppox.h+2−2
@@ -135,11 +135,11 @@ struct pppoe_tag { · 134 unmodified lines
135135
136136 struct pppoe_hdr {
137137 #if defined(__LITTLE_ENDIAN_BITFIELD)
138− __u8 ver : 4;
139138 __u8 type : 4;
139+ __u8 ver : 4;
140140 #elif defined(__BIG_ENDIAN_BITFIELD)
141− __u8 type : 4;
142141 __u8 ver : 4;
142+ __u8 type : 4;
143143 #else
144144 #error "Please fix <asm/byteorder.h>"
145145 #endif