Home
last modified time | relevance | path

Searched refs:thlen (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/include/linux/
H A Dvirtio_net.h56 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()
110 p_off = nh_min_len + thlen; in virtio_net_hdr_to_skb()
143 p_off = keys.control.thoff + thlen; in virtio_net_hdr_to_skb()
150 p_off = nh_min_len + thlen; in virtio_net_hdr_to_skb()
164 nh_off -= thlen; in virtio_net_hdr_to_skb()
H A Dicmp.h41 int thlen, int off);
/openbmc/linux/net/ipv4/
H A Dtcp_offload.c62 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()
79 if (!pskb_may_pull(skb, thlen)) in tcp_gso_segment()
83 __skb_pull(skb, thlen); in tcp_gso_segment()
117 delta = (__force __wsum)htonl(oldlen + thlen + mss); in tcp_gso_segment()
191 unsigned int thlen; in tcp_gro_receive() local
205 thlen = th->doff * 4; in tcp_gro_receive()
206 if (thlen < sizeof(*th)) in tcp_gro_receive()
209 hlen = off + thlen; in tcp_gro_receive()
[all …]
H A Dicmp.c1344 int thlen, int off) in ip_icmp_error_rfc4884()
1349 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884()
1345 ip_icmp_error_rfc4884(const struct sk_buff * skb,struct sock_ee_data_rfc4884 * out,int thlen,int off) ip_icmp_error_rfc4884() argument
/openbmc/linux/net/core/
H A Dgso.c146 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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_check_syncookie_kern.c30 __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()