/include/net/ |
D | sock.h | 84 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument 89 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument 523 void (*sk_state_change)(struct sock *sk); 524 void (*sk_data_ready)(struct sock *sk); 525 void (*sk_write_space)(struct sock *sk); 526 void (*sk_error_report)(struct sock *sk); 527 int (*sk_backlog_rcv)(struct sock *sk, 530 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, 534 void (*sk_destruct)(struct sock *sk); 583 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy() argument [all …]
|
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 …]
|
D | llc_c_ac.h | 90 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 92 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 93 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 94 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 95 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 96 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 97 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 98 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, 101 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, [all …]
|
D | inet_connection_sock.h | 36 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 37 void (*send_check)(struct sock *sk, struct sk_buff *skb); 38 int (*rebuild_header)(struct sock *sk); 39 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb); 40 int (*conn_request)(struct sock *sk, struct sk_buff *skb); 41 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb, 49 int (*setsockopt)(struct sock *sk, int level, int optname, 51 int (*getsockopt)(struct sock *sk, int level, int optname, 53 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *); 54 void (*mtu_reduced)(struct sock *sk); [all …]
|
D | tcp.h | 54 void tcp_time_wait(struct sock *sk, int state, int timeo); 263 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() argument 265 if (mem_cgroup_sockets_enabled && sk->sk_memcg && in tcp_under_memory_pressure() 266 mem_cgroup_under_socket_pressure(sk->sk_memcg)) in tcp_under_memory_pressure() 288 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() argument 290 if (sk->sk_wmem_queued > SOCK_MIN_SNDBUF && in tcp_out_of_memory() 291 sk_memory_allocated(sk) > sk_prot_mem_limits(sk, 2)) in tcp_out_of_memory() 296 void sk_forced_mem_schedule(struct sock *sk, int size); 298 bool tcp_check_oom(struct sock *sk, int shift); 312 void tcp_shutdown(struct sock *sk, int how); [all …]
|
D | inet_sock.h | 103 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk() argument 105 return (struct inet_request_sock *)sk; in inet_rsk() 108 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark() argument 110 if (!sk->sk_mark && in inet_request_mark() 111 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fwmark_accept)) in inet_request_mark() 114 return sk->sk_mark; in inet_request_mark() 117 static inline int inet_request_bound_dev_if(const struct sock *sk, in inet_request_bound_dev_if() argument 120 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in inet_request_bound_dev_if() 122 struct net *net = sock_net(sk); in inet_request_bound_dev_if() 131 static inline int inet_sk_bound_l3mdev(const struct sock *sk) in inet_sk_bound_l3mdev() argument [all …]
|
D | busy_poll.h | 39 static inline bool sk_can_busy_loop(const struct sock *sk) in sk_can_busy_loop() argument 41 return READ_ONCE(sk->sk_ll_usec) && !signal_pending(current); in sk_can_busy_loop() 56 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop() argument 88 static inline bool sk_busy_loop_timeout(struct sock *sk, in sk_busy_loop_timeout() argument 92 unsigned long bp_usec = READ_ONCE(sk->sk_ll_usec); in sk_busy_loop_timeout() 104 static inline void sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop() argument 107 unsigned int napi_id = READ_ONCE(sk->sk_napi_id); in sk_busy_loop() 110 napi_busy_loop(napi_id, nonblock ? NULL : sk_busy_loop_end, sk, in sk_busy_loop() 111 READ_ONCE(sk->sk_prefer_busy_poll), in sk_busy_loop() 112 READ_ONCE(sk->sk_busy_poll_budget) ?: BUSY_POLL_BUDGET); in sk_busy_loop() [all …]
|
D | timewait_sock.h | 18 int (*twsk_unique)(struct sock *sk, 20 void (*twsk_destructor)(struct sock *sk); 23 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique() argument 25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique() 26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique() 30 static inline void twsk_destructor(struct sock *sk) in twsk_destructor() argument 32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor() 33 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
|
D | sock_reuseport.h | 31 extern int reuseport_alloc(struct sock *sk, bool bind_inany); 32 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2, 34 extern void reuseport_detach_sock(struct sock *sk); 35 void reuseport_stop_listen_sock(struct sock *sk); 36 extern struct sock *reuseport_select_sock(struct sock *sk, 40 struct sock *reuseport_migrate_sock(struct sock *sk, 43 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog); 44 extern int reuseport_detach_prog(struct sock *sk); 46 static inline bool reuseport_has_conns(struct sock *sk) in reuseport_has_conns() argument 52 reuse = rcu_dereference(sk->sk_reuseport_cb); in reuseport_has_conns() [all …]
|
D | tls.h | 130 struct sock *sk; member 157 void (*saved_data_ready)(struct sock *sk); 189 void (*sk_destruct)(struct sock *sk); 256 int (*push_pending_record)(struct sock *sk, int flags); 257 void (*sk_write_space)(struct sock *sk); 281 struct sock *sk; member 283 void (*sk_destruct)(struct sock *sk); 299 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk, 307 struct sock *sk, u32 seq, u8 *rcd_sn, 368 struct tls_context *tls_ctx_create(struct sock *sk); [all …]
|
D | espintcp.h | 10 int espintcp_push_skb(struct sock *sk, struct sk_buff *skb); 11 int espintcp_queue_out(struct sock *sk, struct sk_buff *skb); 12 bool tcp_is_ulp_esp(struct sock *sk); 26 void (*saved_data_ready)(struct sock *sk); 27 void (*saved_write_space)(struct sock *sk); 28 void (*saved_destruct)(struct sock *sk); 33 static inline struct espintcp_ctx *espintcp_getctx(const struct sock *sk) in espintcp_getctx() argument 35 struct inet_connection_sock *icsk = inet_csk(sk); in espintcp_getctx()
|
D | udp.h | 128 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing() argument 132 skb_queue_walk(&sk->sk_write_queue, skb) { in udp_csum_outgoing() 180 struct udphdr *uh, struct sock *sk); 201 static inline int udp_lib_hash(struct sock *sk) in udp_lib_hash() argument 207 void udp_lib_unhash(struct sock *sk); 208 void udp_lib_rehash(struct sock *sk, u16 new_hash); 210 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close() argument 212 sk_common_release(sk); in udp_lib_close() 215 int udp_lib_get_port(struct sock *sk, unsigned short snum, 256 static inline int udp_rqueue_get(struct sock *sk) in udp_rqueue_get() argument [all …]
|
D | inet_hashtables.h | 219 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb, 228 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn() argument 230 return inet_lhashfn(sock_net(sk), inet_sk(sk)->inet_num); in inet_sk_listen_hashfn() 234 int __inet_inherit_port(const struct sock *sk, struct sock *child); 236 void inet_put_port(struct sock *sk); 245 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk); 246 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, 248 int __inet_hash(struct sock *sk, struct sock *osk); 249 int inet_hash(struct sock *sk); 250 void inet_unhash(struct sock *sk); [all …]
|
D | inet6_hashtables.h | 70 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() local 74 if (sk) in __inet6_lookup() 75 return sk; in __inet6_lookup() 88 struct sock *sk = skb_steal_sock(skb, refcounted); in __inet6_lookup_skb() local 90 if (sk) in __inet6_lookup_skb() 91 return sk; in __inet6_lookup_skb() 105 int inet6_hash(struct sock *sk); 107 static inline bool inet6_match(struct net *net, const struct sock *sk, in inet6_match() argument 113 if (!net_eq(sock_net(sk), net) || in inet6_match() 114 sk->sk_family != AF_INET6 || in inet6_match() [all …]
|
D | llc_conn.h | 34 struct sock sk; member 83 static inline struct llc_sock *llc_sk(const struct sock *sk) in llc_sk() argument 85 return (struct llc_sock *)sk; in llc_sk() 100 void llc_sk_stop_all_timers(struct sock *sk, bool sync); 101 void llc_sk_free(struct sock *sk); 103 void llc_sk_reset(struct sock *sk); 106 int llc_conn_state_process(struct sock *sk, struct sk_buff *skb); 107 void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb); 108 void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb); 109 void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit); [all …]
|
D | ping.h | 30 int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len, 32 void (*ip6_datagram_recv_common_ctl)(struct sock *sk, 35 void (*ip6_datagram_recv_specific_ctl)(struct sock *sk, 39 void (*ipv6_icmp_error)(struct sock *sk, struct sk_buff *skb, int err, 63 int ping_get_port(struct sock *sk, unsigned short ident); 64 int ping_hash(struct sock *sk); 65 void ping_unhash(struct sock *sk); 67 int ping_init_sock(struct sock *sk); 68 void ping_close(struct sock *sk, long timeout); 69 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len); [all …]
|
/include/linux/ |
D | sock_diag.h | 18 int (*get_info)(struct sk_buff *skb, struct sock *sk); 28 u64 __sock_gen_cookie(struct sock *sk); 30 static inline u64 sock_gen_cookie(struct sock *sk) in sock_gen_cookie() argument 35 cookie = __sock_gen_cookie(sk); in sock_gen_cookie() 41 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie); 42 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie); 44 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr); 45 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, 49 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group() argument 51 switch (sk->sk_family) { in sock_diag_destroy_group() [all …]
|
D | udp.h | 41 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0] 42 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1] 43 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node 77 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); 78 void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, unsigned int udp_offset); 79 int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb); 80 void (*encap_destroy)(struct sock *sk); 83 struct sk_buff * (*gro_receive)(struct sock *sk, 86 int (*gro_complete)(struct sock *sk, 99 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk() argument [all …]
|
D | bpf-cgroup.h | 180 int __cgroup_bpf_run_filter_skb(struct sock *sk, 184 int __cgroup_bpf_run_filter_sk(struct sock *sk, 187 int __cgroup_bpf_run_filter_sock_addr(struct sock *sk, 193 int __cgroup_bpf_run_filter_sock_ops(struct sock *sk, 208 int __cgroup_bpf_run_filter_getsockopt(struct sock *sk, int level, 213 int __cgroup_bpf_run_filter_getsockopt_kern(struct sock *sk, int level, 243 #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \ argument 247 __ret = __cgroup_bpf_run_filter_skb(sk, skb, \ 253 #define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk, skb) \ argument 256 if (cgroup_bpf_enabled(CGROUP_INET_EGRESS) && sk && sk == skb->sk) { \ [all …]
|
D | skmsg.h | 53 struct sock *sk; member 82 struct sock *sk; member 99 void (*saved_unhash)(struct sock *sk); 100 void (*saved_close)(struct sock *sk, long timeout); 101 void (*saved_write_space)(struct sock *sk); 102 void (*saved_data_ready)(struct sock *sk); 103 int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock, 112 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, 114 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src, 116 void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len); [all …]
|
/include/crypto/ |
D | if_alg.h | 28 struct sock sk; member 50 int (*accept)(void *private, struct sock *sk); 51 int (*accept_nokey)(void *private, struct sock *sk); 98 struct sock *sk; member 168 void af_alg_release_parent(struct sock *sk); 169 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern); 174 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk() argument 176 return (struct alg_sock *)sk; in alg_sk() 185 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf() argument 187 struct alg_sock *ask = alg_sk(sk); in af_alg_sndbuf() [all …]
|
/include/net/phonet/ |
D | gprs.h | 18 int pep_writeable(struct sock *sk); 19 int pep_write(struct sock *sk, struct sk_buff *skb); 20 struct sk_buff *pep_read(struct sock *sk); 22 int gprs_attach(struct sock *sk); 23 void gprs_detach(struct sock *sk);
|
/include/trace/events/ |
D | net_probe_common.h | 6 #define TP_STORE_ADDR_PORTS_V4(__entry, inet, sk) \ argument 21 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument 23 if (sk->sk_family == AF_INET6) { \ 28 v6->sin6_addr = inet6_sk(sk)->saddr; \ 32 v6->sin6_addr = sk->sk_v6_daddr; \ 34 TP_STORE_ADDR_PORTS_V4(__entry, inet, sk); \ 39 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument 40 TP_STORE_ADDR_PORTS_V4(__entry, inet, sk);
|
D | sock.h | 73 TP_PROTO(struct sock *sk, struct sk_buff *skb), 75 TP_ARGS(sk, skb), 84 __entry->rmem_alloc = atomic_read(&sk->sk_rmem_alloc); 86 __entry->sk_rcvbuf = READ_ONCE(sk->sk_rcvbuf); 95 TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind), 97 TP_ARGS(sk, prot, allocated, kind), 117 __entry->sysctl_rmem = sk_get_rmem0(sk, prot); 118 __entry->rmem_alloc = atomic_read(&sk->sk_rmem_alloc); 119 __entry->sysctl_wmem = sk_get_wmem0(sk, prot); 120 __entry->wmem_alloc = refcount_read(&sk->sk_wmem_alloc); [all …]
|
D | tcp.h | 28 if (sk->sk_family == AF_INET6) { \ 52 TP_PROTO(const struct sock *sk, const struct sk_buff *skb), 54 TP_ARGS(sk, skb), 70 struct inet_sock *inet = inet_sk(sk); 74 __entry->skaddr = sk; 75 __entry->state = sk->sk_state; 79 __entry->family = sk->sk_family; 88 sk->sk_v6_rcv_saddr, sk->sk_v6_daddr); 100 TP_PROTO(const struct sock *sk, const struct sk_buff *skb), 102 TP_ARGS(sk, skb) [all …]
|