]> git.baikalelectronics.ru Git - kernel.git/commit
pptp: fix byte order warnings
authorstephen hemminger <stephen@networkplumber.org>
Sat, 10 Aug 2013 22:22:58 +0000 (15:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Aug 2013 22:10:22 +0000 (15:10 -0700)
commite3ca82de8dd17f46d1f2380b78539bfb3b684848
treefc30abaada405342996d5f96e343bc499454253d
parent1be01bc9646177d2981fad4406f2852a662cad46
pptp: fix byte order warnings

Pptp driver has lots of byte order warnings from sparse.
This was because the on-the-wire header is in network byte order (obviously)
but the definition did not reflect that.

Also, the address structure to user space actually put the call id
in host order. Rather than break ABI compatibility, just acknowledge
the existing design.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c
include/uapi/linux/if_pppox.h