mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
xfrm: Increment statistic counter on inner mode error
Increment the LINUX_MIB_XFRMINSTATEMODEERROR statistic counter to notify about dropped packets if we fail to fetch a inner mode. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
ea673a4d3a
commit
cb866e3298
@ -330,8 +330,10 @@ resume:
|
||||
|
||||
if (x->sel.family == AF_UNSPEC) {
|
||||
inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol);
|
||||
if (inner_mode == NULL)
|
||||
if (inner_mode == NULL) {
|
||||
XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMODEERROR);
|
||||
goto drop;
|
||||
}
|
||||
}
|
||||
|
||||
if (inner_mode->input(x, skb)) {
|
||||
|
Loading…
Reference in New Issue
Block a user