diff options
author | Changli Gao <xiaosuo@gmail.com> | 2013-06-28 12:15:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-01 21:20:33 -0400 |
commit | b1a5a34bd0b8767ea689e68f8ea513e9710b671e (patch) | |
tree | f2ab776e9104f5d0b12e275c5f409b31fd27b86d /include/uapi | |
parent | 4ccb93ce7439b63c31bc7597bfffd13567fa483d (diff) |
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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/if_pppox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h index 0b46fd57c8f6..e36a4aecd311 100644 --- a/include/uapi/linux/if_pppox.h +++ b/include/uapi/linux/if_pppox.h | |||
@@ -135,11 +135,11 @@ struct pppoe_tag { | |||
135 | 135 | ||
136 | struct pppoe_hdr { | 136 | struct 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 | #else | 143 | #else |
144 | #error "Please fix <asm/byteorder.h>" | 144 | #error "Please fix <asm/byteorder.h>" |
145 | #endif | 145 | #endif |