Lines Matching refs:extlen
289 int extlen; in ah6_output_done() local
299 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
300 if (extlen) in ah6_output_done()
301 extlen += sizeof(*iph_ext); in ah6_output_done()
305 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
310 if (extlen) { in ah6_output_done()
312 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done()
314 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done()
326 int extlen; in ah6_output() local
352 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
353 if (extlen) in ah6_output()
354 extlen += sizeof(*iph_ext); in ah6_output()
362 extlen + seqhi_len); in ah6_output()
367 seqhi = (__be32 *)((char *)iph_ext + extlen); in ah6_output()
387 if (extlen) { in ah6_output()
389 memcpy(iph_ext, &top_iph->saddr, extlen); in ah6_output()
391 memcpy(iph_ext, &top_iph->daddr, extlen); in ah6_output()
394 extlen - sizeof(*iph_ext) + in ah6_output()
443 if (extlen) { in ah6_output()
445 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output()
447 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output()