Lines Matching refs:iph
31 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish() local
33 if (ip_route_input_noref(skb, iph->daddr, iph->saddr, in xfrm4_rcv_encap_finish()
34 iph->tos, skb->dev)) in xfrm4_rcv_encap_finish()
50 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish() local
52 iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol; in xfrm4_transport_finish()
56 return -iph->protocol; in xfrm4_transport_finish()
60 iph->tot_len = htons(skb->len); in xfrm4_transport_finish()
61 ip_send_check(iph); in xfrm4_transport_finish()
86 struct iphdr *iph; in xfrm4_udp_encap_rcv() local
145 iph = ip_hdr(skb); in xfrm4_udp_encap_rcv()
146 iphlen = iph->ihl << 2; in xfrm4_udp_encap_rcv()
147 iph->tot_len = htons(ntohs(iph->tot_len) - len); in xfrm4_udp_encap_rcv()