Lines Matching defs:iph

80 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr)
82 unsigned char *optptr = (unsigned char *)(iph+1);
83 int l = iph->ihl*4 - sizeof(struct iphdr);
123 struct iphdr *iph;
131 iph = AH_SKB_CB(skb)->tmp;
132 icv = ah_tmp_icv(ahp->ahash, iph, ihl);
135 top_iph->tos = iph->tos;
136 top_iph->ttl = iph->ttl;
137 top_iph->frag_off = iph->frag_off;
139 top_iph->daddr = iph->daddr;
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
157 struct iphdr *iph, *top_iph;
181 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len);
182 if (!iph)
184 seqhi = (__be32 *)((char *)iph + ihl);
194 iph->tos = top_iph->tos;
195 iph->ttl = top_iph->ttl;
196 iph->frag_off = top_iph->frag_off;
199 iph->daddr = top_iph->daddr;
200 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
237 AH_SKB_CB(skb)->tmp = iph;
251 top_iph->tos = iph->tos;
252 top_iph->ttl = iph->ttl;
253 top_iph->frag_off = iph->frag_off;
255 top_iph->daddr = iph->daddr;
256 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
260 kfree(iph);
315 struct iphdr *iph, *work_iph;
360 iph = ip_hdr(skb);
382 memcpy(work_iph, iph, ihl);
386 iph->ttl = 0;
387 iph->tos = 0;
388 iph->frag_off = 0;
389 iph->check = 0;
390 if (ihl > sizeof(*iph)) {
392 err = ip_clear_mutable_options(iph, &dummy);
445 const struct iphdr *iph = (const struct iphdr *)skb->data;
446 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
460 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,