Lines Matching refs:len
60 iph->tot_len = htons(skb->len); in xfrm4_transport_finish()
80 int iphlen, len; in xfrm4_udp_encap_rcv() local
92 len = skb->len - sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
93 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in xfrm4_udp_encap_rcv()
105 if (len == 1 && udpdata[0] == 0xff) { in xfrm4_udp_encap_rcv()
107 } else if (len > sizeof(struct ip_esp_hdr) && udpdata32[0] != 0) { in xfrm4_udp_encap_rcv()
109 len = sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
116 if (len == 1 && udpdata[0] == 0xff) { in xfrm4_udp_encap_rcv()
118 } else if (len > 2 * sizeof(u32) + sizeof(struct ip_esp_hdr) && in xfrm4_udp_encap_rcv()
122 len = sizeof(struct udphdr) + 2 * sizeof(u32); in xfrm4_udp_encap_rcv()
140 iph->tot_len = htons(ntohs(iph->tot_len) - len); in xfrm4_udp_encap_rcv()
141 if (skb->len < iphlen + len) { in xfrm4_udp_encap_rcv()
150 __skb_pull(skb, len); in xfrm4_udp_encap_rcv()