]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix replay notification for esn.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 11 Mar 2013 09:32:16 +0000 (10:32 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 20 Mar 2013 10:57:52 +0000 (11:57 +0100)
commit55d4458df9a6c6266bdb5218323d8752ff7f51e5
tree79be87abec387e4f8e6a24afb16ea822e54e4938
parente3b08748c027d5e52199e64846821c500db8da8a
xfrm: Fix replay notification for esn.

We may miscalculate the sequence number difference from the
last time we send a notification if a sequence number wrap
occured in the meantime. We fix this by adding a separate
replay notify function for esn. Here we take the high bits
of the sequence number into account to calculate the
difference.

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