Lines Matching refs:extlen
301 int extlen; in ah6_output_done() local
311 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
312 if (extlen) in ah6_output_done()
313 extlen += sizeof(*iph_ext); in ah6_output_done()
317 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
322 if (extlen) { in ah6_output_done()
324 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done()
326 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done()
338 int extlen; in ah6_output() local
364 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
365 if (extlen) in ah6_output()
366 extlen += sizeof(*iph_ext); in ah6_output()
374 extlen + seqhi_len); in ah6_output()
379 seqhi = (__be32 *)((char *)iph_ext + extlen); in ah6_output()
399 if (extlen) { in ah6_output()
401 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output()
403 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output()
406 extlen - sizeof(*iph_ext) + in ah6_output()
455 if (extlen) { in ah6_output()
457 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output()
459 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output()