• Home
  • Raw
  • Download

Lines Matching refs:iph

78 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr)  in ip_clear_mutable_options()  argument
80 unsigned char *optptr = (unsigned char *)(iph+1); in ip_clear_mutable_options()
81 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
121 struct iphdr *iph; in ah_output_done() local
129 iph = AH_SKB_CB(skb)->tmp; in ah_output_done()
130 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
133 top_iph->tos = iph->tos; in ah_output_done()
134 top_iph->ttl = iph->ttl; in ah_output_done()
135 top_iph->frag_off = iph->frag_off; in ah_output_done()
137 top_iph->daddr = iph->daddr; in ah_output_done()
138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
155 struct iphdr *iph, *top_iph; in ah_output() local
179 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
180 if (!iph) in ah_output()
182 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
192 iph->tos = top_iph->tos; in ah_output()
193 iph->ttl = top_iph->ttl; in ah_output()
194 iph->frag_off = top_iph->frag_off; in ah_output()
197 iph->daddr = top_iph->daddr; in ah_output()
198 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
235 AH_SKB_CB(skb)->tmp = iph; in ah_output()
249 top_iph->tos = iph->tos; in ah_output()
250 top_iph->ttl = iph->ttl; in ah_output()
251 top_iph->frag_off = iph->frag_off; in ah_output()
253 top_iph->daddr = iph->daddr; in ah_output()
254 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
258 kfree(iph); in ah_output()
313 struct iphdr *iph, *work_iph; in ah_input() local
358 iph = ip_hdr(skb); in ah_input()
380 memcpy(work_iph, iph, ihl); in ah_input()
384 iph->ttl = 0; in ah_input()
385 iph->tos = 0; in ah_input()
386 iph->frag_off = 0; in ah_input()
387 iph->check = 0; in ah_input()
388 if (ihl > sizeof(*iph)) { in ah_input()
390 err = ip_clear_mutable_options(iph, &dummy); in ah_input()
443 const struct iphdr *iph = (const struct iphdr *)skb->data; in ah4_err() local
444 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in ah4_err()
457 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ah4_err()