Home
last modified time | relevance | path

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

12

/linux/net/netfilter/
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_synproxy_core.c478 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
524 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
565 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack()
566 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack()
604 nth->ack_seq = th->ack_seq; in synproxy_send_client_ack()
715 synproxy->isn = ntohl(th->ack_seq); in ipv4_synproxy_hook()
896 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack_ipv6()
943 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn_ipv6()
984 nth->seq = htonl(ntohl(th->ack_seq)); in synproxy_send_server_ack_ipv6()
985 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_server_ack_ipv6()
[all …]
H A Dnf_conntrack_proto_tcp.c527 ack = sack = ntohl(tcph->ack_seq); in tcp_in_window()
1046 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) { in nf_conntrack_tcp_packet()
1112 ct->proto.tcp.last_ack = ntohl(th->ack_seq); in nf_conntrack_tcp_packet()
1228 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) { in nf_conntrack_tcp_packet()
/linux/net/netfilter/ipvs/
H A Dip_vs_app.c311 * Fixes th->ack_seq based on ip_vs_seq info.
316 __u32 ack_seq = ntohl(th->ack_seq); in vs_fix_ack_seq()
319 * Adjust ack_seq with delta-offset for in vs_fix_ack_seq()
324 /* since ack_seq is the number of octet that is expected in vs_fix_ack_seq()
326 if(after(ack_seq, vseq->init_seq+vseq->delta)) { in vs_fix_ack_seq()
327 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
329 "(%d) from ack_seq\n", __func__, vseq->delta); in vs_fix_ack_seq()
332 th->ack_seq in vs_fix_ack_seq()
317 __u32 ack_seq = ntohl(th->ack_seq); vs_fix_ack_seq() local
[all...]
/linux/net/mptcp/
H A Doptions.c1127 mptcp_expand_seq(READ_ONCE(msk->ack_seq), data_fin_seq, use_64bit)); in mptcp_update_rcv_data_fin()
1292 struct tcphdr *th, u64 ack_seq) in mptcp_set_rwin() argument
1299 rcv_wnd_new = ack_seq + tp->rcv_wnd; in mptcp_set_rwin()
1327 win = rcv_wnd_old - ack_seq; in mptcp_set_rwin()
1464 u64 ack_seq; in mptcp_write_options() local
1472 ack_seq = READ_ONCE(msk->ack_seq); in mptcp_write_options()
1474 put_unaligned_be64(ack_seq, ptr); in mptcp_write_options()
1477 put_unaligned_be32(ack_seq, ptr); in mptcp_write_options()
1481 ack_seq); in mptcp_write_options()
H A Dprotocol.c384 if (MPTCP_SKB_CB(skb)->map_seq == msk->ack_seq) { in __mptcp_move_skb()
387 WRITE_ONCE(msk->ack_seq, msk->ack_seq + copy_len); in __mptcp_move_skb()
395 } else if (after64(MPTCP_SKB_CB(skb)->map_seq, msk->ack_seq)) { in __mptcp_move_skb()
401 if (!after64(MPTCP_SKB_CB(skb)->end_seq, msk->ack_seq)) { in __mptcp_move_skb()
410 copy_len = MPTCP_SKB_CB(skb)->end_seq - msk->ack_seq; in __mptcp_move_skb()
411 MPTCP_SKB_CB(skb)->offset += msk->ack_seq - MPTCP_SKB_CB(skb)->map_seq; in __mptcp_move_skb()
412 MPTCP_SKB_CB(skb)->map_seq += msk->ack_seq - in __mptcp_move_skb()
415 WRITE_ONCE(msk->ack_seq, msk->ack_seq + copy_len); in __mptcp_move_skb()
498 if (READ_ONCE(msk->ack_seq) == rcv_data_fin_seq) { in mptcp_pending_data_fin()
633 WRITE_ONCE(msk->ack_seq, msk->ack_seq + 1); in mptcp_check_data_fin()
[all …]
H A Dsubflow.c496 WRITE_ONCE(msk->ack_seq, subflow->iasn); in subflow_set_remote_key()
1197 map_seq = mptcp_expand_seq(READ_ONCE(msk->ack_seq), mpext->data_seq, mpext->dsn64); in get_mapping_status()
1366 u64 ack_seq; in subflow_check_data_avail() local
1385 old_ack = READ_ONCE(msk->ack_seq); in subflow_check_data_avail()
1386 ack_seq = mptcp_subflow_get_mapped_dsn(subflow); in subflow_check_data_avail()
1388 ack_seq); in subflow_check_data_avail()
1389 if (unlikely(before64(ack_seq, old_ack))) { in subflow_check_data_avail()
1390 mptcp_subflow_discard_data(ssk, skb, old_ack - ack_seq); in subflow_check_data_avail()
/linux/net/ipv4/
H A Dtcp_input.c125 void (*cad)(struct sock *sk, u32 ack_seq)) in clean_acked_data_enable() argument
1493 if (before(start_seq_0, TCP_SKB_CB(ack_skb)->ack_seq)) { in tcp_check_dsack()
2249 if (before(TCP_SKB_CB(ack_skb)->ack_seq, prior_snd_una - tp->max_window)) in tcp_sacktag_write_queue()
2275 if ((TCP_SKB_CB(ack_skb)->ack_seq != tp->snd_una) && in tcp_sacktag_write_queue()
3882 const u32 ack, const u32 ack_seq, in tcp_may_update_window() argument
3886 after(ack_seq, tp->snd_wl1) || in tcp_may_update_window()
3887 (ack_seq == tp->snd_wl1 && (nwin > tp->snd_wnd || !nwin)); in tcp_may_update_window()
3952 u32 ack_seq) in tcp_ack_update_window() argument
3961 if (tcp_may_update_window(tp, ack, ack_seq, nwin)) { in tcp_ack_update_window()
3963 tcp_update_wl(tp, ack_seq); in tcp_ack_update_window()
[all …]
H A Dsyncookies.c186 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v4_check()
285 treq->snt_isn = ntohl(th->ack_seq) - 1; in cookie_tcp_reqsk_init()
H A Dtcp_ipv4.c756 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
759 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
944 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
1973 if (likely(!before(TCP_SKB_CB(skb)->ack_seq, TCP_SKB_CB(tail)->ack_seq))) {
1974 TCP_SKB_CB(tail)->ack_seq = TCP_SKB_CB(skb)->ack_seq;
2056 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
H A Dtcp_minisocks.c839 (TCP_SKB_CB(skb)->ack_seq != in tcp_check_req()
/linux/net/rds/
H A Dib_cm.c78 __be64 ack_seq = 0; in rds_ib_cm_connect_complete() local
96 ack_seq = get_unaligned(&dp->ricp_v6.dp_ack_seq); in rds_ib_cm_connect_complete()
103 ack_seq = get_unaligned(&dp->ricp_v4.dp_ack_seq); in rds_ib_cm_connect_complete()
154 if (ack_seq) in rds_ib_cm_connect_complete()
155 rds_send_drop_acked(conn, be64_to_cpu(ack_seq), in rds_ib_cm_connect_complete()
/linux/include/linux/ceph/
H A Dmsgr.h202 __le64 ack_seq; member
H A Dmessenger.h534 void ceph_con_discard_sent(struct ceph_connection *con, u64 ack_seq);
/linux/drivers/infiniband/hw/irdma/
H A Dcm.c355 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in irdma_form_ah_cm_frame()
358 tcph->ack_seq = 0; in irdma_form_ah_cm_frame()
543 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in irdma_form_uda_cm_frame()
546 tcph->ack_seq = 0; in irdma_form_uda_cm_frame()
2626 if (ntohl(tcph->ack_seq) != cm_node->tcp_cntxt.loc_seq_num) { in irdma_check_syn()
2642 u32 ack_seq; in irdma_check_seq() local
2649 ack_seq = ntohl(tcph->ack_seq); in irdma_check_seq()
2651 if (ack_seq != loc_seq_num || in irdma_check_seq()
2764 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->ack_seq); in irdma_handle_synack_pkt()
2789 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in irdma_handle_synack_pkt()
[all …]
/linux/tools/include/uapi/linux/
H A Dtcp.h29 __be32 ack_seq; member
/linux/net/ipv6/
H A Dtcp_ipv6.c886 t1->ack_seq = htonl(ack); in tcp_v6_send_response()
999 u32 seq = 0, ack_seq = 0; in tcp_v6_send_reset() local
1072 seq = ntohl(th->ack_seq); in tcp_v6_send_reset()
1074 ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len - in tcp_v6_send_reset()
1112 tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, 1, in tcp_v6_send_reset()
1705 TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
H A Dsyncookies.c120 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v6_check()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c418 ctx->tcp->ack_seq = bpf_htonl(bpf_ntohl(ctx->tcp->seq) + 1); in tcp_handle_syn()
466 u32 cookie = bpf_ntohl(ctx->tcp->ack_seq) - 1; in tcp_validate_cookie()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dcpl5_cmd.h393 u32 ack_seq; member
/linux/net/sched/
H A Dsch_cake.c1065 u32 ack_seq_a = ntohl(tcph_a->ack_seq); in cake_tcph_sack_compare()
1313 after(ntohl(tcph_check->ack_seq), ntohl(tcph->ack_seq))) in cake_ack_filter()
1325 (ntohl(tcph_check->ack_seq) == ntohl(tcph->ack_seq) && in cake_ack_filter()
/linux/net/ceph/
H A Dmessenger.c672 void ceph_con_discard_sent(struct ceph_connection *con, u64 ack_seq) in ceph_con_discard_sent() argument
677 dout("%s con %p ack_seq %llu\n", __func__, con, ack_seq); in ceph_con_discard_sent()
683 if (seq > ack_seq) in ceph_con_discard_sent()
H A Dmessenger_v2.c622 const struct ceph_msg_header *hdr, u64 ack_seq) in fill_header2() argument
631 hdr2->ack_seq = cpu_to_le64(ack_seq); in fill_header2()
2856 ceph_con_discard_sent(con, le64_to_cpu(hdr2->ack_seq)); in process_message_header()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_cpl.h867 __be32 ack_seq; member
/linux/include/net/
H A Dtcp.h1125 __u32 ack_seq; /* Sequence number ACK'd */ member
3003 void (*cad)(struct sock *sk, u32 ack_seq));

12