Lines Matching refs:extlen
299 int extlen; in ah6_output_done() local
309 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
310 if (extlen) in ah6_output_done()
311 extlen += sizeof(*iph_ext); in ah6_output_done()
315 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
320 if (extlen) { in ah6_output_done()
322 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done()
324 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done()
336 int extlen; in ah6_output() local
362 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
363 if (extlen) in ah6_output()
364 extlen += sizeof(*iph_ext); in ah6_output()
372 extlen + seqhi_len); in ah6_output()
377 seqhi = (__be32 *)((char *)iph_ext + extlen); in ah6_output()
397 if (extlen) { in ah6_output()
399 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output()
401 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output()
404 extlen - sizeof(*iph_ext) + in ah6_output()
451 if (extlen) { in ah6_output()
453 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output()
455 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output()