Skip to content

Commit 0171410

Browse files
Fan Duklassert
authored andcommitted
xfrm: Don't prohibit AH from using ESN feature
Clear checking when user try to use ESN through netlink keymgr for AH. As only ESP and AH support ESN feature according to RFC. Signed-off-by: Fan Du <fan.du@windriver.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
1 parent 8d6da6f commit 0171410

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/xfrm/xfrm_user.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ static inline int verify_replay(struct xfrm_usersa_info *p,
142142
if (!rt)
143143
return 0;
144144

145-
if (p->id.proto != IPPROTO_ESP)
145+
/* As only ESP and AH support ESN feature. */
146+
if ((p->id.proto != IPPROTO_ESP) && (p->id.proto != IPPROTO_AH))
146147
return -EINVAL;
147148

148149
if (p->replay_window != 0)

0 commit comments

Comments
 (0)