Home
last modified time | relevance | path

Searched defs:sk (Results 1 – 25 of 98) sorted by relevance

1234

/linux-4.19.296/include/linux/
Dbpf-cgroup.h125 #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \ argument
135 #define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk, skb) \ argument
147 #define BPF_CGROUP_RUN_SK_PROG(sk, type) \ argument
156 #define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) \ argument
159 #define BPF_CGROUP_RUN_PROG_INET4_POST_BIND(sk) \ argument
162 #define BPF_CGROUP_RUN_PROG_INET6_POST_BIND(sk) \ argument
165 #define BPF_CGROUP_RUN_SA_PROG(sk, uaddr, type) \ argument
174 #define BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, type, t_ctx) \ argument
186 #define BPF_CGROUP_RUN_PROG_INET4_BIND(sk, uaddr) \ argument
189 #define BPF_CGROUP_RUN_PROG_INET6_BIND(sk, uaddr) \ argument
[all …]
Dudp.h93 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk()
98 static inline void udp_set_no_check6_tx(struct sock *sk, bool val) in udp_set_no_check6_tx()
103 static inline void udp_set_no_check6_rx(struct sock *sk, bool val) in udp_set_no_check6_rx()
108 static inline bool udp_get_no_check6_tx(struct sock *sk) in udp_get_no_check6_tx()
113 static inline bool udp_get_no_check6_rx(struct sock *sk) in udp_get_no_check6_rx()
Dsock_diag.h37 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group()
70 bool sock_diag_has_destroy_listeners(const struct sock *sk) in sock_diag_has_destroy_listeners()
Dnetfilter.h56 struct sock *sk; member
127 struct sock *sk, in nf_hook_state_init()
194 struct sock *sk, struct sk_buff *skb, in nf_hook()
264 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
278 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK()
289 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_LIST()
371 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
380 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK()
388 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_LIST()
396 struct sock *sk, struct sk_buff *skb, in nf_hook()
/linux-4.19.296/include/net/
Dsock.h86 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
91 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
524 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
526 #define rcu_dereference_sk_user_data(sk) rcu_dereference(__sk_user_data((sk))) argument
527 #define rcu_assign_sk_user_data(sk, ptr) rcu_assign_pointer(__sk_user_data((sk)), ptr) argument
542 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
551 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
561 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
594 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
599 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
[all …]
Dbusy_poll.h49 static inline bool sk_can_busy_loop(const struct sock *sk) in sk_can_busy_loop()
66 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop()
98 static inline bool sk_busy_loop_timeout(struct sock *sk, in sk_busy_loop_timeout()
114 static inline void sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop()
134 static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb) in sk_mark_napi_id()
143 static inline void sk_mark_napi_id_once(struct sock *sk, in sk_mark_napi_id_once()
Dtcp.h259 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
284 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
294 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
349 static inline void tcp_dec_quickack_mode(struct sock *sk) in tcp_dec_quickack_mode()
480 static inline void tcp_synq_overflow(const struct sock *sk) in tcp_synq_overflow()
504 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow()
604 static inline void tcp_clear_xmit_timers(struct sock *sk) in tcp_clear_xmit_timers()
655 static inline void tcp_bound_rto(const struct sock *sk) in tcp_bound_rto()
678 static inline void tcp_fast_path_check(struct sock *sk) in tcp_fast_path_check()
690 static inline u32 tcp_rto_min(struct sock *sk) in tcp_rto_min()
[all …]
Dinet_connection_sock.h153 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk()
158 static inline void *inet_csk_ca(const struct sock *sk) in inet_csk_ca()
181 static inline void inet_csk_schedule_ack(struct sock *sk) in inet_csk_schedule_ack()
186 static inline int inet_csk_ack_scheduled(const struct sock *sk) in inet_csk_ack_scheduled()
191 static inline void inet_csk_delack_init(struct sock *sk) in inet_csk_delack_init()
199 static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what) in inet_csk_clear_xmit_timer()
221 static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, in inet_csk_reset_xmit_timer()
276 static inline void inet_csk_reqsk_queue_added(struct sock *sk) in inet_csk_reqsk_queue_added()
281 static inline int inet_csk_reqsk_queue_len(const struct sock *sk) in inet_csk_reqsk_queue_len()
286 static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk) in inet_csk_reqsk_queue_is_full()
[all …]
Dinet_sock.h107 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk()
112 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark()
121 static inline int inet_request_bound_dev_if(const struct sock *sk, in inet_request_bound_dev_if()
180 struct sock sk; member
245 static inline struct sock *sk_to_full_sk(struct sock *sk) in sk_to_full_sk()
255 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk) in sk_const_to_full_sk()
269 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk()
298 static inline int inet_sk_state_load(const struct sock *sk) in inet_sk_state_load()
332 static inline __u8 inet_sk_flowi_flags(const struct sock *sk) in inet_sk_flowi_flags()
341 static inline void inet_inc_convert_csum(struct sock *sk) in inet_inc_convert_csum()
[all …]
Dudp.h131 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing()
196 static inline int udp_lib_hash(struct sock *sk) in udp_lib_hash()
205 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close()
251 static inline int udp_rqueue_get(struct sock *sk) in udp_rqueue_get()
263 static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags, in skb_recv_udp()
410 #define __UDPX_INC_STATS(sk, field) \ argument
418 #define __UDPX_INC_STATS(sk, field) __UDP_INC_STATS(sock_net(sk), field, 0) argument
Dl3mdev.h168 struct sk_buff *l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto) in l3mdev_l3_out()
185 struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip_out()
191 struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip6_out()
254 struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip_out()
260 struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip6_out()
Dip.h125 struct sock *sk; member
197 static inline int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, in ip_queue_xmit()
203 static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4) in ip_finish_skb()
213 static inline __u8 get_rtconn_flags(struct ipcm_cookie* ipc, struct sock* sk) in get_rtconn_flags()
375 int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) in ip_dont_fragment()
384 static inline bool ip_sk_accept_pmtu(const struct sock *sk) in ip_sk_accept_pmtu()
390 static inline bool ip_sk_use_pmtu(const struct sock *sk) in ip_sk_use_pmtu()
395 static inline bool ip_sk_ignore_df(const struct sock *sk) in ip_sk_ignore_df()
420 static inline unsigned int ip_skb_dst_mtu(struct sock *sk, in ip_skb_dst_mtu()
442 struct sock *sk, int segs) in ip_select_ident_segs()
[all …]
Dtimewait_sock.h27 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique()
34 static inline void twsk_destructor(struct sock *sk) in twsk_destructor()
Droute.h45 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
46 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
150 struct sock *sk, in ip_route_output_ports()
278 struct sock *sk) in ip_route_connect_init()
294 struct sock *sk) in ip_route_connect()
316 struct sock *sk) in ip_route_newports()
Dinet_ecn.h53 static inline void INET_ECN_xmit(struct sock *sk) in INET_ECN_xmit()
60 static inline void INET_ECN_dontxmit(struct sock *sk) in INET_ECN_dontxmit()
71 #define IP6_ECN_flow_xmit(sk, label) do { \ argument
Dip6_route.h85 const struct sock *sk, in ip6_route_output()
206 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store()
260 static inline bool ip6_sk_accept_pmtu(const struct sock *sk) in ip6_sk_accept_pmtu()
266 static inline bool ip6_sk_ignore_df(const struct sock *sk) in ip6_sk_ignore_df()
/linux-4.19.296/drivers/isdn/mISDN/
Dsocket.c31 #define _pms(sk) ((struct mISDN_sock *)sk) argument
55 mISDN_sock_link(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_link()
62 static void mISDN_sock_unlink(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_unlink()
104 mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) in mISDN_sock_cmsg()
119 struct sock *sk = sock->sk; in mISDN_sock_recvmsg() local
178 struct sock *sk = sock->sk; in mISDN_sock_sendmsg() local
248 struct sock *sk = sock->sk; in data_sock_release() local
289 data_sock_ioctl_bound(struct sock *sk, unsigned int cmd, void __user *p) in data_sock_ioctl_bound()
363 struct sock *sk = sock->sk; in data_sock_ioctl() local
416 struct sock *sk = sock->sk; in data_sock_setsockopt() local
[all …]
/linux-4.19.296/crypto/
Daf_alg.c133 void af_alg_release_parent(struct sock *sk) in af_alg_release_parent()
152 struct sock *sk = sock->sk; in alg_bind() local
209 static int alg_setkey(struct sock *sk, char __user *ukey, in alg_setkey()
236 struct sock *sk = sock->sk; in alg_setsockopt() local
274 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern) in af_alg_accept()
361 static void alg_sock_destruct(struct sock *sk) in alg_sock_destruct()
371 struct sock *sk; in alg_create() local
495 int af_alg_alloc_tsgl(struct sock *sk) in af_alg_alloc_tsgl()
537 unsigned int af_alg_count_tsgl(struct sock *sk, size_t bytes, size_t offset) in af_alg_count_tsgl()
593 void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst, in af_alg_pull_tsgl()
[all …]
Dalgif_hash.c37 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx) in hash_alloc_result()
55 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) in hash_free_result()
72 struct sock *sk = sock->sk; in hash_sendmsg() local
139 struct sock *sk = sock->sk; in hash_sendpage() local
191 struct sock *sk = sock->sk; in hash_recvmsg() local
238 struct sock *sk = sock->sk; in hash_accept() local
305 struct sock *sk = sock->sk; in hash_check_key() local
418 static void hash_sock_destruct(struct sock *sk) in hash_sock_destruct()
428 static int hash_accept_parent_nokey(void *private, struct sock *sk) in hash_accept_parent_nokey()
455 static int hash_accept_parent(void *private, struct sock *sk) in hash_accept_parent()
Dalgif_skcipher.c44 struct sock *sk = sock->sk; in skcipher_sendmsg() local
57 struct sock *sk = sock->sk; in _skcipher_recvmsg() local
156 struct sock *sk = sock->sk; in skcipher_recvmsg() local
214 struct sock *sk = sock->sk; in skcipher_check_key() local
316 static void skcipher_sock_destruct(struct sock *sk) in skcipher_sock_destruct()
330 static int skcipher_accept_parent_nokey(void *private, struct sock *sk) in skcipher_accept_parent_nokey()
366 static int skcipher_accept_parent(void *private, struct sock *sk) in skcipher_accept_parent()
Dalgif_aead.c48 static inline bool aead_sufficient_data(struct sock *sk) in aead_sufficient_data()
67 struct sock *sk = sock->sk; in aead_sendmsg() local
95 struct sock *sk = sock->sk; in _aead_recvmsg() local
330 struct sock *sk = sock->sk; in aead_recvmsg() local
388 struct sock *sk = sock->sk; in aead_check_key() local
527 static void aead_sock_destruct(struct sock *sk) in aead_sock_destruct()
543 static int aead_accept_parent_nokey(void *private, struct sock *sk) in aead_accept_parent_nokey()
581 static int aead_accept_parent(void *private, struct sock *sk) in aead_accept_parent()
Dalgif_rng.c61 struct sock *sk = sock->sk; in rng_recvmsg() local
126 static void rng_sock_destruct(struct sock *sk) in rng_sock_destruct()
135 static int rng_accept_parent(void *private, struct sock *sk) in rng_accept_parent()
/linux-4.19.296/include/trace/events/
Dnet_probe_common.h6 #define TP_STORE_ADDR_PORTS_V4(__entry, inet, sk) \ argument
21 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument
39 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument
/linux-4.19.296/include/crypto/
Dif_alg.h33 struct sock sk; member
102 struct sock *sk; member
176 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk()
187 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf()
202 static inline bool af_alg_writable(struct sock *sk) in af_alg_writable()
213 static inline int af_alg_rcvbuf(struct sock *sk) in af_alg_rcvbuf()
228 static inline bool af_alg_readable(struct sock *sk) in af_alg_readable()
/linux-4.19.296/include/net/netfilter/
Dnf_tproxy.h11 static inline bool nf_tproxy_sk_is_transparent(struct sock *sk) in nf_tproxy_sk_is_transparent()
21 static inline void nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) in nf_tproxy_assign_sock()

1234