Lines Matching +full:packet +full:- +full:oriented
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * NET Generic infrastructure for INET connection oriented protocols.
56 /** inet_connection_sock - INET connection oriented sock
116 __u32 lrcvtime; /* timestamp of last received data packet */
152 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
175 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
180 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
185 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
196 icsk->icsk_pending = 0; in inet_csk_clear_xmit_timer()
198 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
201 icsk->icsk_ack.pending = 0; in inet_csk_clear_xmit_timer()
202 icsk->icsk_ack.retry = 0; in inet_csk_clear_xmit_timer()
204 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
229 icsk->icsk_pending = what; in inet_csk_reset_xmit_timer()
230 icsk->icsk_timeout = jiffies + when; in inet_csk_reset_xmit_timer()
231 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
233 icsk->icsk_ack.pending |= ICSK_ACK_TIMER; in inet_csk_reset_xmit_timer()
234 icsk->icsk_ack.timeout = jiffies + when; in inet_csk_reset_xmit_timer()
235 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in inet_csk_reset_xmit_timer()
245 u64 when = (u64)icsk->icsk_rto << icsk->icsk_backoff; in inet_csk_rto_backoff()
271 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
276 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
281 return inet_csk_reqsk_queue_len(sk) >= sk->sk_max_ack_backlog; in inet_csk_reqsk_queue_is_full()
291 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_prepare_for_destroy_sock()
302 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
321 inet_csk(sk)->icsk_ack.pingpong = TCP_PINGPONG_THRESH; in inet_csk_enter_pingpong_mode()
326 inet_csk(sk)->icsk_ack.pingpong = 0; in inet_csk_exit_pingpong_mode()
331 return inet_csk(sk)->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
338 if (icsk->icsk_ack.pingpong < U8_MAX) in inet_csk_inc_pingpong_cnt()
339 icsk->icsk_ack.pingpong++; in inet_csk_inc_pingpong_cnt()
344 return inet_sk(sk)->is_icsk && !!inet_csk(sk)->icsk_ulp_ops; in inet_csk_has_ulp()