aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ah4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ah4.c')
-rw-r--r--net/ipv4/ah4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
index dc1d8e871b24..58af298e1941 100644
--- a/net/ipv4/ah4.c
+++ b/net/ipv4/ah4.c
@@ -96,8 +96,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb)
96 96
97 ah->reserved = 0; 97 ah->reserved = 0;
98 ah->spi = x->id.spi; 98 ah->spi = x->id.spi;
99 ah->seq_no = htonl(++x->replay.oseq); 99 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq);
100 xfrm_aevent_doreplay(x);
101 err = ah_mac_digest(ahp, skb, ah->auth_data); 100 err = ah_mac_digest(ahp, skb, ah->auth_data);
102 if (err) 101 if (err)
103 goto error; 102 goto error;
@@ -297,6 +296,7 @@ static struct xfrm_type ah_type =
297 .description = "AH4", 296 .description = "AH4",
298 .owner = THIS_MODULE, 297 .owner = THIS_MODULE,
299 .proto = IPPROTO_AH, 298 .proto = IPPROTO_AH,
299 .flags = XFRM_TYPE_REPLAY_PROT,
300 .init_state = ah_init_state, 300 .init_state = ah_init_state,
301 .destructor = ah_destroy, 301 .destructor = ah_destroy,
302 .input = ah_input, 302 .input = ah_input,