History

net: l2tp: export debug flags to UAPI

Move the L2TP_MSG_* definitions to UAPI, as it is part of the netlink API.

Asbjørn Sloth Tønnesen committed 9 years ago

Commit 41c43fb1 parent 09727702 files · +16 −11Browse files

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

Unified · Split

include/uapi/linux/l2tp.h+16−1
@@ -108,7 +108,7 @@ enum { · 107 unmodified lines
108108 L2TP_ATTR_VLAN_ID, /* u16 */
109109 L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */
110110 L2TP_ATTR_PEER_COOKIE, /* 0, 4 or 8 bytes */
111− L2TP_ATTR_DEBUG, /* u32 */
111+ L2TP_ATTR_DEBUG, /* u32, enum l2tp_debug_flags */
112112 L2TP_ATTR_RECV_SEQ, /* u8 */
113113 L2TP_ATTR_SEND_SEQ, /* u8 */
114114 L2TP_ATTR_LNS_MODE, /* u8 */
@@ -175,6 +175,21 @@ enum l2tp_seqmode { · 60 unmodified lines
175175 L2TP_SEQ_ALL = 2,
176176 };
177177
178+/**
179+ * enum l2tp_debug_flags - debug message categories for L2TP tunnels/sessions
180+ *
181+ * @L2TP_MSG_DEBUG: verbose debug (if compiled in)
182+ * @L2TP_MSG_CONTROL: userspace - kernel interface
183+ * @L2TP_MSG_SEQ: sequence numbers
184+ * @L2TP_MSG_DATA: data packets
185+ */
186+enum l2tp_debug_flags {
187+ L2TP_MSG_DEBUG = (1 << 0),
188+ L2TP_MSG_CONTROL = (1 << 1),
189+ L2TP_MSG_SEQ = (1 << 2),
190+ L2TP_MSG_DATA = (1 << 3),
191+};
192+
178193 /*
179194 * NETLINK_GENERIC related info
180195 */