projects
/
wrapfs-4.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea673a4
)
xfrm: Increment statistic counter on inner mode error
author
Steffen Klassert
<steffen.klassert@secunet.com>
Fri, 23 Oct 2015 05:52:58 +0000
(07:52 +0200)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Fri, 23 Oct 2015 05:52:58 +0000
(07:52 +0200)
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>
net/xfrm/xfrm_input.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_input.c
b/net/xfrm/xfrm_input.c
index 60ce7014e1b094ef0013f27330ab8c0bec24e284..ad7f5b3f9b619ff22cb22da32b7f259abe82ca3d 100644
(file)
--- a/
net/xfrm/xfrm_input.c
+++ b/
net/xfrm/xfrm_input.c
@@
-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)) {