History

net: l2tp: deprecate PPPOL2TP_MSG_* in favour of L2TP_MSG_*

PPPOL2TP_MSG_* and L2TP_MSG_* are duplicates, and are being used interchangeably in the kernel, so let's standardize on L2TP_MSG_* internally, and keep PPPOL2TP_MSG_* defined in UAPI for compatibility.

Asbjørn Sloth Tønnesen committed 9 years ago

Commit 47c3e771 parent 41c43fb2 files · +10 −11Browse files

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

Unified · Split

include/uapi/linux/if_pppol2tp.h+6−7
@@ -18,6 +18,7 @@ · 17 unmodified lines
1818 #include <linux/types.h>
1919 #include <linux/in.h>
2020 #include <linux/in6.h>
21+#include <linux/l2tp.h>
2122
2223 /* Structure used to connect() the socket to a particular tunnel UDP
2324 * socket over IPv4.
@@ -90,14 +91,12 @@ enum { · 66 unmodified lines
9091 PPPOL2TP_SO_REORDERTO = 5,
9192 };
9293
93−/* Debug message categories for the DEBUG socket option */
94+/* Debug message categories for the DEBUG socket option (deprecated) */
9495 enum {
95− PPPOL2TP_MSG_DEBUG = (1 << 0), /* verbose debug (if
96− * compiled in) */
97− PPPOL2TP_MSG_CONTROL = (1 << 1), /* userspace - kernel
98− * interface */
99− PPPOL2TP_MSG_SEQ = (1 << 2), /* sequence numbers */
100− PPPOL2TP_MSG_DATA = (1 << 3), /* data packets */
96+ PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG,
97+ PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL,
98+ PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ,
99+ PPPOL2TP_MSG_DATA = L2TP_MSG_DATA,
101100 };
102101
103102