Searched refs:thlen (Results 1 – 6 of 6) sorted by relevance
/linux-6.3-rc2/include/linux/ |
A D | virtio_net.h | 53 unsigned int thlen = 0; in virtio_net_hdr_to_skb() local 62 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 67 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 72 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb() 77 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb() 95 u32 needed = start + max_t(u32, thlen, off + sizeof(__sum16)); in virtio_net_hdr_to_skb() 103 p_off = skb_transport_offset(skb) + thlen; in virtio_net_hdr_to_skb() 136 p_off = keys.control.thoff + thlen; in virtio_net_hdr_to_skb() 143 p_off = thlen; in virtio_net_hdr_to_skb() 156 nh_off -= thlen; in virtio_net_hdr_to_skb()
|
A D | icmp.h | 41 int thlen, int off);
|
/linux-6.3-rc2/net/ipv4/ |
A 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 …]
|
A D | icmp.c | 1323 int thlen, int off) in ip_icmp_error_rfc4884() argument 1328 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A 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.3-rc2/net/core/ |
A D | skbuff.c | 5732 unsigned int thlen = 0; in skb_gso_transport_seglen() local 5735 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen() 5739 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen() 5741 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen() 5743 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen() 5745 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen() 5751 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()
|
Completed in 19 milliseconds