diff options
author | jamal <hadi@cyberus.ca> | 2010-02-17 22:35:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-18 18:43:09 -0500 |
commit | 72032fdbcde8b333e65b3430e1bcb4358e2d6716 (patch) | |
tree | 53f48599a1cf4d68641a009cb6322e1711dc5efc /net/xfrm/xfrm_policy.c | |
parent | 7e38017557bc0b87434d184f8804cadb102bb903 (diff) |
xfrm: Introduce LINUX_MIB_XFRMFWDHDRERROR
XFRMINHDRERROR counter is ambigous when validating forwarding
path. It makes it tricky to debug when you have both in and fwd
validation.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 2c5d93181f13..4368e7b88469 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -2045,8 +2045,7 @@ int __xfrm_route_forward(struct sk_buff *skb, unsigned short family) | |||
2045 | int res; | 2045 | int res; |
2046 | 2046 | ||
2047 | if (xfrm_decode_session(skb, &fl, family) < 0) { | 2047 | if (xfrm_decode_session(skb, &fl, family) < 0) { |
2048 | /* XXX: we should have something like FWDHDRERROR here. */ | 2048 | XFRM_INC_STATS(net, LINUX_MIB_XFRMFWDHDRERROR); |
2049 | XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR); | ||
2050 | return 0; | 2049 | return 0; |
2051 | } | 2050 | } |
2052 | 2051 | ||