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.
57 /** inet_connection_sock - INET connection oriented sock
80 * @icsk_probes_tstamp: Probe timestamp (cleared by non-zero window ack)
119 __u32 lrcvtime; /* timestamp of last received data packet */
155 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
179 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
184 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
189 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
200 icsk->icsk_pending = 0; in inet_csk_clear_xmit_timer()
202 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
205 icsk->icsk_ack.pending = 0; in inet_csk_clear_xmit_timer()
206 icsk->icsk_ack.retry = 0; in inet_csk_clear_xmit_timer()
208 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
232 icsk->icsk_pending = what; in inet_csk_reset_xmit_timer()
233 icsk->icsk_timeout = jiffies + when; in inet_csk_reset_xmit_timer()
234 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
236 icsk->icsk_ack.pending |= ICSK_ACK_TIMER; in inet_csk_reset_xmit_timer()
237 icsk->icsk_ack.timeout = jiffies + when; in inet_csk_reset_xmit_timer()
238 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in inet_csk_reset_xmit_timer()
248 u64 when = (u64)icsk->icsk_rto << icsk->icsk_backoff; in inet_csk_rto_backoff()
274 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
279 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
284 return inet_csk_reqsk_queue_len(sk) >= sk->sk_max_ack_backlog; in inet_csk_reqsk_queue_is_full()
293 u64 timeout = (u64)req->timeout << req->num_timeout; in reqsk_timeout()
302 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_csk_prepare_for_destroy_sock()
313 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
332 inet_csk(sk)->icsk_ack.pingpong = TCP_PINGPONG_THRESH; in inet_csk_enter_pingpong_mode()
337 inet_csk(sk)->icsk_ack.pingpong = 0; in inet_csk_exit_pingpong_mode()
342 return inet_csk(sk)->icsk_ack.pingpong >= TCP_PINGPONG_THRESH; in inet_csk_in_pingpong_mode()
347 return inet_test_bit(IS_ICSK, sk) && !!inet_csk(sk)->icsk_ulp_ops; in inet_csk_has_ulp()