Lines Matching refs:top_iph
125 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done() local
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()
136 if (top_iph->ihl != 5) { 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
190 top_iph = ip_hdr(skb); 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()
196 if (top_iph->ihl != 5) { 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()
199 err = ip_clear_mutable_options(top_iph, &top_iph->daddr); in ah_output()
207 top_iph->tos = 0; in ah_output()
208 top_iph->tot_len = htons(skb->len); in ah_output()
209 top_iph->frag_off = 0; in ah_output()
210 top_iph->ttl = 0; in ah_output()
211 top_iph->check = 0; in ah_output()
247 top_iph->tos = iph->tos; in ah_output()
248 top_iph->ttl = iph->ttl; in ah_output()
249 top_iph->frag_off = iph->frag_off; in ah_output()
250 if (top_iph->ihl != 5) { in ah_output()
251 top_iph->daddr = iph->daddr; in ah_output()
252 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()