Lines Matching refs:ihl
83 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
129 int ihl = ip_hdrlen(skb); in ah_output_done() local
132 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
138 if (top_iph->ihl != 5) { in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
151 int ihl; in ah_output() local
174 ihl = ip_hdrlen(skb); in ah_output()
181 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
184 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
198 if (top_iph->ihl != 5) { in ah_output()
200 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
254 if (top_iph->ihl != 5) { in ah_output()
256 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
274 int ihl = ip_hdrlen(skb); in ah_input_done() local
281 auth_data = ah_tmp_auth(work_iph, ihl); in ah_input_done()
291 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input_done()
292 __skb_pull(skb, ah_hlen + ihl); in ah_input_done()
297 skb_set_transport_header(skb, -ihl); in ah_input_done()
306 int ihl; in ah_input() local
361 ihl = ip_hdrlen(skb); in ah_input()
368 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + in ah_input()
375 seqhi = (__be32 *)((char *)work_iph + ihl); in ah_input()
382 memcpy(work_iph, iph, ihl); in ah_input()
390 if (ihl > sizeof(*iph)) { in ah_input()
397 skb_push(skb, ihl); in ah_input()
427 memcpy(skb_network_header(skb), work_iph, ihl); in ah_input()
428 __skb_pull(skb, ah_hlen + ihl); in ah_input()
432 skb_set_transport_header(skb, -ihl); in ah_input()
446 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in ah4_err()