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 e42a905180f0..882dbbb7d799 100644
--- a/net/ipv4/esp4.c
+++ b/net/ipv4/esp4.c
@@ -215,7 +215,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)
215 } 215 }
216 216
217 esph->spi = x->id.spi; 217 esph->spi = x->id.spi;
218 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output); 218 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low);
219 219
220 sg_init_table(sg, nfrags); 220 sg_init_table(sg, nfrags);
221 skb_to_sgvec(skb, sg, 221 skb_to_sgvec(skb, sg,
@@ -227,7 +227,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)
227 aead_givcrypt_set_crypt(req, sg, sg, clen, iv); 227 aead_givcrypt_set_crypt(req, sg, sg, clen, iv);
228 aead_givcrypt_set_assoc(req, asg, sizeof(*esph)); 228 aead_givcrypt_set_assoc(req, asg, sizeof(*esph));
229 aead_givcrypt_set_giv(req, esph->enc_data, 229 aead_givcrypt_set_giv(req, esph->enc_data,
230 XFRM_SKB_CB(skb)->seq.output); 230 XFRM_SKB_CB(skb)->seq.output.low);
231 231
232 ESP_SKB_CB(skb)->tmp = tmp; 232 ESP_SKB_CB(skb)->tmp = tmp;
233 err = crypto_aead_givencrypt(req); 233 err = crypto_aead_givencrypt(req);