]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "xfrm: update SA curlft.use_time"
authorAntony Antony <antony.antony@secunet.com>
Wed, 27 Jul 2022 15:38:35 +0000 (17:38 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 3 Aug 2022 05:27:37 +0000 (07:27 +0200)
commitc43e65fcf439e2d1c7cd02e821a9e7cb35eb57b1
tree72b9d5de38a3a625a78576d1bd105bf5e499fc89
parent616dcfaf18ae824a5315390f307bf21499ecce15
Revert "xfrm: update SA curlft.use_time"

This reverts commit f6ac6fedbcc79d72ad26adb6f237d68b2fea9b58.

The abvoce commit is a regression according RFC 2367. A better fix would be
use x->lastused. Which will be propsed later.

according to RFC 2367 use_time == sadb_lifetime_usetime.

"sadb_lifetime_usetime
                   For CURRENT, the time, in seconds, when association
                   was first used. For HARD and SOFT, the number of
                   seconds after the first use of the association until
                   it expires."

Fixes: f6ac6fedbcc7 ("xfrm: update SA curlft.use_time")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c
net/xfrm/xfrm_output.c