Lines Matching refs:ihl
81 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
127 int ihl = ip_hdrlen(skb); in ah_output_done() local
130 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
136 if (top_iph->ihl != 5) { in ah_output_done()
138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
149 int ihl; in ah_output() local
172 ihl = ip_hdrlen(skb); in ah_output()
179 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
182 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
196 if (top_iph->ihl != 5) { in ah_output()
198 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
250 if (top_iph->ihl != 5) { in ah_output()
252 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
270 int ihl = ip_hdrlen(skb); in ah_input_done() local
274 auth_data = ah_tmp_auth(work_iph, ihl); in ah_input_done()
284 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input_done()
285 __skb_pull(skb, ah_hlen + ihl); in ah_input_done()
290 skb_set_transport_header(skb, -ihl); in ah_input_done()
299 int ihl; in ah_input() local
354 ihl = ip_hdrlen(skb); in ah_input()
361 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + in ah_input()
368 seqhi = (__be32 *)((char *)work_iph + ihl); in ah_input()
375 memcpy(work_iph, iph, ihl); in ah_input()
383 if (ihl > sizeof(*iph)) { in ah_input()
390 skb_push(skb, ihl); in ah_input()
418 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input()
419 __skb_pull(skb, ah_hlen + ihl); in ah_input()
423 skb_set_transport_header(skb, -ihl); in ah_input()
437 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in ah4_err()