Home
last modified time | relevance | path

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

1234

/include/net/
Dsock.h85 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
90 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
492 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
494 #define rcu_dereference_sk_user_data(sk) rcu_dereference(__sk_user_data((sk))) argument
495 #define rcu_assign_sk_user_data(sk, ptr) rcu_assign_pointer(__sk_user_data((sk)), ptr) argument
510 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
519 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
529 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
562 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
567 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()
142 static inline void sk_mark_napi_id_once(struct sock *sk, in sk_mark_napi_id_once()
Dtcp.h287 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
312 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
322 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
379 static inline void tcp_dec_quickack_mode(struct sock *sk, in tcp_dec_quickack_mode()
502 static inline void tcp_synq_overflow(const struct sock *sk) in tcp_synq_overflow()
512 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow()
592 static inline void tcp_clear_xmit_timers(struct sock *sk) in tcp_clear_xmit_timers()
638 static inline void tcp_bound_rto(const struct sock *sk) in tcp_bound_rto()
661 static inline void tcp_fast_path_check(struct sock *sk) in tcp_fast_path_check()
673 static inline u32 tcp_rto_min(struct sock *sk) in tcp_rto_min()
[all …]
Dinet_connection_sock.h150 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk()
155 static inline void *inet_csk_ca(const struct sock *sk) in inet_csk_ca()
177 static inline void inet_csk_schedule_ack(struct sock *sk) in inet_csk_schedule_ack()
182 static inline int inet_csk_ack_scheduled(const struct sock *sk) in inet_csk_ack_scheduled()
187 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()
224 static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, in inet_csk_reset_xmit_timer()
284 static inline void inet_csk_reqsk_queue_added(struct sock *sk) in inet_csk_reqsk_queue_added()
289 static inline int inet_csk_reqsk_queue_len(const struct sock *sk) in inet_csk_reqsk_queue_len()
294 static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk) in inet_csk_reqsk_queue_is_full()
[all …]
Dinet_sock.h106 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk()
111 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark()
119 static inline int inet_request_bound_dev_if(const struct sock *sk, in inet_request_bound_dev_if()
176 struct sock sk; member
241 static inline struct sock *sk_to_full_sk(struct sock *sk) in sk_to_full_sk()
251 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk) in sk_const_to_full_sk()
265 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk()
303 static inline __u8 inet_sk_flowi_flags(const struct sock *sk) in inet_sk_flowi_flags()
312 static inline void inet_inc_convert_csum(struct sock *sk) in inet_inc_convert_csum()
317 static inline void inet_dec_convert_csum(struct sock *sk) in inet_dec_convert_csum()
[all …]
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.h94 struct sock *sk; member
165 static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4) in ip_finish_skb()
175 static inline __u8 get_rtconn_flags(struct ipcm_cookie* ipc, struct sock* sk) in get_rtconn_flags()
337 int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) in ip_dont_fragment()
346 static inline bool ip_sk_accept_pmtu(const struct sock *sk) in ip_sk_accept_pmtu()
352 static inline bool ip_sk_use_pmtu(const struct sock *sk) in ip_sk_use_pmtu()
357 static inline bool ip_sk_ignore_df(const struct sock *sk) in ip_sk_ignore_df()
376 static inline unsigned int ip_skb_dst_mtu(struct sock *sk, in ip_skb_dst_mtu()
392 struct sock *sk, int segs) in ip_select_ident_segs()
414 struct sock *sk) in ip_select_ident()
[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()
Dudp.h131 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing()
192 static inline int udp_lib_hash(struct sock *sk) in udp_lib_hash()
201 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close()
247 static inline int udp_rqueue_get(struct sock *sk) in udp_rqueue_get()
259 static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags, in skb_recv_udp()
404 #define __UDPX_INC_STATS(sk, field) \ argument
412 #define __UDPX_INC_STATS(sk, field) __UDP_INC_STATS(sock_net(sk), field, 0) argument
Dip6_route.h78 const struct sock *sk, in ip6_route_output()
182 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store()
225 static inline bool ip6_sk_accept_pmtu(const struct sock *sk) in ip6_sk_accept_pmtu()
231 static inline bool ip6_sk_ignore_df(const struct sock *sk) in ip6_sk_ignore_df()
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
152 struct sock *sk, in ip_route_output_ports()
276 struct sock *sk) in ip_route_connect_init()
292 struct sock *sk) in ip_route_connect()
314 struct sock *sk) in ip_route_newports()
Dinet_ecn.h52 static inline void INET_ECN_xmit(struct sock *sk) in INET_ECN_xmit()
59 static inline void INET_ECN_dontxmit(struct sock *sk) in INET_ECN_dontxmit()
70 #define IP6_ECN_flow_xmit(sk, label) do { \ argument
Dudplite.h28 static inline int udplite_sk_init(struct sock *sk) in udplite_sk_init()
74 static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udplite_csum_outgoing()
Dinet_hashtables.h206 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn()
320 struct sock *sk; in __inet_lookup() local
339 struct sock *sk; in inet_lookup() local
358 struct sock *sk = skb_steal_sock(skb); in __inet_lookup_skb() local
375 static inline void sk_daddr_set(struct sock *sk, __be32 addr) in sk_daddr_set()
383 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr) in sk_rcv_saddr_set()
Dtls.h149 static inline int tls_complete_pending_work(struct sock *sk, in tls_complete_pending_work()
174 static inline void tls_err_abort(struct sock *sk) in tls_err_abort()
193 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
224 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
Dinet6_hashtables.h74 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() local
92 struct sock *sk = skb_steal_sock(skb); in __inet6_lookup_skb() local
Dinet_common.h49 static inline void inet_ctl_sock_destroy(struct sock *sk) in inet_ctl_sock_destroy()
/include/linux/
Dbpf-cgroup.h52 #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \ argument
62 #define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk, skb) \ argument
74 #define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) \ argument
103 #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk,skb) ({ 0; }) argument
104 #define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk,skb) ({ 0; }) argument
105 #define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) ({ 0; }) argument
Dudp.h90 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk()
95 static inline void udp_set_no_check6_tx(struct sock *sk, bool val) in udp_set_no_check6_tx()
100 static inline void udp_set_no_check6_rx(struct sock *sk, bool val) in udp_set_no_check6_rx()
105 static inline bool udp_get_no_check6_tx(struct sock *sk) in udp_get_no_check6_tx()
110 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
116 struct sock *sk, in nf_hook_state_init()
183 struct sock *sk, struct sk_buff *skb, in nf_hook()
230 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
244 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK()
352 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
361 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK()
369 struct sock *sk, struct sk_buff *skb, in nf_hook()
Dipv6.h333 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk()
349 #define __ipv6_only_sock(sk) (sk->sk_ipv6only) argument
350 #define ipv6_only_sock(sk) (__ipv6_only_sock(sk)) argument
351 #define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \ argument
354 static inline const struct in6_addr *inet6_rcv_saddr(const struct sock *sk) in inet6_rcv_saddr()
361 static inline int inet_v6_ipv6only(const struct sock *sk) in inet_v6_ipv6only()
367 #define __ipv6_only_sock(sk) 0 argument
368 #define ipv6_only_sock(sk) 0 argument
369 #define ipv6_sk_rxinfo(sk) 0 argument
387 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk()
/include/crypto/
Dif_alg.h33 struct sock sk; member
107 struct sock *sk; member
184 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk()
200 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf()
215 static inline bool af_alg_writable(struct sock *sk) in af_alg_writable()
226 static inline int af_alg_rcvbuf(struct sock *sk) in af_alg_rcvbuf()
241 static inline bool af_alg_readable(struct sock *sk) in af_alg_readable()
/include/net/phonet/
Dphonet.h37 struct sock sk; member
43 static inline struct pn_sock *pn_sk(struct sock *sk) in pn_sk()
/include/net/netfilter/
Dnf_socket.h10 static inline bool nf_sk_is_transparent(struct sock *sk) in nf_sk_is_transparent()

1234