Searched refs:tcp_hdrlen (Results 1 – 10 of 10) sorted by relevance
38 int tcp_hdrlen; in tcpoptstrip_mangle_packet() local48 tcp_hdrlen = tcph->doff * 4; in tcpoptstrip_mangle_packet()49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet()52 if (skb_ensure_writable(skb, tcphoff + tcp_hdrlen)) in tcpoptstrip_mangle_packet()63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()66 if (i + optl > tcp_hdrlen) in tcpoptstrip_mangle_packet()
79 int len, tcp_hdrlen; in tcpmss_mangle_packet() local97 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet()99 if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) in tcpmss_mangle_packet()117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet()144 if (len > tcp_hdrlen) in tcpmss_mangle_packet()148 if (tcp_hdrlen >= 15 * 4) in tcpmss_mangle_packet()
235 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in fill_sg_in()313 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_enc_skb()374 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_sw_fallback()
74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
5070 ret = tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()5074 tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()5080 tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()5102 ret = saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()5107 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()5118 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
5355 thlen = tcp_hdrlen(skb); in skb_gso_transport_seglen()
206 __skb_pull(skb, tcp_hdrlen(skb)); in tcp_fastopen_add_skb()
172 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr()190 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_established()6782 u32 len = skb_network_header_len(skb) + tcp_hdrlen(skb); in tcp_reqsk_record_syn()6801 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn()
559 first_opt_off = tcp_hdrlen(skb) - max_opt_len; in bpf_skops_write_hdr_opt()
216 tcp_len = tcp_hdrlen(skb); in tcphdr_ok()