Move the L2TP_MSG_* definitions to UAPI, as it is part of the netlink API.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -108,7 +108,7 @@ enum { · 107 unmodified lines | ||
| 108 | 108 | L2TP_ATTR_VLAN_ID, /* u16 */ |
| 109 | 109 | L2TP_ATTR_COOKIE, /* 0, 4 or 8 bytes */ |
| 110 | 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 | 112 | L2TP_ATTR_RECV_SEQ, /* u8 */ |
| 113 | 113 | L2TP_ATTR_SEND_SEQ, /* u8 */ |
| 114 | 114 | L2TP_ATTR_LNS_MODE, /* u8 */ |
| @@ -175,6 +175,21 @@ enum l2tp_seqmode { · 60 unmodified lines | ||
| 175 | 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 | + */ | |
| 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 | + | |
| 178 | 193 | /* |
| 179 | 194 | * NETLINK_GENERIC related info |
| 180 | 195 | */ |