Lines Matching refs:iph

78 static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr)
80 unsigned char *optptr = (unsigned char *)(iph+1);
81 int l = iph->ihl*4 - sizeof(struct iphdr);
121 struct iphdr *iph;
129 iph = AH_SKB_CB(skb)->tmp;
130 icv = ah_tmp_icv(ahp->ahash, iph, ihl);
133 top_iph->tos = iph->tos;
134 top_iph->ttl = iph->ttl;
135 top_iph->frag_off = iph->frag_off;
137 top_iph->daddr = iph->daddr;
138 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
155 struct iphdr *iph, *top_iph;
179 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len);
180 if (!iph)
182 seqhi = (__be32 *)((char *)iph + ihl);
192 iph->tos = top_iph->tos;
193 iph->ttl = top_iph->ttl;
194 iph->frag_off = top_iph->frag_off;
197 iph->daddr = top_iph->daddr;
198 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
233 AH_SKB_CB(skb)->tmp = iph;
247 top_iph->tos = iph->tos;
248 top_iph->ttl = iph->ttl;
249 top_iph->frag_off = iph->frag_off;
251 top_iph->daddr = iph->daddr;
252 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
256 kfree(iph);
308 struct iphdr *iph, *work_iph;
353 iph = ip_hdr(skb);
373 memcpy(work_iph, iph, ihl);
377 iph->ttl = 0;
378 iph->tos = 0;
379 iph->frag_off = 0;
380 iph->check = 0;
381 if (ihl > sizeof(*iph)) {
383 err = ip_clear_mutable_options(iph, &dummy);
434 const struct iphdr *iph = (const struct iphdr *)skb->data;
435 struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2));
448 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,