diff options
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 8f8bd82606bf..7640822bc515 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -186,9 +186,11 @@ struct xfrm_state { | |||
186 | 186 | ||
187 | /* State for replay detection */ | 187 | /* State for replay detection */ |
188 | struct xfrm_replay_state replay; | 188 | struct xfrm_replay_state replay; |
189 | struct xfrm_replay_state_esn *replay_esn; | ||
189 | 190 | ||
190 | /* Replay detection state at the time we sent the last notification */ | 191 | /* Replay detection state at the time we sent the last notification */ |
191 | struct xfrm_replay_state preplay; | 192 | struct xfrm_replay_state preplay; |
193 | struct xfrm_replay_state_esn *preplay_esn; | ||
192 | 194 | ||
193 | /* internal flag that only holds state for delayed aevent at the | 195 | /* internal flag that only holds state for delayed aevent at the |
194 | * moment | 196 | * moment |
@@ -1569,6 +1571,11 @@ static inline int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg) | |||
1569 | return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); | 1571 | return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); |
1570 | } | 1572 | } |
1571 | 1573 | ||
1574 | static inline int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) | ||
1575 | { | ||
1576 | return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); | ||
1577 | } | ||
1578 | |||
1572 | #ifdef CONFIG_XFRM_MIGRATE | 1579 | #ifdef CONFIG_XFRM_MIGRATE |
1573 | static inline struct xfrm_algo *xfrm_algo_clone(struct xfrm_algo *orig) | 1580 | static inline struct xfrm_algo *xfrm_algo_clone(struct xfrm_algo *orig) |
1574 | { | 1581 | { |