| /linux/include/net/ |
| H A D | sock.h | 263 * @sk_napi_id: id of the last napi context to receive data for sk 448 void (*sk_data_ready)(struct sock *sk); 512 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, 575 void (*sk_state_change)(struct sock *sk); 576 void (*sk_write_space)(struct sock *sk); 577 void (*sk_error_report)(struct sock *sk); 578 int (*sk_backlog_rcv)(struct sock *sk, 580 void (*sk_destruct)(struct sock *sk); 622 * when sk_user_data's sk is added to the bpf's reuseport_array. 636 * @sk 630 sk_user_data_is_nocopy(const struct sock * sk) sk_user_data_is_nocopy() argument 635 __sk_user_data(sk) global() argument 648 __locked_read_sk_user_data_with_flags(const struct sock * sk,uintptr_t flags) __locked_read_sk_user_data_with_flags() argument 671 __rcu_dereference_sk_user_data_with_flags(const struct sock * sk,uintptr_t flags) __rcu_dereference_sk_user_data_with_flags() argument 683 rcu_dereference_sk_user_data(sk) global() argument 685 __rcu_assign_sk_user_data_with_flags(sk,ptr,flags) global() argument 694 rcu_assign_sk_user_data(sk,ptr) global() argument 698 sock_net(const struct sock * sk) sock_net() argument 704 sock_net_set(struct sock * sk,struct net * net) sock_net_set() argument 722 sk_peek_offset(const struct sock * sk,int flags) sk_peek_offset() argument 731 sk_peek_offset_bwd(struct sock * sk,int val) sk_peek_offset_bwd() argument 741 sk_peek_offset_fwd(struct sock * sk,int val) sk_peek_offset_fwd() argument 774 sk_next(const struct sock * sk) sk_next() argument 779 sk_nulls_next(const struct sock * sk) sk_nulls_next() argument 787 sk_unhashed(const struct sock * sk) sk_unhashed() argument 792 sk_hashed(const struct sock * sk) sk_hashed() argument 802 __sk_del_node(struct sock * sk) __sk_del_node() argument 808 __sk_del_node_init(struct sock * sk) __sk_del_node_init() argument 824 sock_hold(struct sock * sk) sock_hold() argument 832 __sock_put(struct sock * sk) __sock_put() argument 837 sk_del_node_init(struct sock * sk) sk_del_node_init() argument 846 sk_del_node_init_rcu(sk) global() argument 848 __sk_nulls_del_node_init_rcu(struct sock * sk) __sk_nulls_del_node_init_rcu() argument 857 sk_nulls_del_node_init_rcu(struct sock * sk) sk_nulls_del_node_init_rcu() argument 880 __sk_add_node(struct sock * sk,struct hlist_head * list) __sk_add_node() argument 885 sk_add_node(struct sock * sk,struct hlist_head * list) sk_add_node() argument 891 sk_add_node_rcu(struct sock * sk,struct hlist_head * list) sk_add_node_rcu() argument 901 sk_add_node_tail_rcu(struct sock * sk,struct hlist_head * list) sk_add_node_tail_rcu() argument 907 __sk_nulls_add_node_rcu(struct sock * sk,struct hlist_nulls_head * list) __sk_nulls_add_node_rcu() argument 912 __sk_nulls_add_node_tail_rcu(struct sock * sk,struct hlist_nulls_head * list) __sk_nulls_add_node_tail_rcu() argument 917 sk_nulls_add_node_rcu(struct sock * sk,struct hlist_nulls_head * list) sk_nulls_add_node_rcu() argument 923 __sk_del_bind_node(struct sock * sk) __sk_del_bind_node() argument 928 sk_add_bind_node(struct sock * sk,struct hlist_head * list) sk_add_bind_node() argument 968 sk_user_ns(const struct sock * sk) sk_user_ns() argument 1027 sock_set_flag(struct sock * sk,enum sock_flags flag) sock_set_flag() argument 1032 sock_reset_flag(struct sock * sk,enum sock_flags flag) sock_reset_flag() argument 1037 sock_valbool_flag(struct sock * sk,enum sock_flags bit,int valbool) sock_valbool_flag() argument 1046 sock_flag(const struct sock * sk,enum sock_flags flag) sock_flag() argument 1070 sk_gfp_mask(const struct sock * sk,gfp_t gfp_mask) sk_gfp_mask() argument 1075 sk_acceptq_removed(struct sock * sk) sk_acceptq_removed() argument 1080 sk_acceptq_added(struct sock * sk) sk_acceptq_added() argument 1089 sk_acceptq_is_full(const struct sock * sk) sk_acceptq_is_full() argument 1097 sk_stream_min_wspace(const struct sock * sk) sk_stream_min_wspace() argument 1102 sk_stream_wspace(const struct sock * sk) sk_stream_wspace() argument 1107 sk_wmem_queued_add(struct sock * sk,int val) sk_wmem_queued_add() argument 1112 sk_forward_alloc_add(struct sock * sk,int val) sk_forward_alloc_add() argument 1121 __sk_add_backlog(struct sock * sk,struct sk_buff * skb) __sk_add_backlog() argument 1140 sk_rcvqueues_full(const struct sock * sk,unsigned int limit) sk_rcvqueues_full() argument 1148 sk_add_backlog(struct sock * sk,struct sk_buff * skb,unsigned int limit) sk_add_backlog() argument 1172 sk_backlog_rcv(struct sock * sk,struct sk_buff * skb) sk_backlog_rcv() argument 1183 sk_incoming_cpu_update(struct sock * sk) sk_incoming_cpu_update() argument 1192 sock_rps_save_rxhash(struct sock * sk,const struct sk_buff * skb) sock_rps_save_rxhash() argument 1204 sock_rps_reset_rxhash(struct sock * sk) sock_rps_reset_rxhash() argument 1237 sk_flush_backlog(struct sock * sk) sk_flush_backlog() argument 1260 sk_prot_clear_nulls(struct sock * sk,int size) sk_prot_clear_nulls() argument 1400 __sk_stream_memory_free(const struct sock * sk,int wake) __sk_stream_memory_free() argument 1410 sk_stream_memory_free(const struct sock * sk) sk_stream_memory_free() argument 1415 __sk_stream_is_writeable(const struct sock * sk,int wake) __sk_stream_is_writeable() argument 1421 sk_stream_is_writeable(const struct sock * sk) sk_stream_is_writeable() argument 1426 sk_under_cgroup_hierarchy(struct sock * sk,struct cgroup * ancestor) sk_under_cgroup_hierarchy() argument 1439 sk_sockets_allocated_dec(struct sock * sk) sk_sockets_allocated_dec() argument 1445 sk_sockets_allocated_inc(struct sock * sk) sk_sockets_allocated_inc() argument 1452 sk_sockets_allocated_read_positive(struct sock * sk) sk_sockets_allocated_read_positive() argument 1498 __sk_prot_rehash(struct sock * sk) __sk_prot_rehash() argument 1548 sk_prot_mem_limits(const struct sock * sk,int index) sk_prot_mem_limits() argument 1558 sk_has_account(struct sock * sk) sk_has_account() argument 1564 sk_wmem_schedule(struct sock * sk,int size) sk_wmem_schedule() argument 1575 __sk_rmem_schedule(struct sock * sk,int size,bool pfmemalloc) __sk_rmem_schedule() argument 1587 sk_rmem_schedule(struct sock * sk,const struct sk_buff * skb,int size) sk_rmem_schedule() argument 1592 sk_unused_reserved_mem(const struct sock * sk) sk_unused_reserved_mem() argument 1605 sk_mem_reclaim(struct sock * sk) sk_mem_reclaim() argument 1618 sk_mem_reclaim_final(struct sock * sk) sk_mem_reclaim_final() argument 1624 sk_mem_charge(struct sock * sk,int size) sk_mem_charge() argument 1631 sk_mem_uncharge(struct sock * sk,int size) sk_mem_uncharge() argument 1642 sk_owner_set(struct sock * sk,struct module * owner) sk_owner_set() argument 1648 sk_owner_clear(struct sock * sk) sk_owner_clear() argument 1653 sk_owner_put(struct sock * sk) sk_owner_put() argument 1658 sk_owner_set(struct sock * sk,struct module * owner) sk_owner_set() argument 1662 sk_owner_clear(struct sock * sk) sk_owner_clear() argument 1666 sk_owner_put(struct sock * sk) sk_owner_put() argument 1677 sock_lock_init_class_and_name(sk,sname,skey,name,key) global() argument 1690 lockdep_sock_is_held(const struct sock * sk) lockdep_sock_is_held() argument 1698 lock_sock(struct sock * sk) lock_sock() argument 1729 lock_sock_fast(struct sock * sk) lock_sock_fast() argument 1738 lock_sock_fast_nested(struct sock * sk) lock_sock_fast_nested() argument 1753 unlock_sock_fast(struct sock * sk,bool slow) unlock_sock_fast() argument 1784 sock_owned_by_me(const struct sock * sk) sock_owned_by_me() argument 1791 sock_not_owned_by_me(const struct sock * sk) sock_not_owned_by_me() argument 1798 sock_owned_by_user(const struct sock * sk) sock_owned_by_user() argument 1804 sock_owned_by_user_nocheck(const struct sock * sk) sock_owned_by_user_nocheck() argument 1809 sock_release_ownership(struct sock * sk) sock_release_ownership() argument 1821 struct sock *sk = (struct sock *)csk; sock_allow_reclassification() local 1834 sk_clone_lock(const struct sock * sk,const gfp_t priority) sk_clone_lock() argument 1852 skb_set_owner_edemux(struct sk_buff * skb,struct sock * sk) skb_set_owner_edemux() argument 1881 sock_alloc_send_skb(struct sock * sk,unsigned long size,int noblock,int * errcode) sock_alloc_send_skb() argument 1895 sock_replace_proto(struct sock * sk,struct proto * proto) sock_replace_proto() argument 1912 sockcm_init(struct sockcm_cookie * sockc,const struct sock * sk) sockcm_init() argument 1995 sock_put(struct sock * sk) sock_put() argument 2007 sk_receive_skb(struct sock * sk,struct sk_buff * skb,const int nested) sk_receive_skb() argument 2013 sk_tx_queue_set(struct sock * sk,int tx_queue) sk_tx_queue_set() argument 2034 sk_tx_queue_clear(struct sock * sk) sk_tx_queue_clear() argument 2044 __sk_rx_queue_set(struct sock * sk,const struct sk_buff * skb,bool force_set) __sk_rx_queue_set() argument 2059 sk_rx_queue_set(struct sock * sk,const struct sk_buff * skb) sk_rx_queue_set() argument 2064 sk_rx_queue_update(struct sock * sk,const struct sk_buff * skb) sk_rx_queue_update() argument 2069 sk_rx_queue_clear(struct sock * sk) sk_rx_queue_clear() argument 2076 sk_rx_queue_get(const struct sock * sk) sk_rx_queue_get() argument 2090 sk_set_socket(struct sock * sk,struct socket * sock) sk_set_socket() argument 2102 sk_sleep(struct sock * sk) sk_sleep() argument 2114 sock_orphan(struct sock * sk) sock_orphan() argument 2123 sock_graft(struct sock * sk,struct socket * parent) sock_graft() argument 2134 sock_i_ino(const struct sock * sk) sock_i_ino() argument 2140 sk_uid(const struct sock * sk) sk_uid() argument 2146 sock_net_uid(const struct net * net,const struct sock * sk) sock_net_uid() argument 2158 sk_set_txhash(struct sock * sk) sk_set_txhash() argument 2164 sk_rethink_txhash(struct sock * sk) sk_rethink_txhash() argument 2174 __sk_dst_get(const struct sock * sk) __sk_dst_get() argument 2181 sk_dst_get(const struct sock * sk) sk_dst_get() argument 2193 __dst_negative_advice(struct sock * sk) __dst_negative_advice() argument 2201 dst_negative_advice(struct sock * sk) dst_negative_advice() argument 2208 __sk_dst_set(struct sock * sk,struct dst_entry * dst) __sk_dst_set() argument 2221 sk_dst_set(struct sock * sk,struct dst_entry * dst) sk_dst_set() argument 2232 __sk_dst_reset(struct sock * sk) __sk_dst_reset() argument 2238 sk_dst_reset(struct sock * sk) sk_dst_reset() argument 2247 sk_dst_confirm(struct sock * sk) sk_dst_confirm() argument 2256 struct sock *sk = skb->sk; sock_confirm_neigh() local 2266 sk_can_gso(const struct sock * sk) sk_can_gso() argument 2273 sk_gso_disable(struct sock * sk) sk_gso_disable() argument 2279 skb_do_copy_data_nocache(struct sock * sk,struct sk_buff * skb,struct iov_iter * from,char * to,int copy,int offset) skb_do_copy_data_nocache() argument 2297 skb_add_data_nocache(struct sock * sk,struct sk_buff * skb,struct iov_iter * from,int copy) skb_add_data_nocache() argument 2310 skb_copy_to_page_nocache(struct sock * sk,struct iov_iter * from,struct sk_buff * skb,struct page * page,int off,int copy) skb_copy_to_page_nocache() argument 2335 sk_wmem_alloc_get(const struct sock * sk) sk_wmem_alloc_get() argument 2346 sk_rmem_alloc_get(const struct sock * sk) sk_rmem_alloc_get() argument 2357 sk_has_allocations(const struct sock * sk) sk_has_allocations() argument 2417 skb_set_hash_from_sk(struct sk_buff * skb,struct sock * sk) skb_set_hash_from_sk() argument 2438 skb_set_owner_r(struct sk_buff * skb,struct sock * sk) skb_set_owner_r() argument 2447 skb_set_owner_sk_safe(struct sk_buff * skb,struct sock * sk) skb_set_owner_sk_safe() argument 2458 skb_clone_and_charge_r(struct sk_buff * skb,struct sock * sk) skb_clone_and_charge_r() argument 2496 sock_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) sock_queue_rcv_skb() argument 2508 sock_error(struct sock * sk) sock_error() argument 2524 sock_wspace(struct sock * sk) sock_wspace() argument 2540 sk_set_bit(int nr,struct sock * sk) sk_set_bit() argument 2549 sk_clear_bit(int nr,struct sock * sk) sk_clear_bit() argument 2558 sk_wake_async(const struct sock * sk,int how,int band) sk_wake_async() argument 2567 sk_wake_async_rcu(const struct sock * sk,int how,int band) sk_wake_async_rcu() argument 2583 sk_stream_moderate_sndbuf(struct sock * sk) sk_stream_moderate_sndbuf() argument 2612 sk_page_frag(struct sock * sk) sk_page_frag() argument 2622 __sock_writeable(const struct sock * sk,int wmem_alloc) __sock_writeable() argument 2629 sock_writeable(const struct sock * sk) sock_writeable() argument 2645 mem_cgroup_from_sk(const struct sock * sk) mem_cgroup_from_sk() argument 2650 mem_cgroup_sk_enabled(const struct sock * sk) mem_cgroup_sk_enabled() argument 2655 mem_cgroup_sk_under_memory_pressure(const struct sock * sk) mem_cgroup_sk_under_memory_pressure() argument 2676 mem_cgroup_from_sk(const struct sock * sk) mem_cgroup_from_sk() argument 2681 mem_cgroup_sk_enabled(const struct sock * sk) mem_cgroup_sk_enabled() argument 2686 mem_cgroup_sk_under_memory_pressure(const struct sock * sk) mem_cgroup_sk_under_memory_pressure() argument 2692 sock_rcvtimeo(const struct sock * sk,bool noblock) sock_rcvtimeo() argument 2697 sock_sndtimeo(const struct sock * sk,bool noblock) sock_sndtimeo() argument 2702 sock_rcvlowat(const struct sock * sk,int waitall,int len) sock_rcvlowat() argument 2734 sk_drops_add(struct sock * sk,int segs) sk_drops_add() argument 2744 sk_drops_inc(struct sock * sk) sk_drops_inc() argument 2749 sk_drops_read(const struct sock * sk) sk_drops_read() argument 2760 sk_drops_reset(struct sock * sk) sk_drops_reset() argument 2770 sock_skb_set_dropcount(const struct sock * sk,struct sk_buff * skb) sock_skb_set_dropcount() argument 2776 sk_drops_skbadd(struct sock * sk,const struct sk_buff * skb) sk_drops_skbadd() argument 2783 sock_read_timestamp(struct sock * sk) sock_read_timestamp() argument 2800 sock_write_timestamp(struct sock * sk,ktime_t kt) sock_write_timestamp() argument 2821 sock_recv_timestamp(struct msghdr * msg,struct sock * sk,struct sk_buff * skb) sock_recv_timestamp() argument 2849 sock_recv_cmsgs(struct msghdr * msg,struct sock * sk,struct sk_buff * skb) sock_recv_cmsgs() argument 2879 _sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags,__u32 * tskey) _sock_tx_timestamp() argument 2897 sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags) sock_tx_timestamp() argument 2911 sk_is_inet(const struct sock * sk) sk_is_inet() argument 2918 sk_is_tcp(const struct sock * sk) sk_is_tcp() argument 2925 sk_is_udp(const struct sock * sk) sk_is_udp() argument 2932 sk_is_unix(const struct sock * sk) sk_is_unix() argument 2937 sk_is_stream_unix(const struct sock * sk) sk_is_stream_unix() argument 2942 sk_is_vsock(const struct sock * sk) sk_is_vsock() argument 2947 sk_may_scm_recv(const struct sock * sk) sk_may_scm_recv() argument 2962 sk_eat_skb(struct sock * sk,struct sk_buff * skb) sk_eat_skb() argument 2981 sk_fullsock(const struct sock * sk) sk_fullsock() argument 2987 sk_is_refcounted(struct sock * sk) sk_is_refcounted() argument 2994 sk_requests_wifi_status(struct sock * sk) sk_requests_wifi_status() argument 3002 sk_listener(const struct sock * sk) sk_listener() argument 3011 sk_listener_or_tw(const struct sock * sk) sk_listener_or_tw() argument 3047 sk_get_wmem0(const struct sock * sk,const struct proto * proto) sk_get_wmem0() argument 3056 sk_get_rmem0(const struct sock * sk,const struct proto * proto) sk_get_rmem0() argument 3069 sk_pacing_shift_update(struct sock * sk,int val) sk_pacing_shift_update() argument 3081 sk_dev_equal_l3scope(struct sock * sk,int dif) sk_dev_equal_l3scope() argument 3106 bpf_skops_tx_timestamping(struct sock * sk,struct sk_buff * skb,int op) bpf_skops_tx_timestamping() argument 3128 sk_is_readable(struct sock * sk) sk_is_readable() argument [all...] |
| H A D | llc_c_ev.h | 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); 138 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb); [all …]
|
| H A D | tcp.h | 69 void tcp_time_wait(struct sock *sk, int state, int timeo); 300 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() argument 302 if (mem_cgroup_sk_enabled(sk) && in tcp_under_memory_pressure() 303 mem_cgroup_sk_under_memory_pressure(sk)) in tcp_under_memory_pressure() 306 if (sk->sk_bypass_prot_mem) in tcp_under_memory_pressure() 328 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() argument 330 sk_wmem_queued_add(sk, -skb->truesize); in tcp_wmem_free_skb() 332 sk_mem_uncharge(sk, skb->truesize); in tcp_wmem_free_skb() 334 sk_mem_uncharge(sk, SKB_TRUESIZE(skb_end_offset(skb))); in tcp_wmem_free_skb() 338 void sk_forced_mem_schedule(struct sock *sk, in 387 tcp_dec_quickack_mode(struct sock * sk) tcp_dec_quickack_mode() argument 600 tcp_synq_overflow(const struct sock * sk) tcp_synq_overflow() argument 624 tcp_synq_no_recent_overflow(const struct sock * sk) tcp_synq_no_recent_overflow() argument 697 cookie_bpf_check(struct net * net,struct sock * sk,struct sk_buff * skb) cookie_bpf_check() argument 763 tcp_add_receive_queue(struct sock * sk,struct sk_buff * skb) tcp_add_receive_queue() argument 772 tcp_clear_xmit_timers(struct sock * sk) tcp_clear_xmit_timers() argument 829 tcp_rto_max(const struct sock * sk) tcp_rto_max() argument 834 tcp_bound_rto(struct sock * sk) tcp_bound_rto() argument 855 tcp_rto_min(const struct sock * sk) tcp_rto_min() argument 865 tcp_rto_min_us(const struct sock * sk) tcp_rto_min_us() argument 1331 tcp_ca_needs_ecn(const struct sock * sk) tcp_ca_needs_ecn() argument 1338 tcp_ca_event(struct sock * sk,const enum tcp_ca_event event) tcp_ca_event() argument 1426 tcp_in_cwnd_reduction(const struct sock * sk) tcp_in_cwnd_reduction() argument 1436 tcp_current_ssthresh(const struct sock * sk) tcp_current_ssthresh() argument 1481 tcp_is_cwnd_limited(const struct sock * sk) tcp_is_cwnd_limited() argument 1501 tcp_needs_internal_pacing(const struct sock * sk) tcp_needs_internal_pacing() argument 1509 tcp_pacing_delay(const struct sock * sk) tcp_pacing_delay() argument 1516 tcp_reset_xmit_timer(struct sock * sk,const int what,unsigned long when,bool pace_delay) tcp_reset_xmit_timer() argument 1533 tcp_probe0_base(const struct sock * sk) tcp_probe0_base() argument 1539 tcp_probe0_when(const struct sock * sk,unsigned long max_when) tcp_probe0_when() argument 1549 tcp_check_probe_timer(struct sock * sk) tcp_check_probe_timer() argument 1598 tcp_slow_start_after_idle_check(struct sock * sk) tcp_slow_start_after_idle_check() argument 1625 tcp_win_from_space(const struct sock * sk,int space) tcp_win_from_space() argument 1639 tcp_space_from_win(const struct sock * sk,int win) tcp_space_from_win() argument 1649 tcp_scaling_ratio_init(struct sock * sk) tcp_scaling_ratio_init() argument 1655 tcp_space(const struct sock * sk) tcp_space() argument 1662 tcp_full_space(const struct sock * sk) tcp_full_space() argument 1667 __tcp_adjust_rcv_ssthresh(struct sock * sk,u32 new_ssthresh) __tcp_adjust_rcv_ssthresh() argument 1678 tcp_adjust_rcv_ssthresh(struct sock * sk) tcp_adjust_rcv_ssthresh() argument 1692 tcp_rmem_pressure(const struct sock * sk) tcp_rmem_pressure() argument 1705 tcp_epollin_ready(const struct sock * sk,int target) tcp_epollin_ready() argument 1769 tcp_fin_time(const struct sock * sk) tcp_fin_time() argument 1846 tcp_fast_path_check(struct sock * sk) tcp_fast_path_check() argument 1966 tcp_md5_do_lookup(const struct sock * sk,int l3index,const union tcp_md5_addr * addr,int family) tcp_md5_do_lookup() argument 1975 tcp_md5_do_lookup_any_l3index(const struct sock * sk,const union tcp_md5_addr * addr,int family) tcp_md5_do_lookup_any_l3index() argument 1987 tcp_md5_do_lookup(const struct sock * sk,int l3index,const union tcp_md5_addr * addr,int family) tcp_md5_do_lookup() argument 1994 tcp_md5_do_lookup_any_l3index(const struct sock * sk,const union tcp_md5_addr * addr,int family) tcp_md5_do_lookup_any_l3index() argument 2001 tcp_md5_destruct_sock(struct sock * sk) tcp_md5_destruct_sock() argument 2060 tcp_fastopen_get_ctx(const struct sock * sk) tcp_fastopen_get_ctx() argument 2120 tcp_rtx_queue_head(const struct sock * sk) tcp_rtx_queue_head() argument 2125 tcp_rtx_queue_tail(const struct sock * sk) tcp_rtx_queue_tail() argument 2130 tcp_write_queue_tail(const struct sock * sk) tcp_write_queue_tail() argument 2135 tcp_for_write_queue_from_safe(skb,tmp,sk) global() argument 2138 tcp_send_head(const struct sock * sk) tcp_send_head() argument 2143 tcp_skb_is_last(const struct sock * sk,const struct sk_buff * skb) tcp_skb_is_last() argument 2156 tcp_write_queue_empty(const struct sock * sk) tcp_write_queue_empty() argument 2163 tcp_rtx_queue_empty(const struct sock * sk) tcp_rtx_queue_empty() argument 2168 tcp_rtx_and_write_queues_empty(const struct sock * sk) tcp_rtx_and_write_queues_empty() argument 2173 tcp_add_write_queue_tail(struct sock * sk,struct sk_buff * skb) tcp_add_write_queue_tail() argument 2185 tcp_insert_write_queue_before(struct sk_buff * new,struct sk_buff * skb,struct sock * sk) tcp_insert_write_queue_before() argument 2190 tcp_unlink_write_queue(struct sk_buff * skb,struct sock * sk) tcp_unlink_write_queue() argument 2198 tcp_rtx_queue_unlink(struct sk_buff * skb,struct sock * sk) tcp_rtx_queue_unlink() argument 2204 tcp_rtx_queue_unlink_and_free(struct sk_buff * skb,struct sock * sk) tcp_rtx_queue_unlink_and_free() argument 2211 tcp_write_collapse_fence(struct sock * sk) tcp_write_collapse_fence() argument 2219 tcp_push_pending_frames(struct sock * sk) tcp_push_pending_frames() argument 2243 tcp_advance_highest_sack(struct sock * sk,struct sk_buff * skb) tcp_advance_highest_sack() argument 2248 tcp_highest_sack(struct sock * sk) tcp_highest_sack() argument 2253 tcp_highest_sack_reset(struct sock * sk) tcp_highest_sack_reset() argument 2259 tcp_highest_sack_replace(struct sock * sk,struct sk_buff * old,struct sk_buff * new) tcp_highest_sack_replace() argument 2268 inet_sk_transparent(const struct sock * sk) inet_sk_transparent() argument 2425 cookie_init_sequence(const struct tcp_request_sock_ops * ops,const struct sock * sk,struct sk_buff * skb,__u16 * mss) cookie_init_sequence() argument 2434 cookie_init_sequence(const struct tcp_request_sock_ops * ops,const struct sock * sk,struct sk_buff * skb,__u16 * mss) cookie_init_sequence() argument 2458 tcp_get_current_key(const struct sock * sk,struct tcp_key * out) tcp_get_current_key() argument 2538 tcp_plb_init(const struct sock * sk,struct tcp_plb_state * plb) tcp_plb_init() argument 2549 tcp_warn_once(const struct sock * sk,bool cond,const char * str) tcp_warn_once() argument 2564 tcp_rto_delta_us(const struct sock * sk) tcp_rto_delta_us() argument 2616 tcp_inq(struct sock * sk) tcp_inq() argument 2663 tcp_listendrop(const struct sock * sk) tcp_listendrop() argument 2728 tcp_eat_skb(struct sock * sk,struct sk_buff * skb) tcp_eat_skb() argument 2738 tcp_bpf_clone(const struct sock * sk,struct sock * newsk) tcp_bpf_clone() argument 2765 tcp_call_bpf(struct sock * sk,int op,u32 nargs,u32 * args) tcp_call_bpf() argument 2790 tcp_call_bpf_2arg(struct sock * sk,int op,u32 arg1,u32 arg2) tcp_call_bpf_2arg() argument 2797 tcp_call_bpf_3arg(struct sock * sk,int op,u32 arg1,u32 arg2,u32 arg3) tcp_call_bpf_3arg() argument 2806 tcp_call_bpf(struct sock * sk,int op,u32 nargs,u32 * args) tcp_call_bpf() argument 2811 tcp_call_bpf_2arg(struct sock * sk,int op,u32 arg1,u32 arg2) tcp_call_bpf_2arg() argument 2816 tcp_call_bpf_3arg(struct sock * sk,int op,u32 arg1,u32 arg2,u32 arg3) tcp_call_bpf_3arg() argument 2824 tcp_timeout_init(struct sock * sk) tcp_timeout_init() argument 2835 tcp_rwnd_init_bpf(struct sock * sk) tcp_rwnd_init_bpf() argument 2846 tcp_bpf_ca_needs_ecn(struct sock * sk) tcp_bpf_ca_needs_ecn() argument 2851 tcp_bpf_rtt(struct sock * sk,long mrtt,u32 srtt) tcp_bpf_rtt() argument 2879 tcp_transmit_time(const struct sock * sk) tcp_transmit_time() argument 2913 tcp_ao_required(struct sock * sk,const void * saddr,int family,int l3index,bool stat_inc) tcp_ao_required() argument [all...] |
| H A D | llc_c_ac.h | 97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 106 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, 108 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, [all …]
|
| /linux/net/bluetooth/ |
| H A D | iso.c | 31 struct sock *sk; member 44 static void iso_sock_close(struct sock *sk); 45 static void iso_sock_kill(struct sock *sk); 48 #define iso_pi(sk) ((struct iso_pinfo *)sk) argument 82 static bool iso_match_sid(struct sock *sk, void *data); 83 static bool iso_match_sid_past(struct sock *sk, void *data); 84 static bool iso_match_sync_handle(struct sock *sk, void *data); 85 static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data); 86 static void iso_sock_disconn(struct sock *sk); 88 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data); [all …]
|
| H A D | sco.c | 49 struct sock *sk; member 60 static void sco_sock_close(struct sock *sk); 61 static void sco_sock_kill(struct sock *sk); 64 #define sco_pi(sk) ((struct sco_pinfo *) sk) argument 86 if (conn->sk) in sco_conn_free() 87 sco_pi(conn->sk)->conn = NULL; in sco_conn_free() 133 if (!conn || !bt_sock_linked(&sco_sk_list, conn->sk)) in sco_sock_hold() 136 sock_hold(conn->sk); in sco_sock_hold() 138 return conn->sk; in sco_sock_hold() 145 struct sock *sk; in sco_sock_timeout() local [all …]
|
| H A D | af_bluetooth.c | 74 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument 76 BUG_ON(!sk); in bt_sock_reclassify_lock() 77 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock() 79 sock_lock_init_class_and_name(sk, in bt_sock_reclassify_lock() 137 bt_sock_reclassify_lock(sock->sk, proto); in bt_sock_create() 149 struct sock *sk; in bt_sock_alloc() local 151 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc() 152 if (!sk) in bt_sock_alloc() 155 sock_init_data(sock, sk); in bt_sock_alloc() 156 INIT_LIST_HEAD(&bt_sk(sk)->accept_q); in bt_sock_alloc() [all …]
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local 53 if (!sk) in rfcomm_sk_data_ready() 56 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready() 57 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready() 58 sk->sk_data_ready(sk); in rfcomm_sk_data_ready() 60 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local 108 struct sock *sk = NULL; __rfcomm_get_listen_sock_by_addr() local 129 struct sock *sk = NULL, *sk1 = NULL; rfcomm_get_sock_by_channel() local 153 rfcomm_sock_destruct(struct sock * sk) rfcomm_sock_destruct() argument 175 struct sock *sk; rfcomm_sock_cleanup_listen() local 192 rfcomm_sock_kill(struct sock * sk) rfcomm_sock_kill() argument 205 __rfcomm_sock_close(struct sock * sk) __rfcomm_sock_close() argument 232 rfcomm_sock_close(struct sock * sk) rfcomm_sock_close() argument 239 rfcomm_sock_init(struct sock * sk,struct sock * parent) rfcomm_sock_init() argument 275 struct sock *sk; rfcomm_sock_alloc() local 308 struct sock *sk; rfcomm_sock_create() local 330 struct sock *sk = sock->sk; rfcomm_sock_bind() local 377 struct sock *sk = sock->sk; rfcomm_sock_connect() local 424 struct sock *sk = sock->sk; rfcomm_sock_listen() local 475 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local 535 struct sock *sk = sock->sk; rfcomm_sock_getname() local 557 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local 597 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local 622 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local 663 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local 727 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local 803 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local 887 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local 913 struct sock *sk = sock->sk; rfcomm_sock_release() local 934 struct sock *sk, *parent; rfcomm_connect_ind() local 984 struct sock *sk; rfcomm_sock_debugfs_show() local [all...] |
| /linux/net/core/ |
| H A D | sock.c | 158 static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc); 159 static void sock_def_write_space(struct sock *sk); 171 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument 174 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 188 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 190 return sk_ns_capable(sk, &init_user_ns, cap); in sk_capable() 203 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable() argument 205 return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); in sk_net_capable() 302 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc() argument 304 sock_set_flag(sk, SOCK_MEMALLOC); in sk_set_memalloc() [all …]
|
| /linux/net/netrom/ |
| H A D | nr_timer.c | 35 void nr_init_timers(struct sock *sk) in nr_init_timers() argument 37 struct nr_sock *nr = nr_sk(sk); in nr_init_timers() 45 sk->sk_timer.function = nr_heartbeat_expiry; in nr_init_timers() 48 void nr_start_t1timer(struct sock *sk) in nr_start_t1timer() argument 50 struct nr_sock *nr = nr_sk(sk); in nr_start_t1timer() 52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer() 55 void nr_start_t2timer(struct sock *sk) in nr_start_t2timer() argument 57 struct nr_sock *nr = nr_sk(sk); in nr_start_t2timer() 59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer() 62 void nr_start_t4timer(struct sock *sk) in nr_start_t4timer() argument [all …]
|
| /linux/net/smc/ |
| H A D | smc_close.c | 41 struct sock *sk; in smc_close_cleanup_listen() local 44 while ((sk = smc_accept_dequeue(parent, NULL))) in smc_close_cleanup_listen() 45 smc_close_non_accepted(sk); in smc_close_cleanup_listen() 52 struct sock *sk = &smc->sk; in smc_close_stream_wait() local 64 add_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 68 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 70 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait() 71 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait() 77 remove_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 85 smc->sk.sk_state_change(&smc->sk); in smc_close_wake_tx_prepared() [all …]
|
| /linux/net/rose/ |
| H A D | rose_timer.c | 32 void rose_start_heartbeat(struct sock *sk) in rose_start_heartbeat() argument 34 sk_stop_timer(sk, &sk->sk_timer); in rose_start_heartbeat() 36 sk->sk_timer.function = rose_heartbeat_expiry; in rose_start_heartbeat() 37 sk->sk_timer.expires = jiffies + 5 * HZ; in rose_start_heartbeat() 39 sk_reset_timer(sk, &sk->sk_timer, sk->sk_timer.expires); in rose_start_heartbeat() 42 void rose_start_t1timer(struct sock *sk) in rose_start_t1timer() argument 44 struct rose_sock *rose = rose_sk(sk); in rose_start_t1timer() 46 sk_stop_timer(sk, &rose->timer); in rose_start_t1timer() 51 sk_reset_timer(sk, &rose->timer, rose->timer.expires); in rose_start_t1timer() 54 void rose_start_t2timer(struct sock *sk) in rose_start_t2timer() argument [all …]
|
| H A D | rose_in.c | 37 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state1_machine() argument 39 struct rose_sock *rose = rose_sk(sk); in rose_state1_machine() 43 rose_stop_timer(sk); in rose_state1_machine() 44 rose_start_idletimer(sk); in rose_state1_machine() 51 sk->sk_state = TCP_ESTABLISHED; in rose_state1_machine() 52 if (!sock_flag(sk, SOCK_DEAD)) in rose_state1_machine() 53 sk->sk_state_change(sk); in rose_state1_machine() 57 rose_write_internal(sk, ROSE_CLEAR_CONFIRMATION); in rose_state1_machine() 58 rose_disconnect(sk, ECONNREFUSED, skb->data[3], skb->data[4]); in rose_state1_machine() 74 static int rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) in rose_state2_machine() argument [all …]
|
| /linux/tools/testing/selftests/net/tcp_ao/ |
| H A D | setsockopt-closed.c | 12 static void make_listen(int sk) in make_listen() argument 17 if (bind(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0) in make_listen() 19 if (listen(sk, 1)) in make_listen() 23 static void test_vefify_ao_info(int sk, struct tcp_ao_info_opt *info, in test_vefify_ao_info() argument 29 if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, &tmp, &len)) in test_vefify_ao_info() 58 static void __setsockopt_checked(int sk, int optname, bool get, in __setsockopt_checked() argument 71 ret = getsockopt(sk, IPPROTO_TCP, optname, optval, len); in __setsockopt_checked() 73 ret = setsockopt(sk, IPPROTO_TCP, optname, optval, *len); in __setsockopt_checked() 80 close(sk); in __setsockopt_checked() 90 test_verify_socket_key(sk, optval); in __setsockopt_checked() [all …]
|
| /linux/net/caif/ |
| H A D | caif_socket.c | 49 struct sock sk; /* must be first member */ member 88 static void caif_read_lock(struct sock *sk) in caif_read_lock() argument 91 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_lock() 95 static void caif_read_unlock(struct sock *sk) in caif_read_unlock() argument 98 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_unlock() 105 return cf_sk->sk.sk_rcvbuf / 4; in sk_rcvbuf_lowwater() 108 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl() argument 111 cf_sk = container_of(sk, struc in caif_flow_ctrl() 120 caif_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) caif_queue_rcv_skb() argument 250 caif_check_flow_release(struct sock * sk) caif_check_flow_release() argument 271 struct sock *sk = sock->sk; caif_seqpkt_recvmsg() local 305 caif_stream_data_wait(struct sock * sk,long timeo) caif_stream_data_wait() argument 346 struct sock *sk = sock->sk; caif_stream_recvmsg() local 463 struct sock *sk = &cf_sk->sk; caif_wait_for_flow_on() local 517 struct sock *sk = sock->sk; caif_seqpkt_sendmsg() local 589 struct sock *sk = sock->sk; caif_stream_sendmsg() local 668 struct sock *sk = sock->sk; setsockopt() local 740 struct sock *sk = sock->sk; caif_connect() local 893 struct sock *sk = sock->sk; caif_release() local 933 struct sock *sk = sock->sk; caif_poll() local 1002 caif_sock_destructor(struct sock * sk) caif_sock_destructor() argument 1020 struct sock *sk = NULL; caif_create() local [all...] |
| /linux/net/dccp/ |
| H A D | input.c | |
| H A D | proto.c | |
| H A D | timer.c | |
| /linux/net/iucv/ |
| H A D | af_iucv.c | 56 #define __iucv_sock_wait(sk, condition, timeo, ret) \ argument 61 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \ 71 release_sock(sk); \ 73 lock_sock(sk); \ 74 ret = sock_error(sk); \ 78 finish_wait(sk_sleep(sk), &__wait); \ 81 #define iucv_sock_wait(sk, condition, timeo) \ argument 85 __iucv_sock_wait(sk, condition, timeo, __ret); \ 91 static void iucv_sock_kill(struct sock *sk); 92 static void iucv_sock_close(struct sock *sk); [all …]
|
| /linux/net/ipv4/ |
| H A D | inet_hashtables.c | 47 static u32 sk_ehashfn(const struct sock *sk) in sk_ehashfn() argument 50 if (sk->sk_family == AF_INET6 && in sk_ehashfn() 51 !ipv6_addr_v4mapped(&sk->sk_v6_daddr)) in sk_ehashfn() 52 return inet6_ehashfn(sock_net(sk), in sk_ehashfn() 53 &sk->sk_v6_rcv_saddr, sk->sk_num, in sk_ehashfn() 54 &sk->sk_v6_daddr, sk->sk_dport); in sk_ehashfn() 56 return inet_ehashfn(sock_net(sk), in sk_ehashfn() 57 sk->sk_rcv_saddr, sk->sk_num, in sk_ehashfn() 58 sk->sk_daddr, sk->sk_dport); in sk_ehashfn() 61 static bool sk_is_connect_bind(const struct sock *sk) in sk_is_connect_bind() argument [all …]
|
| /linux/net/nfc/ |
| H A D | llcp_sock.c | 17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() argument 22 pr_debug("sk %p", sk); in sock_wait_state() 24 add_wait_queue(sk_sleep(sk), &wait); in sock_wait_state() 27 while (sk->sk_state != state) { in sock_wait_state() 38 release_sock(sk); in sock_wait_state() 40 lock_sock(sk); in sock_wait_state() 43 err = sock_error(sk); in sock_wait_state() 49 remove_wait_queue(sk_sleep(sk), &wait); in sock_wait_state() 61 struct sock *sk in llcp_sock_bind() local 152 struct sock *sk = sock->sk; llcp_raw_sock_bind() local 206 struct sock *sk = sock->sk; llcp_sock_listen() local 234 struct sock *sk = sock->sk; nfc_llcp_setsockopt() local 308 struct sock *sk = sock->sk; nfc_llcp_getsockopt() local 381 nfc_llcp_accept_unlink(struct sock * sk) nfc_llcp_accept_unlink() argument 394 nfc_llcp_accept_enqueue(struct sock * parent,struct sock * sk) nfc_llcp_accept_enqueue() argument 412 struct sock *sk; nfc_llcp_accept_dequeue() local 453 struct sock *sk = sock->sk, *new_sk; llcp_sock_accept() local 506 struct sock *sk = sock->sk; llcp_sock_getname() local 540 struct sock *sk; llcp_accept_poll() local 558 struct sock *sk = sock->sk; llcp_sock_poll() local 596 struct sock *sk = sock->sk; llcp_sock_release() local 654 struct sock *sk = sock->sk; llcp_sock_connect() local 778 struct sock *sk = sock->sk; llcp_sock_sendmsg() local 831 struct sock *sk = sock->sk; llcp_sock_recvmsg() local 955 llcp_sock_destruct(struct sock * sk) llcp_sock_destruct() argument 976 struct sock *sk; nfc_llcp_sock_alloc() local 1027 struct sock *sk; llcp_sock_create() local [all...] |
| H A D | rawsock.c | 23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() argument 26 sk_add_node(sk, &l->head); in nfc_sock_link() 30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() argument 33 sk_del_node_init(sk); in nfc_sock_unlink() 37 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge() argument 39 pr_debug("sk=%p\n", sk); in rawsock_write_queue_purge() 41 spin_lock_bh(&sk->sk_write_queue.lock); in rawsock_write_queue_purge() 42 __skb_queue_purge(&sk->sk_write_queue); in rawsock_write_queue_purge() 43 nfc_rawsock(sk) in rawsock_write_queue_purge() 47 rawsock_report_error(struct sock * sk,int err) rawsock_report_error() argument 60 struct sock *sk = sock->sk; rawsock_release() local 79 struct sock *sk = sock->sk; rawsock_connect() local 142 struct sock *sk = (struct sock *) context; rawsock_data_exchange_complete() local 179 struct sock *sk = to_rawsock_sk(work); rawsock_tx_work() local 207 struct sock *sk = sock->sk; rawsock_sendmsg() local 244 struct sock *sk = sock->sk; rawsock_recvmsg() local 304 rawsock_destruct(struct sock * sk) rawsock_destruct() argument 326 struct sock *sk; rawsock_create() local 363 struct sock *sk; nfc_send_to_raw_sock() local [all...] |
| /linux/net/x25/ |
| H A D | x25_in.c | 32 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) in x25_queue_rx_frame() argument 35 struct x25_sock *x25 = x25_sk(sk); in x25_queue_rx_frame() 40 skb_set_owner_r(skb, sk); in x25_queue_rx_frame() 74 skb_set_owner_r(skbn, sk); in x25_queue_rx_frame() 75 skb_queue_tail(&sk->sk_receive_queue, skbn); in x25_queue_rx_frame() 76 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame() 77 sk->sk_data_ready(sk); in x25_queue_rx_frame() 87 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state1_machine() argument 91 struct x25_sock *x25 = x25_sk(sk); in x25_state1_machine() 96 x25_stop_timer(sk); in x25_state1_machine() [all …]
|
| H A D | x25_timer.c | 27 void x25_init_timers(struct sock *sk) in x25_init_timers() argument 29 struct x25_sock *x25 = x25_sk(sk); in x25_init_timers() 34 sk->sk_timer.function = x25_heartbeat_expiry; in x25_init_timers() 37 void x25_start_heartbeat(struct sock *sk) in x25_start_heartbeat() argument 39 mod_timer(&sk->sk_timer, jiffies + 5 * HZ); in x25_start_heartbeat() 42 void x25_stop_heartbeat(struct sock *sk) in x25_stop_heartbeat() argument 44 timer_delete(&sk->sk_timer); in x25_stop_heartbeat() 47 void x25_start_t2timer(struct sock *sk) in x25_start_t2timer() argument 49 struct x25_sock *x25 = x25_sk(sk); in x25_start_t2timer() 54 void x25_start_t21timer(struct sock *sk) in x25_start_t21timer() argument [all …]
|
| /linux/net/mptcp/ |
| H A D | protocol.c | 31 static unsigned int mptcp_inq_hint(const struct sock *sk); 50 static void __mptcp_destroy_sock(struct sock *sk); 51 static void mptcp_check_send_data_fin(struct sock *sk); 64 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) in mptcp_fallback_tcp_ops() argument 66 unsigned short family = READ_ONCE(sk->sk_family); in mptcp_fallback_tcp_ops() 106 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() local 110 err = mptcp_subflow_create_socket(sk, sk->sk_family, &ssock); in __mptcp_socket_create() 114 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create() 115 WRITE_ONCE(msk->first, ssock->sk); in __mptcp_socket_create() 116 subflow = mptcp_subflow_ctx(ssock->sk); in __mptcp_socket_create() [all …]
|