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
135 135
136struct pppoe_hdr {136struct pppoe_hdr {
137#if defined(__LITTLE_ENDIAN_BITFIELD)137#if defined(__LITTLE_ENDIAN_BITFIELD)
138 __u8 ver : 4;
139 __u8 type : 4;138 __u8 type : 4;
139 __u8 ver : 4;
140#elif defined(__BIG_ENDIAN_BITFIELD)140#elif defined(__BIG_ENDIAN_BITFIELD)
141 __u8 type : 4;
142 __u8 ver : 4;141 __u8 ver : 4;
142 __u8 type : 4;
143#else143#else
144#error "Please fix <asm/byteorder.h>"144#error "Please fix <asm/byteorder.h>"
145#endif145#endif