Home
last modified time | relevance | path

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

/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()
/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()
144 p_off = keys.control.thoff + thlen; in __virtio_net_hdr_to_skb()
151 p_off = nh_min_len + thlen; in __virtio_net_hdr_to_skb()
165 nh_off -= thlen; in __virtio_net_hdr_to_skb()
/linux/net/ipv4/
H A Dtcp_offload.c139 unsigned int thlen; in tcp_gso_segment() local
150 thlen = th->doff * 4; in tcp_gso_segment()
151 if (thlen < sizeof(*th)) in tcp_gso_segment()
157 if (!pskb_may_pull(skb, thlen)) in tcp_gso_segment()
161 __skb_pull(skb, thlen); in tcp_gso_segment()
195 delta = (__force __wsum)htonl(oldlen + thlen + mss); in tcp_gso_segment()
289 unsigned int thlen = th->doff * 4; in tcp_gro_receive() local
311 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
H A Dicmp.c1545 int thlen, int off)
1550 hlen = -skb_transport_offset(skb) - thlen;
1357 ip_icmp_error_rfc4884(const struct sk_buff * skb,struct sock_ee_data_rfc4884 * out,int thlen,int off) ip_icmp_error_rfc4884() argument