Lines Matching refs:iph
153 struct iphdr *iph; in pptp_xmit() local
169 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2; in pptp_xmit()
224 skb_push(skb, sizeof(*iph)); in pptp_xmit()
229 iph = ip_hdr(skb); in pptp_xmit()
230 iph->version = 4; in pptp_xmit()
231 iph->ihl = sizeof(struct iphdr) >> 2; in pptp_xmit()
233 iph->frag_off = htons(IP_DF); in pptp_xmit()
235 iph->frag_off = 0; in pptp_xmit()
236 iph->protocol = IPPROTO_GRE; in pptp_xmit()
237 iph->tos = 0; in pptp_xmit()
238 iph->daddr = fl4.daddr; in pptp_xmit()
239 iph->saddr = fl4.saddr; in pptp_xmit()
240 iph->ttl = ip4_dst_hoplimit(&rt->dst); in pptp_xmit()
241 iph->tot_len = htons(skb->len); in pptp_xmit()
250 ip_send_check(iph); in pptp_xmit()
343 struct iphdr *iph; in pptp_rcv() local
351 iph = ip_hdr(skb); in pptp_rcv()
363 po = lookup_chan(htons(header->call_id), iph->saddr); in pptp_rcv()