Home
last modified time | relevance | path

Searched refs:ack_seq (Results 1 – 25 of 46) sorted by relevance

12

/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_synproxy_core.c496 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
542 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
583 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack()
584 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack()
622 nth->ack_seq = th->ack_seq; in synproxy_send_client_ack()
643 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
733 synproxy->isn = ntohl(th->ack_seq); in ipv4_synproxy_hook()
909 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack_ipv6()
956 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn_ipv6()
997 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack_ipv6()
[all …]
H A Dnf_conntrack_seqadj.c198 if (after(ntohl(tcph->ack_seq) - other_way->offset_before, in nf_ct_seq_adjust()
204 newack = htonl(ntohl(tcph->ack_seq) - ackoff); in nf_ct_seq_adjust()
205 inet_proto_csum_replace4(&tcph->check, skb, tcph->ack_seq, newack, in nf_ct_seq_adjust()
208 ntohl(tcph->seq), ntohl(newseq), ntohl(tcph->ack_seq), in nf_ct_seq_adjust()
210 tcph->ack_seq = newack; in nf_ct_seq_adjust()
H A Dnf_log_common.c79 ntohl(th->seq), ntohl(th->ack_seq)); in nf_log_dump_tcp_header()
/OK3568_Linux_fs/kernel/net/netfilter/ipvs/
H A Dip_vs_app.c317 __u32 ack_seq = ntohl(th->ack_seq); in vs_fix_ack_seq() local
327 if(after(ack_seq, vseq->init_seq+vseq->delta)) { in vs_fix_ack_seq()
328 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
333 th->ack_seq = htonl(ack_seq - vseq->previous_delta); in vs_fix_ack_seq()
/OK3568_Linux_fs/kernel/net/mptcp/
H A Dprotocol.c165 max_seq = space > 0 ? space + msk->ack_seq : msk->ack_seq; in mptcp_data_queue_ofo()
296 if (MPTCP_SKB_CB(skb)->map_seq == msk->ack_seq) { in __mptcp_move_skb()
298 WRITE_ONCE(msk->ack_seq, msk->ack_seq + copy_len); in __mptcp_move_skb()
306 } else if (after64(MPTCP_SKB_CB(skb)->map_seq, msk->ack_seq)) { in __mptcp_move_skb()
372 if (msk->ack_seq == rcv_data_fin_seq) { in mptcp_pending_data_fin()
417 WRITE_ONCE(msk->ack_seq, msk->ack_seq + 1); in mptcp_check_data_fin()
558 if (after64(MPTCP_SKB_CB(skb)->map_seq, msk->ack_seq)) in mptcp_ofo_queue()
565 msk->ack_seq))) { in mptcp_ofo_queue()
574 int delta = msk->ack_seq - MPTCP_SKB_CB(skb)->map_seq; in mptcp_ofo_queue()
578 MPTCP_SKB_CB(skb)->map_seq, msk->ack_seq, in mptcp_ofo_queue()
[all …]
H A Dsubflow.c870 u64 ack_seq; in subflow_check_data_avail() local
883 subflow->map_seq = READ_ONCE(msk->ack_seq); in subflow_check_data_avail()
907 WRITE_ONCE(msk->ack_seq, subflow->map_seq); in subflow_check_data_avail()
911 old_ack = READ_ONCE(msk->ack_seq); in subflow_check_data_avail()
912 ack_seq = mptcp_subflow_get_mapped_dsn(subflow); in subflow_check_data_avail()
914 ack_seq); in subflow_check_data_avail()
915 if (ack_seq == old_ack) { in subflow_check_data_avail()
918 } else if (after64(ack_seq, old_ack)) { in subflow_check_data_avail()
926 mptcp_subflow_discard_data(ssk, skb, old_ack - ack_seq); in subflow_check_data_avail()
H A Dmptcp_diag.c144 info->mptcpi_rcv_nxt = READ_ONCE(msk->ack_seq); in mptcp_diag_get_info()
H A Doptions.c525 opts->ext_copy.data_ack = READ_ONCE(msk->ack_seq); in mptcp_established_options_dss()
529 opts->ext_copy.data_ack32 = (uint32_t)READ_ONCE(msk->ack_seq); in mptcp_established_options_dss()
852 expand_ack(READ_ONCE(msk->ack_seq), data_fin_seq, use_64bit)); in mptcp_update_rcv_data_fin()
/OK3568_Linux_fs/kernel/drivers/net/slip/
H A Dslhc.c384 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ in slhc_compress()
554 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); in slhc_uncompress()
583 thp->ack_seq = htonl( ntohl(thp->ack_seq) + x); in slhc_uncompress()
/OK3568_Linux_fs/kernel/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c103 tcph->seq = oth->ack_seq; in nf_reject_ip6_tcphdr_put()
104 tcph->ack_seq = 0; in nf_reject_ip6_tcphdr_put()
107 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + in nf_reject_ip6_tcphdr_put()
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c82 tcph->seq = oth->ack_seq; in nf_reject_ip_tcphdr_put()
84 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + in nf_reject_ip_tcphdr_put()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dtcp_input.c121 void (*cad)(struct sock *sk, u32 ack_seq)) in clean_acked_data_enable() argument
1242 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
1822 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
1848 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
3490 const u32 ack, const u32 ack_seq, in tcp_may_update_window() argument
3494 after(ack_seq, tp->snd_wl1) || in tcp_may_update_window()
3495 (ack_seq == tp->snd_wl1 && nwin > tp->snd_wnd); in tcp_may_update_window()
3524 u32 ack_seq) in tcp_ack_update_window() argument
3533 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) { in tcp_ack_update_window()
3535 tcp_update_wl(tp, ack_seq); in tcp_ack_update_window()
[all …]
H A Dtcp_offload.c242 flush |= (__force int)(th->ack_seq ^ th2->ack_seq); in tcp_gro_receive()
H A Dtcp_ipv4.c699 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
702 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
865 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
1843 if (likely(!before(TCP_SKB_CB(skb)->ack_seq, TCP_SKB_CB(tail)->ack_seq))) { in tcp_add_backlog()
1844 TCP_SKB_CB(tail)->ack_seq = TCP_SKB_CB(skb)->ack_seq; in tcp_add_backlog()
1922 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v4_fill_cb()
/OK3568_Linux_fs/kernel/net/rds/
H A Dib_cm.c104 __be64 ack_seq = 0; in rds_ib_cm_connect_complete() local
122 ack_seq = get_unaligned(&dp->ricp_v6.dp_ack_seq); in rds_ib_cm_connect_complete()
129 ack_seq = get_unaligned(&dp->ricp_v4.dp_ack_seq); in rds_ib_cm_connect_complete()
188 if (ack_seq) in rds_ib_cm_connect_complete()
189 rds_send_drop_acked(conn, be64_to_cpu(ack_seq), in rds_ib_cm_connect_complete()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dtest_btf_skc_cls_ingress.c64 recv_cookie = bpf_ntohl(th->ack_seq) - 1; in test_syncookie_helper()
H A Dtest_tcp_check_syncookie_kern.c142 __u32 cookie = bpf_ntohl(tcph->ack_seq) - 1; in check_syncookie()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dtcp_ipv6.c921 t1->ack_seq = htonl(ack); in tcp_v6_send_response()
1004 u32 seq = 0, ack_seq = 0; in tcp_v6_send_reset() local
1074 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
1076 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
1098 tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, key, 1, in tcp_v6_send_reset()
1594 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq); in tcp_v6_fill_cb()
H A Dsyncookies.c136 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check()
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dtcp.h29 __be32 ack_seq; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/netinet/
H A Dtcp.h132 uint32_t ack_seq; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/netinet/
H A Dtcp.h132 uint32_t ack_seq; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dtcp.h29 __be32 ack_seq; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dtcp.h29 __be32 ack_seq; member
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/
H A Di40iw_cm.c495 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in i40iw_form_cm_frame()
498 tcph->ack_seq = 0; in i40iw_form_cm_frame()
2538 if (ntohl(tcph->ack_seq) != cm_node->tcp_cntxt.loc_seq_num) { in i40iw_check_syn()
2554 u32 ack_seq; in i40iw_check_seq() local
2560 ack_seq = ntohl(tcph->ack_seq); in i40iw_check_seq()
2562 if (ack_seq != loc_seq_num) in i40iw_check_seq()
2665 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->ack_seq); in i40iw_handle_synack_pkt()
2692 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in i40iw_handle_synack_pkt()
2698 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in i40iw_handle_synack_pkt()
2742 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->ack_seq); in i40iw_handle_ack_pkt()
[all …]

12