Searched refs:thlen (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/include/linux/ |
D | virtio_net.h | 51 unsigned int thlen = 0; in virtio_net_hdr_to_skb() local 60 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 65 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 70 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb() 88 u32 needed = start + max_t(u32, thlen, off + sizeof(__sum16)); in virtio_net_hdr_to_skb() 96 p_off = skb_transport_offset(skb) + thlen; in virtio_net_hdr_to_skb() 129 p_off = keys.control.thoff + thlen; in virtio_net_hdr_to_skb() 136 p_off = thlen; in virtio_net_hdr_to_skb() 149 nh_off -= thlen; in virtio_net_hdr_to_skb()
|
D | icmp.h | 41 int thlen, int off);
|
/linux-6.1.9/net/ipv4/ |
D | tcp_offload.c | 61 unsigned int thlen; in tcp_gso_segment() local 71 thlen = th->doff * 4; in tcp_gso_segment() 72 if (thlen < sizeof(*th)) in tcp_gso_segment() 75 if (!pskb_may_pull(skb, thlen)) in tcp_gso_segment() 79 __skb_pull(skb, thlen); in tcp_gso_segment() 113 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment() 188 unsigned int thlen; in tcp_gro_receive() local 202 thlen = th->doff * 4; in tcp_gro_receive() 203 if (thlen < sizeof(*th)) in tcp_gro_receive() 206 hlen = off + thlen; in tcp_gro_receive() [all …]
|
D | icmp.c | 1320 int thlen, int off) in ip_icmp_error_rfc4884() argument 1325 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884()
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_tcp_check_syncookie_kern.c | 30 __u32 thlen = tcph->doff * 4; in gen_syncookie() local 34 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()
|
/linux-6.1.9/net/core/ |
D | skbuff.c | 5543 unsigned int thlen = 0; in skb_gso_transport_seglen() local 5546 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen() 5550 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen() 5552 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen() 5554 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen() 5556 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen() 5562 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()
|