]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: report rx cookie discards in netlink get
authorTom Parkin <tparkin@katalix.com>
Tue, 29 Sep 2020 12:35:41 +0000 (13:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:26:36 +0000 (13:26 -0700)
commit85c33d04d79166c9da0aad377db96d15f7b066c5
tree0896a884b9d8ec67f101cbea7689ec8f8780361b
parentb9b0bde442682afa6f1b7fd4a476504a1a13d577
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>
include/uapi/linux/l2tp.h
net/l2tp/l2tp_netlink.c