projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccb93c
)
net: Swap ver and type in pppoe_hdr
author
Changli Gao
<xiaosuo@gmail.com>
Fri, 28 Jun 2013 16:15:51 +0000
(
00:15
+0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Jul 2013 01:20:33 +0000
(18:20 -0700)
Ver and type in pppoe_hdr should be swapped as defined by RFC2516
section-4.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_pppox.h
patch
|
blob
|
history
diff --git
a/include/uapi/linux/if_pppox.h
b/include/uapi/linux/if_pppox.h
index 0b46fd57c8f6ff28f356598c5ffbe6a67f3496f2..e36a4aecd3117ebdaf46c17ac115e5d0a29bcede 100644
(file)
--- a/
include/uapi/linux/if_pppox.h
+++ b/
include/uapi/linux/if_pppox.h
@@
-135,11
+135,11
@@
struct pppoe_tag {
struct pppoe_hdr {
#if defined(__LITTLE_ENDIAN_BITFIELD)
- __u8 ver : 4;
__u8 type : 4;
+ __u8 ver : 4;
#elif defined(__BIG_ENDIAN_BITFIELD)
- __u8 type : 4;
__u8 ver : 4;
+ __u8 type : 4;
#else
#error "Please fix <asm/byteorder.h>"
#endif