/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 179 static void icmp_interfere4(uint8_t type, uint8_t code, uint32_t rcv_nxt, in icmp_interfere4() argument 214 packet.tcph.seq = htonl(rcv_nxt); in icmp_interfere4() 293 static void icmp6_interfere(int type, int code, uint32_t rcv_nxt, in icmp6_interfere() argument 326 packet.tcph.seq = htonl(rcv_nxt); in icmp6_interfere() 362 static void icmp_interfere(const size_t nr, uint32_t rcv_nxt, void *src, void *dst) in icmp_interfere() argument 376 rcv_nxt, saddr4, daddr4); in icmp_interfere() 378 rcv_nxt, saddr4, daddr4); in icmp_interfere() 380 rcv_nxt, saddr4, daddr4); in icmp_interfere() 385 rcv_nxt, saddr6, daddr6); in icmp_interfere() 388 rcv_nxt, saddr in icmp_interfere() 410 uint32_t rcv_nxt; send_interfered() local [all...] |
H A D | icmps-discard.c | 179 static void icmp_interfere4(uint8_t type, uint8_t code, uint32_t rcv_nxt, in icmp_interfere4() argument 214 packet.tcph.seq = htonl(rcv_nxt); in icmp_interfere4() 293 static void icmp6_interfere(int type, int code, uint32_t rcv_nxt, in icmp6_interfere() argument 326 packet.tcph.seq = htonl(rcv_nxt); in icmp6_interfere() 362 static void icmp_interfere(const size_t nr, uint32_t rcv_nxt, void *src, void *dst) in icmp_interfere() argument 376 rcv_nxt, saddr4, daddr4); in icmp_interfere() 378 rcv_nxt, saddr4, daddr4); in icmp_interfere() 380 rcv_nxt, saddr4, daddr4); in icmp_interfere() 385 rcv_nxt, saddr6, daddr6); in icmp_interfere() 388 rcv_nxt, saddr6, daddr6); in icmp_interfere() [all …]
|
/linux/net/ipv4/ |
H A D | tcp_minisocks.c | 56 u32 rcv_nxt) in twsk_rcv_nxt_update() argument 62 if (unlikely(ao && seq < rcv_nxt)) in twsk_rcv_nxt_update() 103 u32 rcv_nxt = READ_ONCE(tcptw->tw_rcv_nxt); in tcp_timewait_state_process() local 128 rcv_nxt, in tcp_timewait_state_process() 129 rcv_nxt + tcptw->tw_rcv_wnd)) in tcp_timewait_state_process() 136 if (th->syn && !before(TCP_SKB_CB(skb)->seq, rcv_nxt)) in tcp_timewait_state_process() 141 !after(TCP_SKB_CB(skb)->end_seq, rcv_nxt) || in tcp_timewait_state_process() 151 TCP_SKB_CB(skb)->end_seq != rcv_nxt + 1) in tcp_timewait_state_process() 157 rcv_nxt); in tcp_timewait_state_process() 188 (TCP_SKB_CB(skb)->seq == rcv_nxt && in tcp_timewait_state_process() [all …]
|
H A D | tcp_fastopen.c | 174 if (TCP_SKB_CB(skb)->end_seq == tp->rcv_nxt) in tcp_fastopen_add_skb() 197 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq; in tcp_fastopen_add_skb() 285 tp->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; in tcp_fastopen_create_child() 289 tcp_rsk(req)->rcv_nxt = tp->rcv_nxt; in tcp_fastopen_create_child() 290 tp->rcv_wup = tp->rcv_nxt; in tcp_fastopen_create_child()
|
H A D | tcp_input.c | 684 if (before(tp->rcv_nxt, tp->rcv_rtt_est.seq)) in tcp_rcv_rtt_measure() 692 tp->rcv_rtt_est.seq = tp->rcv_nxt + tp->rcv_wnd; in tcp_rcv_rtt_measure() 3667 if (ao && seq < tp->rcv_nxt) { in tcp_rcv_sne_update() 3677 u32 delta = seq - tp->rcv_nxt; in tcp_rcv_nxt_update() 3682 WRITE_ONCE(tp->rcv_nxt, seq); in tcp_rcv_nxt_update() 4461 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) && in tcp_disordered_ack() 4502 if (after(seq, tp->rcv_nxt + tcp_receive_window(tp))) in tcp_sequence() 4654 if (before(seq, tp->rcv_nxt)) in tcp_dsack_set() 4705 before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_send_dupack() 4713 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) in tcp_send_dupack() [all …]
|
H A D | tcp_dctcp.h | 35 *prior_rcv_nxt = tcp_sk(sk)->rcv_nxt; in dctcp_ece_ack_update()
|
H A D | bpf_tcp_ca.c | 121 BPF_CALL_2(bpf_tcp_send_ack, struct tcp_sock *, tp, u32, rcv_nxt) in BPF_CALL_2() argument 124 __tcp_send_ack((struct sock *)tp, rcv_nxt); in BPF_CALL_2()
|
H A D | tcp_output.c | 182 static inline void tcp_event_ack_sent(struct sock *sk, u32 rcv_nxt) in tcp_event_ack_sent() argument 194 if (unlikely(rcv_nxt != tp->rcv_nxt)) in tcp_event_ack_sent() 293 tp->rcv_wup = tp->rcv_nxt; in tcp_select_window() 1286 int clone_it, gfp_t gfp_mask, u32 rcv_nxt) in __tcp_transmit_skb() argument 1383 th->ack_seq = htonl(rcv_nxt); in __tcp_transmit_skb() 1440 tcp_event_ack_sent(sk, rcv_nxt); in __tcp_transmit_skb() 1485 tcp_sk(sk)->rcv_nxt); in tcp_transmit_skb() 3820 th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt); in tcp_make_synack() 3937 tp->rcv_nxt = 0; in tcp_connect_init() 3940 tp->rcv_wup = tp->rcv_nxt; in tcp_connect_init() [all …]
|
H A D | tcp.c | 1467 tp->rcv_nxt - tp->rcv_wup > icsk->icsk_ack.rcv_mss || in __tcp_cleanup_rbuf() 1515 tp->copied_seq, TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt); in tcp_cleanup_rbuf() 2317 u32 rcv_nxt = READ_ONCE(tp->rcv_nxt); in tcp_inq_hint() local 2320 inq = rcv_nxt - copied_seq; in tcp_inq_hint() 2323 inq = tp->rcv_nxt - tp->copied_seq; in tcp_inq_hint() 2634 *seq, TCP_SKB_CB(skb)->seq, tp->rcv_nxt, in tcp_recvmsg_locked() 2649 *seq, TCP_SKB_CB(skb)->seq, tp->rcv_nxt, flags); in tcp_recvmsg_locked() 3302 WRITE_ONCE(tp->copied_seq, tp->rcv_nxt); in tcp_disconnect() 3428 if (after(opt.snd_wl1, tp->rcv_nxt + opt.rcv_wnd)) in tcp_repair_set_window() 3431 if (after(opt.rcv_wup, tp->rcv_nxt)) in tcp_repair_set_window() [all …]
|
H A D | tcp_diag.c | 29 r->idiag_rqueue = max_t(int, READ_ONCE(tp->rcv_nxt) - in tcp_diag_get_info()
|
H A D | tcp_dctcp.c | 98 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init()
|
/linux/net/tipc/ |
H A D | link.c | 182 u16 rcv_nxt; member 406 if (more(l->snd_nxt, l->rcv_nxt)) in link_bc_rcv_gap() 407 gap = l->snd_nxt - l->rcv_nxt; in link_bc_rcv_gap() 409 gap = buf_seqno(skb) - l->rcv_nxt; in link_bc_rcv_gap() 434 return l->rcv_nxt; in tipc_link_rcv_nxt() 990 l->rcv_nxt = 1; in tipc_link_reset() 1020 u16 bc_ack = l->bc_rcvlink->rcv_nxt - 1; in tipc_link_xmit() 1021 u16 ack = l->rcv_nxt - 1; in tipc_link_xmit() 1151 u16 bc_ack = l->bc_rcvlink->rcv_nxt - 1; in tipc_link_advance_backlog() 1154 u16 ack = l->rcv_nxt - 1; in tipc_link_advance_backlog() [all …]
|
H A D | name_distr.c | 314 u16 *rcv_nxt, bool *open) in tipc_named_dequeue() argument 330 *rcv_nxt = seqno; in tipc_named_dequeue() 340 if (*open && (*rcv_nxt == seqno)) { in tipc_named_dequeue() 341 (*rcv_nxt)++; in tipc_named_dequeue() 347 if (less(seqno, *rcv_nxt)) { in tipc_named_dequeue() 365 u16 *rcv_nxt, bool *open) in tipc_named_rcv() argument 374 while ((skb = tipc_named_dequeue(namedq, rcv_nxt, open))) { in tipc_named_rcv()
|
H A D | name_distr.h | 74 u16 *rcv_nxt, bool *open);
|
/linux/arch/sparc/kernel/ |
H A D | ldc.c | 136 u32 rcv_nxt; member 437 lp->rcv_nxt = 0; in send_rts() 476 p->u.r.ackid = lp->rcv_nxt; in send_rdx() 500 p->u.r.ackid = lp->rcv_nxt; in send_data_nack() 681 lp->rcv_nxt = p->seqid; in process_rts() 709 return lp->rcv_nxt + 1 == seqid; in rx_seq_ok() 722 lp->rcv_nxt = p->seqid; in process_rdx() 1496 lp->rcv_nxt, lp->snd_nxt); in __ldc_print() 1647 lp->rcv_nxt = first_frag->seqid - 1; in rx_bad_seq() 1731 p->u.r.ackid = lp->rcv_nxt; in send_data_ack() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_dctcp.c | 101 ca->prior_rcv_nxt = tp->rcv_nxt; in BPF_PROG() 205 *prior_rcv_nxt = tcp_sk(sk)->rcv_nxt; in dctcp_ece_ack_update()
|
H A D | test_sock_fields.c | 95 dst->rcv_nxt = src->rcv_nxt; in tpcpy()
|
H A D | bpf_iter_tcp4.c | 118 rx_queue = tp->rcv_nxt - tp->copied_seq; in dump_tcp_sock()
|
H A D | bpf_iter_tcp6.c | 118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock()
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 259 if (send_tx_flowc_wr(sk, 0, tp->snd_nxt, tp->rcv_nxt) < 0) in chtls_send_reset() 1647 tp->copied_seq != tp->rcv_nxt) { in handle_urg_ptr() 1704 handle_urg_ptr(sk, tp->rcv_nxt + ntohs(hdr->urg)); in chtls_recv_data() 1706 tp->urg_seq - tp->rcv_nxt < skb->len)) in chtls_recv_data() 1708 skb->data[tp->urg_seq - tp->rcv_nxt]; in chtls_recv_data() 1712 csk->delack_seq = tp->rcv_nxt; in chtls_recv_data() 1716 tp->rcv_nxt += skb->len; in chtls_recv_data() 1769 tp->rcv_nxt < skb->len)) in chtls_recv_pdu() 1771 skb->data[tp->urg_seq - tp->rcv_nxt]; in chtls_recv_pdu() 1827 tp->rcv_nxt += in chtls_rx_hdr() [all …]
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 354 cm_node->tcp_cntxt.loc_ack_num = cm_node->tcp_cntxt.rcv_nxt; in irdma_form_ah_cm_frame() 542 cm_node->tcp_cntxt.loc_ack_num = cm_node->tcp_cntxt.rcv_nxt; in irdma_form_uda_cm_frame() 2457 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt() 2464 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt() 2471 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt() 2482 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt() 2490 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt() 2640 u32 rcv_nxt = cm_node->tcp_cntxt.rcv_nxt; in irdma_check_seq() local 2648 !between(seq, rcv_nxt, (rcv_nxt + rcv_wnd))) in irdma_check_seq() 2712 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + 1; in irdma_handle_syn_pkt() [all …]
|
H A D | puda.c | 1413 pfpdu->rcv_nxt = seqnum + fpdu_len; in irdma_ieq_handle_partial() 1512 pfpdu->rcv_nxt = buf->seqnum + len; in irdma_ieq_process_buf() 1519 pfpdu->rcv_nxt = buf->seqnum; in irdma_ieq_process_buf() 1548 if (buf->seqnum != pfpdu->rcv_nxt) { in irdma_ieq_process_fpdus() 1625 pfpdu->rcv_nxt = fps; in irdma_ieq_handle_exception() 1637 if (!(rcv_wnd >= (buf->seqnum - pfpdu->rcv_nxt))) { in irdma_ieq_handle_exception()
|
/linux/include/linux/ |
H A D | tcp.h | 164 u32 rcv_nxt; /* the ack # by SYNACK. For member 288 u32 rcv_nxt; /* What we want to receive next */ member
|
/linux/drivers/net/ethernet/sun/ |
H A D | sunvnet_common.c | 266 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 270 dr->rcv_nxt = 1; in sunvnet_handshake_complete_common() 652 pkt->tag.stype_env, pkt->seq, dr->rcv_nxt); in vnet_rx() 656 if (unlikely(pkt->seq != dr->rcv_nxt)) { in vnet_rx() 658 pkt->seq, dr->rcv_nxt); in vnet_rx() 663 dr->rcv_nxt++; in vnet_rx() 851 pkt->seq = dr->rcv_nxt; in vnet_event_napi()
|
/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit.h | 219 u32 rcv_nxt; member
|