History

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.

Tom Parkin committed 6 years ago

Commit 3f47cb41 parent 2bd056f2 files · +7 −0Browse files

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

Unified · Split

include/uapi/linux/l2tp.h+1−0
@@ -144,6 +144,7 @@ enum { · 143 unmodified lines
144144 L2TP_ATTR_RX_OOS_PACKETS, /* u64 */
145145 L2TP_ATTR_RX_ERRORS, /* u64 */
146146 L2TP_ATTR_STATS_PAD,
147+ L2TP_ATTR_RX_COOKIE_DISCARDS, /* u64 */
147148 __L2TP_ATTR_STATS_MAX,
148149 };
149150