Ver and type in pppoe_hdr should be swapped as defined by RFC2516 section-4.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -135,11 +135,11 @@ struct pppoe_tag { · 134 unmodified lines | ||
| 135 | 135 | |
| 136 | 136 | struct pppoe_hdr { |
| 137 | 137 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
| 138 | − __u8 ver : 4; | |
| 139 | 138 | __u8 type : 4; |
| 139 | + __u8 ver : 4; | |
| 140 | 140 | #elif defined(__BIG_ENDIAN_BITFIELD) |
| 141 | − __u8 type : 4; | |
| 142 | 141 | __u8 ver : 4; |
| 142 | + __u8 type : 4; | |
| 143 | 143 | #else |
| 144 | 144 | #error "Please fix <asm/byteorder.h>" |
| 145 | 145 | #endif |