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
108 L2TP_ATTR_VLAN_ID, /* u16 */108 L2TP_ATTR_VLAN_ID, /* u16 */
109 L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */109 L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */
110 L2TP_ATTR_PEER_COOKIE, /* 0, 4 or 8 bytes */110 L2TP_ATTR_PEER_COOKIE, /* 0, 4 or 8 bytes */
111 L2TP_ATTR_DEBUG, /* u32 */111 L2TP_ATTR_DEBUG, /* u32, enum l2tp_debug_flags */
112 L2TP_ATTR_RECV_SEQ, /* u8 */112 L2TP_ATTR_RECV_SEQ, /* u8 */
113 L2TP_ATTR_SEND_SEQ, /* u8 */113 L2TP_ATTR_SEND_SEQ, /* u8 */
114 L2TP_ATTR_LNS_MODE, /* u8 */114 L2TP_ATTR_LNS_MODE, /* u8 */
@@ -175,6 +175,21 @@ enum l2tp_seqmode { · 60 unmodified lines
175 L2TP_SEQ_ALL = 2,175 L2TP_SEQ_ALL = 2,
176};176};
177 177
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 */
186enum 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
178/*193/*
179 * NETLINK_GENERIC related info194 * NETLINK_GENERIC related info
180 */195 */