diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-09-29 15:35:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-29 23:26:36 +0300 |
commit | 3f47cb4c1cf3bceb2438ea962bfffc6665ee4a9f (patch) | |
tree | 0896a884b9d8ec67f101cbea7689ec8f8780361b /include | |
parent | 2bd056f550808eaa2c34a14169c99f81ead083a7 (diff) | |
download | linux-3f47cb4c1cf3bceb2438ea962bfffc6665ee4a9f.tar.xz |
l2tp: report rx cookie discards in netlink get
When an L2TPv3 session receives a data frame with an incorrect cookie
l2tp_core logs a warning message and bumps a stats counter to reflect
the fact that the packet has been dropped.
However, the stats counter in question is missing from the l2tp_netlink
get message for tunnel and session instances.
Include the statistic in the netlink get response.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/l2tp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/l2tp.h b/include/uapi/linux/l2tp.h index 88a0d32b8c07..30c80d5ba4bf 100644 --- a/include/uapi/linux/l2tp.h +++ b/include/uapi/linux/l2tp.h @@ -144,6 +144,7 @@ enum { L2TP_ATTR_RX_OOS_PACKETS, /* u64 */ L2TP_ATTR_RX_ERRORS, /* u64 */ L2TP_ATTR_STATS_PAD, + L2TP_ATTR_RX_COOKIE_DISCARDS, /* u64 */ __L2TP_ATTR_STATS_MAX, }; |