Lines Matching refs:esph

119 	struct ip_esp_hdr *esph;  in esp_output()  local
162 assoclen = sizeof(*esph); in esp_output()
200 esph = ip_esp_hdr(skb); in esp_output()
217 uh = (struct udphdr *)esph; in esp_output()
226 esph = (struct ip_esp_hdr *)(uh + 1); in esp_output()
231 esph = (struct ip_esp_hdr *)(udpdata32 + 2); in esp_output()
238 esph->spi = x->id.spi; in esp_output()
239 esph->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in esp_output()
243 esph->enc_data + crypto_aead_ivsize(aead) - skb->data, in esp_output()
248 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp_output()
251 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp_output()
253 sg_init_one(asg, esph, sizeof(*esph)); in esp_output()
258 aead_givcrypt_set_giv(req, esph->enc_data, in esp_output()
374 struct ip_esp_hdr *esph; in esp_input() local
378 int elen = skb->len - sizeof(*esph) - crypto_aead_ivsize(aead); in esp_input()
390 if (!pskb_may_pull(skb, sizeof(*esph) + crypto_aead_ivsize(aead))) in esp_input()
402 assoclen = sizeof(*esph); in esp_input()
426 esph = (struct ip_esp_hdr *)skb->data; in esp_input()
429 iv = esph->enc_data; in esp_input()
432 skb_to_sgvec(skb, sg, sizeof(*esph) + crypto_aead_ivsize(aead), elen); in esp_input()
436 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp_input()
439 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp_input()
441 sg_init_one(asg, esph, sizeof(*esph)); in esp_input()
483 struct ip_esp_hdr *esph = (struct ip_esp_hdr *)(skb->data+(iph->ihl<<2)); in esp4_err() local
497 esph->spi, IPPROTO_ESP, AF_INET); in esp4_err()