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.
59 /** inet_connection_sock - INET connection oriented sock
82 * @icsk_probes_tstamp: Probe timestamp (cleared by non-zero window ack)
121 __u32 lrcvtime; /* timestamp of last received data packet */
160 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
183 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
188 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
193 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
204 icsk->icsk_pending = 0; in inet_csk_clear_xmit_timer()
206 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
209 icsk->icsk_ack.pending = 0; in inet_csk_clear_xmit_timer()
210 icsk->icsk_ack.retry = 0; in inet_csk_clear_xmit_timer()
212 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
237 icsk->icsk_pending = what; in inet_csk_reset_xmit_timer()
238 icsk->icsk_timeout = jiffies + when; in inet_csk_reset_xmit_timer()
239 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
241 icsk->icsk_ack.pending |= ICSK_ACK_TIMER; in inet_csk_reset_xmit_timer()
242 icsk->icsk_ack.timeout = jiffies + when; in inet_csk_reset_xmit_timer()
243 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in inet_csk_reset_xmit_timer()
253 u64 when = (u64)icsk->icsk_rto << icsk->icsk_backoff; in inet_csk_rto_backoff()
279 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
284 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
289 return inet_csk_reqsk_queue_len(sk) >= sk->sk_max_ack_backlog; in inet_csk_reqsk_queue_is_full()
299 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_prepare_for_destroy_sock()
310 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
329 inet_csk(sk)->icsk_ack.pingpong = TCP_PINGPONG_THRESH; in inet_csk_enter_pingpong_mode()
334 inet_csk(sk)->icsk_ack.pingpong = 0; in inet_csk_exit_pingpong_mode()
339 return inet_csk(sk)->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
344 return inet_sk(sk)->is_icsk && !!inet_csk(sk)->icsk_ulp_ops; in inet_csk_has_ulp()