Searched refs:thlen (Results 1 – 6 of 6) sorted by relevance
33 unsigned int thlen = 0; in virtio_net_hdr_to_skb() local42 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb()47 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb()52 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb()72 p_off = skb_transport_offset(skb) + thlen; in virtio_net_hdr_to_skb()97 p_off = keys.control.thoff + thlen; in virtio_net_hdr_to_skb()104 p_off = thlen; in virtio_net_hdr_to_skb()
41 int thlen, int off);
60 unsigned int thlen; in tcp_gso_segment() local70 thlen = th->doff * 4; in tcp_gso_segment()71 if (thlen < sizeof(*th)) in tcp_gso_segment()74 if (!pskb_may_pull(skb, thlen)) in tcp_gso_segment()78 __skb_pull(skb, thlen); in tcp_gso_segment()112 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment()187 unsigned int thlen; in tcp_gro_receive() local204 thlen = th->doff * 4; in tcp_gro_receive()205 if (thlen < sizeof(*th)) in tcp_gro_receive()208 hlen = off + thlen; in tcp_gro_receive()[all …]
1177 int thlen, int off) in ip_icmp_error_rfc4884() argument1182 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884()
30 __u32 thlen = tcph->doff * 4; in gen_syncookie() local34 if (thlen != 24) in gen_syncookie()37 if ((void *)tcph + thlen > data_end) in gen_syncookie()40 return bpf_tcp_gen_syncookie(sk, iph, ip_size, tcph, thlen); in gen_syncookie()
5250 unsigned int thlen = 0; in skb_gso_transport_seglen() local5253 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen()5257 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen()5259 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen()5261 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen()5263 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen()5269 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()