aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/esp4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r--net/ipv4/esp4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c
index d233e2e62500..0f62af9a7f15 100644
--- a/net/ipv4/esp4.c
+++ b/net/ipv4/esp4.c
@@ -95,8 +95,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)
95 top_iph->protocol = IPPROTO_ESP; 95 top_iph->protocol = IPPROTO_ESP;
96 96
97 esph->spi = x->id.spi; 97 esph->spi = x->id.spi;
98 esph->seq_no = htonl(++x->replay.oseq); 98 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq);
99 xfrm_aevent_doreplay(x);
100 99
101 if (esp->conf.ivlen) { 100 if (esp->conf.ivlen) {
102 if (unlikely(!esp->conf.ivinitted)) { 101 if (unlikely(!esp->conf.ivinitted)) {
@@ -437,6 +436,7 @@ static struct xfrm_type esp_type =
437 .description = "ESP4", 436 .description = "ESP4",
438 .owner = THIS_MODULE, 437 .owner = THIS_MODULE,
439 .proto = IPPROTO_ESP, 438 .proto = IPPROTO_ESP,
439 .flags = XFRM_TYPE_REPLAY_PROT,
440 .init_state = esp_init_state, 440 .init_state = esp_init_state,
441 .destructor = esp_destroy, 441 .destructor = esp_destroy,
442 .get_mtu = esp4_get_mtu, 442 .get_mtu = esp4_get_mtu,