]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix esn sequence number diff calculation in xfrm_replay_notify_esn()
authorMathias Krause <minipli@googlemail.com>
Wed, 20 Mar 2013 21:59:11 +0000 (22:59 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 25 Mar 2013 06:25:50 +0000 (07:25 +0100)
commit1638026bec48030685b70eb48a3af5b9a09480f5
tree8dc4b7c9fc0f0fc13e1e7a04ce62107fa1d02b4b
parentc62ff70e93d99e1528c03cfd1044a569a23bb727
xfrm: Fix esn sequence number diff calculation in xfrm_replay_notify_esn()

Commit c62ff70 "xfrm: Fix replay notification for esn." is off by one
for the sequence number wrapped case as UINT_MAX is 0xffffffff, not
0x100000000. ;)

Just calculate the diff like done everywhere else in the file.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_replay.c