Home
last modified time | relevance | path

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

/linux/net/core/
H A Dgso.c147 unsigned int thlen = 0; in skb_gso_transport_seglen()
150 thlen = skb_inner_transport_header(skb) - in skb_gso_transport_seglen()
154 thlen += inner_tcp_hdrlen(skb); in skb_gso_transport_seglen()
156 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen()
158 thlen = sizeof(struct sctphdr); in skb_gso_transport_seglen()
160 thlen = sizeof(struct udphdr); in skb_gso_transport_seglen()
166 return thlen + shinfo->gso_size; in skb_gso_transport_seglen()
146 unsigned int thlen = 0; skb_gso_transport_seglen() local
/linux/include/linux/
H A Dvirtio_net.h57 unsigned int thlen = 0; in __virtio_net_hdr_to_skb() local
66 thlen = sizeof(struct tcphdr); in __virtio_net_hdr_to_skb()
71 thlen = sizeof(struct tcphdr); in __virtio_net_hdr_to_skb()
77 thlen = sizeof(struct udphdr); in __virtio_net_hdr_to_skb()
82 thlen = sizeof(struct udphdr); in __virtio_net_hdr_to_skb()
100 u32 needed = start + max_t(u32, thlen, off + sizeof(__sum16)); in __virtio_net_hdr_to_skb()
111 p_off = nh_min_len + thlen; in __virtio_net_hdr_to_skb()
138 p_off = keys.control.thoff + thlen; in __virtio_net_hdr_to_skb()
156 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
310 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
H A Dicmp.c1600 int thlen, int off) in ip_icmp_error_rfc4884() argument
1605 hlen = -skb_transport_offset(skb) - thlen; in ip_icmp_error_rfc4884()
/linux/net/netfilter/
H A Dnfnetlink_queue.c1244 unsigned int thlen; in nfqnl_validate_l4()
1249 thlen = __tcp_hdrlen(th); in nfqnl_validate_l4()
1250 if (thlen < sizeof(*th) || data_len < thlen) in nfqnl_validate_l4()
1237 unsigned int thlen; nfqnl_validate_l4() local