]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: add LINUX_MIB_XFRMACQUIREERROR statistic counter
authorFan Du <fan.du@windriver.com>
Thu, 6 Jun 2013 02:15:54 +0000 (10:15 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 6 Jun 2013 04:45:55 +0000 (06:45 +0200)
commitd34271e911c597df880c55783ca0bc1323fd1671
tree5ee1e98ef87828b95039fe2bf46e3195add1d13b
parentc1ad1a7db0a18f5fe9908d32ea3e442df32b6a4b
xfrm: add LINUX_MIB_XFRMACQUIREERROR statistic counter

When host ping its peer, ICMP echo request packet triggers IPsec
policy, then host negotiates SA secret with its peer. After IKE
installed SA for OUT direction, but before SA for IN direction
installed, host get ICMP echo reply from its peer. At the time
being, the SA state for IN direction could be XFRM_STATE_ACQ,
then the received packet will be dropped after adding
LINUX_MIB_XFRMINSTATEINVALID statistic.

Adding a LINUX_MIB_XFRMACQUIREERROR statistic counter for such
scenario when SA in larval state is much clearer for user than
LINUX_MIB_XFRMINSTATEINVALID which indicates the SA is totally
bad.

Signed-off-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/uapi/linux/snmp.h
net/xfrm/xfrm_input.c
net/xfrm/xfrm_proc.c