Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Asbjørn Sloth Tønnesen and committed by
David S. Miller
47c3e778 41c43fbe

+10 -11
+4 -4
Documentation/networking/l2tp.txt
··· 177 177 178 178 The following debug mask bits are available: 179 179 180 - PPPOL2TP_MSG_DEBUG verbose debug (if compiled in) 181 - PPPOL2TP_MSG_CONTROL userspace - kernel interface 182 - PPPOL2TP_MSG_SEQ sequence numbers handling 183 - PPPOL2TP_MSG_DATA data packets 180 + L2TP_MSG_DEBUG verbose debug (if compiled in) 181 + L2TP_MSG_CONTROL userspace - kernel interface 182 + L2TP_MSG_SEQ sequence numbers handling 183 + L2TP_MSG_DATA data packets 184 184 185 185 If enabled, files under a l2tp debugfs directory can be used to dump 186 186 kernel state about L2TP tunnels and sessions. To access it, the
+6 -7
include/uapi/linux/if_pppol2tp.h
··· 18 18 #include <linux/types.h> 19 19 #include <linux/in.h> 20 20 #include <linux/in6.h> 21 + #include <linux/l2tp.h> 21 22 22 23 /* Structure used to connect() the socket to a particular tunnel UDP 23 24 * socket over IPv4. ··· 91 90 PPPOL2TP_SO_REORDERTO = 5, 92 91 }; 93 92 94 - /* Debug message categories for the DEBUG socket option */ 93 + /* Debug message categories for the DEBUG socket option (deprecated) */ 95 94 enum { 96 - PPPOL2TP_MSG_DEBUG = (1 << 0), /* verbose debug (if 97 - * compiled in) */ 98 - PPPOL2TP_MSG_CONTROL = (1 << 1), /* userspace - kernel 99 - * interface */ 100 - PPPOL2TP_MSG_SEQ = (1 << 2), /* sequence numbers */ 101 - PPPOL2TP_MSG_DATA = (1 << 3), /* data packets */ 95 + PPPOL2TP_MSG_DEBUG = L2TP_MSG_DEBUG, 96 + PPPOL2TP_MSG_CONTROL = L2TP_MSG_CONTROL, 97 + PPPOL2TP_MSG_SEQ = L2TP_MSG_SEQ, 98 + PPPOL2TP_MSG_DATA = L2TP_MSG_DATA, 102 99 }; 103 100 104 101