Lines Matching refs:len
52 iph->tot_len = htons(skb->len); in xfrm4_transport_finish()
72 int iphlen, len; in xfrm4_udp_encap_rcv() local
84 len = skb->len - sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
85 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in xfrm4_udp_encap_rcv()
97 if (len == 1 && udpdata[0] == 0xff) { in xfrm4_udp_encap_rcv()
99 } else if (len > sizeof(struct ip_esp_hdr) && udpdata32[0] != 0) { in xfrm4_udp_encap_rcv()
101 len = sizeof(struct udphdr); in xfrm4_udp_encap_rcv()
108 if (len == 1 && udpdata[0] == 0xff) { in xfrm4_udp_encap_rcv()
110 } else if (len > 2 * sizeof(u32) + sizeof(struct ip_esp_hdr) && in xfrm4_udp_encap_rcv()
114 len = sizeof(struct udphdr) + 2 * sizeof(u32); in xfrm4_udp_encap_rcv()
132 iph->tot_len = htons(ntohs(iph->tot_len) - len); in xfrm4_udp_encap_rcv()
133 if (skb->len < iphlen + len) { in xfrm4_udp_encap_rcv()
142 __skb_pull(skb, len); in xfrm4_udp_encap_rcv()