Lines Matching refs:ihl

82 	int  l = iph->ihl*4 - sizeof(struct iphdr);  in ip_clear_mutable_options()
128 int ihl = ip_hdrlen(skb); in ah_output_done() local
131 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
137 if (top_iph->ihl != 5) { in ah_output_done()
139 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
150 int ihl; in ah_output() local
173 ihl = ip_hdrlen(skb); in ah_output()
180 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
183 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
197 if (top_iph->ihl != 5) { in ah_output()
199 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
253 if (top_iph->ihl != 5) { in ah_output()
255 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
273 int ihl = ip_hdrlen(skb); in ah_input_done() local
280 auth_data = ah_tmp_auth(work_iph, ihl); in ah_input_done()
290 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input_done()
291 __skb_pull(skb, ah_hlen + ihl); in ah_input_done()
296 skb_set_transport_header(skb, -ihl); in ah_input_done()
305 int ihl; in ah_input() local
360 ihl = ip_hdrlen(skb); in ah_input()
367 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + in ah_input()
374 seqhi = (__be32 *)((char *)work_iph + ihl); in ah_input()
381 memcpy(work_iph, iph, ihl); in ah_input()
389 if (ihl > sizeof(*iph)) { in ah_input()
396 skb_push(skb, ihl); in ah_input()
426 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input()
427 __skb_pull(skb, ah_hlen + ihl); in ah_input()
431 skb_set_transport_header(skb, -ihl); in ah_input()
445 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in ah4_err()