diff options
Diffstat (limited to 'net/ipv6/ah6.c')
-rw-r--r-- | net/ipv6/ah6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 69a2030407b8..ae68a900f605 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c | |||
@@ -283,8 +283,7 @@ static int ah6_output(struct xfrm_state *x, struct sk_buff *skb) | |||
283 | 283 | ||
284 | ah->reserved = 0; | 284 | ah->reserved = 0; |
285 | ah->spi = x->id.spi; | 285 | ah->spi = x->id.spi; |
286 | ah->seq_no = htonl(++x->replay.oseq); | 286 | ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq); |
287 | xfrm_aevent_doreplay(x); | ||
288 | err = ah_mac_digest(ahp, skb, ah->auth_data); | 287 | err = ah_mac_digest(ahp, skb, ah->auth_data); |
289 | if (err) | 288 | if (err) |
290 | goto error_free_iph; | 289 | goto error_free_iph; |
@@ -506,6 +505,7 @@ static struct xfrm_type ah6_type = | |||
506 | .description = "AH6", | 505 | .description = "AH6", |
507 | .owner = THIS_MODULE, | 506 | .owner = THIS_MODULE, |
508 | .proto = IPPROTO_AH, | 507 | .proto = IPPROTO_AH, |
508 | .flags = XFRM_TYPE_REPLAY_PROT, | ||
509 | .init_state = ah6_init_state, | 509 | .init_state = ah6_init_state, |
510 | .destructor = ah6_destroy, | 510 | .destructor = ah6_destroy, |
511 | .input = ah6_input, | 511 | .input = ah6_input, |