/kernel/linux/linux-5.10/include/linux/ |
H A 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()
|
H A D | icmp.h | 41 int thlen, int off);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | virtio_net.h | 56 unsigned int thlen = 0; in virtio_net_hdr_to_skb() local 65 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 70 thlen = sizeof(struct tcphdr); in virtio_net_hdr_to_skb() 76 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb() 81 thlen = sizeof(struct udphdr); in virtio_net_hdr_to_skb() 99 u32 needed = start + max_t(u32, thlen, off + sizeof(__sum16)); in virtio_net_hdr_to_skb() 108 p_off = nh_min_len + thlen; in virtio_net_hdr_to_skb() 141 p_off = keys.control.thoff + thlen; in virtio_net_hdr_to_skb() 148 p_off = nh_min_len + thlen; in virtio_net_hdr_to_skb() 162 nh_off -= thlen; in virtio_net_hdr_to_skb() [all...] |
H A D | icmp.h | 41 int thlen, int off);
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_offload.c | 60 unsigned int thlen; in tcp_gso_segment() local 70 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() local 204 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...] |
H A D | icmp.c | 1192 int thlen, int off) in ip_icmp_error_rfc4884() 1197 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884() 1190 ip_icmp_error_rfc4884(const struct sk_buff *skb, struct sock_ee_data_rfc4884 *out, int thlen, int off) ip_icmp_error_rfc4884() argument
|
/kernel/linux/linux-6.6/net/core/ |
H A D | gso.c | 146 unsigned int thlen = 0; in skb_gso_transport_seglen() local 149 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen() 153 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen() 155 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen() 157 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen() 159 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen() 165 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_offload.c | 62 unsigned int thlen; in tcp_gso_segment() local 72 thlen = th->doff * 4; in tcp_gso_segment() 73 if (thlen < sizeof(*th)) in tcp_gso_segment() 76 if (!pskb_may_pull(skb, thlen)) in tcp_gso_segment() 80 __skb_pull(skb, thlen); in tcp_gso_segment() 114 delta = (__force __wsum)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...] |
H A D | icmp.c | 1328 int thlen, int off) in ip_icmp_error_rfc4884() 1333 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884() 1326 ip_icmp_error_rfc4884(const struct sk_buff *skb, struct sock_ee_data_rfc4884 *out, int thlen, int off) ip_icmp_error_rfc4884() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H 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()
|
/kernel/linux/linux-5.10/net/core/ |
H A D | skbuff.c | 5334 unsigned int thlen = 0; in skb_gso_transport_seglen() local 5337 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen() 5341 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen() 5343 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen() 5345 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen() 5347 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen() 5353 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()
|