Lines Matching refs:extlen
286 int extlen; in ah6_output_done() local
296 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
297 if (extlen) in ah6_output_done()
298 extlen += sizeof(*iph_ext); in ah6_output_done()
302 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
307 if (extlen) { in ah6_output_done()
309 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done()
311 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done()
323 int extlen; in ah6_output() local
349 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
350 if (extlen) in ah6_output()
351 extlen += sizeof(*iph_ext); in ah6_output()
359 extlen + seqhi_len); in ah6_output()
364 seqhi = (__be32 *)((char *)iph_ext + extlen); in ah6_output()
384 if (extlen) { in ah6_output()
386 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output()
388 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output()
391 extlen - sizeof(*iph_ext) + in ah6_output()
440 if (extlen) { in ah6_output()
442 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output()
444 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output()