Lines Matching refs:top_iph
126 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done() local
134 top_iph->tos = iph->tos; in ah_output_done()
135 top_iph->ttl = iph->ttl; in ah_output_done()
136 top_iph->frag_off = iph->frag_off; in ah_output_done()
137 if (top_iph->ihl != 5) { in ah_output_done()
138 top_iph->daddr = iph->daddr; in ah_output_done()
139 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
156 struct iphdr *iph, *top_iph; in ah_output() local
191 top_iph = ip_hdr(skb); in ah_output()
193 iph->tos = top_iph->tos; in ah_output()
194 iph->ttl = top_iph->ttl; in ah_output()
195 iph->frag_off = top_iph->frag_off; in ah_output()
197 if (top_iph->ihl != 5) { in ah_output()
198 iph->daddr = top_iph->daddr; in ah_output()
199 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
200 err = ip_clear_mutable_options(top_iph, &top_iph->daddr); in ah_output()
208 top_iph->tos = 0; in ah_output()
209 top_iph->tot_len = htons(skb->len); in ah_output()
210 top_iph->frag_off = 0; in ah_output()
211 top_iph->ttl = 0; in ah_output()
212 top_iph->check = 0; in ah_output()
250 top_iph->tos = iph->tos; in ah_output()
251 top_iph->ttl = iph->ttl; in ah_output()
252 top_iph->frag_off = iph->frag_off; in ah_output()
253 if (top_iph->ihl != 5) { in ah_output()
254 top_iph->daddr = iph->daddr; in ah_output()
255 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()