Lines Matching refs:top_iph
127 struct iphdr *top_iph = ip_hdr(skb); in ah_output_done() local
135 top_iph->tos = iph->tos; in ah_output_done()
136 top_iph->ttl = iph->ttl; in ah_output_done()
137 top_iph->frag_off = iph->frag_off; in ah_output_done()
138 if (top_iph->ihl != 5) { in ah_output_done()
139 top_iph->daddr = iph->daddr; in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
157 struct iphdr *iph, *top_iph; in ah_output() local
192 top_iph = ip_hdr(skb); in ah_output()
194 iph->tos = top_iph->tos; in ah_output()
195 iph->ttl = top_iph->ttl; in ah_output()
196 iph->frag_off = top_iph->frag_off; in ah_output()
198 if (top_iph->ihl != 5) { in ah_output()
199 iph->daddr = top_iph->daddr; in ah_output()
200 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()
201 err = ip_clear_mutable_options(top_iph, &top_iph->daddr); in ah_output()
209 top_iph->tos = 0; in ah_output()
210 top_iph->tot_len = htons(skb->len); in ah_output()
211 top_iph->frag_off = 0; in ah_output()
212 top_iph->ttl = 0; in ah_output()
213 top_iph->check = 0; in ah_output()
251 top_iph->tos = iph->tos; in ah_output()
252 top_iph->ttl = iph->ttl; in ah_output()
253 top_iph->frag_off = iph->frag_off; in ah_output()
254 if (top_iph->ihl != 5) { in ah_output()
255 top_iph->daddr = iph->daddr; in ah_output()
256 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output()