History

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.

stephen hemminger committed 13 years ago

Commit ebd8b931 parent 072017b2 files · +6 −6Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_pppox.h+1−1
@@ -46,7 +46,7 @@ struct pppoe_addr { · 45 unmodified lines
4646 * PPTP addressing definition
4747 */
4848 struct pptp_addr {
49− __be16 call_id;
49+ __u16 call_id;
5050 struct in_addr sin_addr;
5151 };
5252