Skip to content

Commit b1a5a34

Browse files
xiaosuodavem330
authored andcommitted
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 <[email protected]>
1 parent 4ccb93c commit b1a5a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/linux/if_pppox.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ struct pppoe_tag {
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

0 commit comments

Comments
 (0)