Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 25 of 158) sorted by relevance

1234567

/include/net/
Dllc_c_ac.h23 struct sock;
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,
[all …]
Dllc_c_ev.h128 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 …]
Dsock_reuseport.h29 struct sock *socks[] __counted_by(max_socks);
32 extern int reuseport_alloc(struct sock *sk, bool bind_inany);
33 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
35 extern void reuseport_detach_sock(struct sock *sk);
36 void reuseport_stop_listen_sock(struct sock *sk);
37 extern struct sock *reuseport_select_sock(struct sock *sk,
41 struct sock *reuseport_migrate_sock(struct sock *sk,
42 struct sock *migrating_sk,
44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
45 extern int reuseport_detach_prog(struct sock *sk);
[all …]
Dinet_common.h21 struct sock;
25 int inet_release(struct socket *sock);
26 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
28 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
30 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
32 int inet_accept(struct socket *sock, struct socket *newsock,
34 void __inet_accept(struct socket *sock, struct socket *newsock,
35 struct sock *newsk);
36 int inet_send_prepare(struct sock *sk);
37 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
[all …]
Dinet_connection_sock.h37 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
38 void (*send_check)(struct sock *sk, struct sk_buff *skb);
39 int (*rebuild_header)(struct sock *sk);
40 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
41 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
42 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 …]
Dsock.h100 struct sock;
201 struct sock *skc_listener; /* request_sock */
346 struct sock { struct
433 void (*sk_data_ready)(struct sock *sk); argument
485 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument
538 void (*sk_state_change)(struct sock *sk); argument
539 void (*sk_write_space)(struct sock *sk); argument
540 void (*sk_error_report)(struct sock *sk); argument
541 int (*sk_backlog_rcv)(struct sock *sk, argument
543 void (*sk_destruct)(struct sock *sk); argument
[all …]
Dnetrom.h68 struct sock sock; member
191 void nr_destroy_socket(struct sock *);
198 int nr_process_rx_frame(struct sock *, struct sk_buff *);
206 void nr_output(struct sock *, struct sk_buff *);
207 void nr_send_nak_frame(struct sock *);
208 void nr_kick(struct sock *);
209 void nr_transmit_buffer(struct sock *, struct sk_buff *);
210 void nr_establish_data_link(struct sock *);
211 void nr_enquiry_response(struct sock *);
212 void nr_check_iframes_acked(struct sock *, unsigned short);
[all …]
Dtcp.h58 void tcp_time_wait(struct sock *sk, int state, int timeo);
275 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
300 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb()
310 void sk_forced_mem_schedule(struct sock *sk, int size);
312 bool tcp_check_oom(const struct sock *sk, int shift);
326 void tcp_shutdown(struct sock *sk, int how);
331 void tcp_remove_empty_skb(struct sock *sk);
332 int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
333 int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size);
334 int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
[all …]
Dtcp_ao.h177 int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb,
182 const struct sock *sk, const struct sk_buff *skb,
184 int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family,
186 struct tcp_ao_key *tcp_ao_established_key(const struct sock *sk,
189 int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk,
194 void tcp_ao_destroy_sock(struct sock *sk, bool twsk);
196 bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code);
197 int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen);
198 int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen);
199 int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen);
[all …]
Dx25.h151 struct sock sk;
196 struct sock *x25_find_socket(unsigned int, struct x25_neigh *);
197 void x25_destroy_socket_from_timer(struct sock *);
213 int x25_negotiate_facilities(struct sk_buff *, struct sock *,
226 int x25_process_rx_frame(struct sock *, struct sk_buff *);
227 int x25_backlog_rcv(struct sock *, struct sk_buff *);
255 int x25_output(struct sock *, struct sk_buff *);
256 void x25_kick(struct sock *);
257 void x25_enquiry_response(struct sock *);
278 void x25_clear_queues(struct sock *);
[all …]
Dbpf_sk_storage.h17 struct sock;
19 void bpf_sk_storage_free(struct sock *sk);
32 int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk);
37 struct sock *sk, struct sk_buff *skb,
41 static inline int bpf_sk_storage_clone(const struct sock *sk, in bpf_sk_storage_clone()
42 struct sock *newsk) in bpf_sk_storage_clone()
55 struct sock *sk, struct sk_buff *skb, in bpf_sk_storage_diag_put()
Drawv6.h9 bool raw_v6_match(struct net *net, const struct sock *sk, unsigned short num,
13 int raw_abort(struct sock *sk, int err);
19 int rawv6_rcv(struct sock *sk, struct sk_buff *skb);
22 int rawv6_mh_filter_register(int (*filter)(struct sock *sock,
24 int rawv6_mh_filter_unregister(int (*filter)(struct sock *sock,
Dscm.h55 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
60 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
62 security_socket_getpeersec_dgram(sock, NULL, &scm->secid); in unix_get_peersec_dgram()
65 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
91 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send() argument
99 unix_get_peersec_dgram(sock, scm); in scm_send()
102 return __scm_send(sock, msg, scm); in scm_send()
106 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec() argument
112 if (test_bit(SOCK_PASSSEC, &sock->flags)) { in scm_passec()
122 static inline bool scm_has_secdata(struct socket *sock) in scm_has_secdata() argument
[all …]
Drose.h129 struct sock sock; member
186 struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
191 void rose_destroy_socket(struct sock *);
197 int rose_process_rx_frame(struct sock *, struct sk_buff *);
216 void rose_kick(struct sock *);
217 void rose_enquiry_response(struct sock *);
241 void rose_clear_queues(struct sock *);
242 void rose_frames_acked(struct sock *, unsigned short);
243 void rose_requeue_frames(struct sock *);
244 int rose_validate_nr(struct sock *, unsigned short);
[all …]
Despintcp.h10 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()
Dllc_conn.h34 struct sock sk;
84 static inline struct llc_sock *llc_sk(const struct sock *sk) in llc_sk()
99 struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
101 void llc_sk_stop_all_timers(struct sock *sk, bool sync);
102 void llc_sk_free(struct sock *sk);
104 void llc_sk_reset(struct sock *sk);
107 int llc_conn_state_process(struct sock *sk, struct sk_buff *skb);
108 void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb);
109 void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb);
110 void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit);
[all …]
Dtls_toe.h37 struct sock;
66 int (*hash)(struct tls_toe_device *device, struct sock *sk);
67 void (*unhash)(struct tls_toe_device *device, struct sock *sk);
72 int tls_toe_bypass(struct sock *sk);
73 int tls_toe_hash(struct sock *sk);
74 void tls_toe_unhash(struct sock *sk);
/include/linux/
Dnet.h126 struct sock *sk;
160 typedef int (*skb_read_actor_t)(struct sock *, struct sk_buff *);
166 int (*release) (struct socket *sock);
167 int (*bind) (struct socket *sock,
170 int (*connect) (struct socket *sock,
175 int (*accept) (struct socket *sock,
178 int (*getname) (struct socket *sock,
181 __poll_t (*poll) (struct file *file, struct socket *sock,
183 int (*ioctl) (struct socket *sock, unsigned int cmd,
186 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
[all …]
Dmroute6.h26 struct sock;
29 extern int ip6_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int);
30 extern int ip6_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t);
32 extern int ip6mr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
35 int ip6mr_ioctl(struct sock *sk, int cmd, void *arg);
37 static inline int ip6_mroute_setsockopt(struct sock *sock, int optname, in ip6_mroute_setsockopt() argument
44 int ip6_mroute_getsockopt(struct sock *sock, in ip6_mroute_getsockopt() argument
51 int ip6mr_ioctl(struct sock *sk, int cmd, void *arg) in ip6mr_ioctl()
102 extern int ip6mr_sk_done(struct sock *sk);
103 static inline int ip6mr_sk_ioctl(struct sock *sk, unsigned int cmd, in ip6mr_sk_ioctl()
[all …]
Dmroute.h19 int ip_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int);
20 int ip_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t);
21 int ipmr_ioctl(struct sock *sk, int cmd, void *arg);
22 int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
25 int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
27 static inline int ip_mroute_setsockopt(struct sock *sock, int optname, in ip_mroute_setsockopt() argument
33 static inline int ip_mroute_getsockopt(struct sock *sk, int optname, in ip_mroute_getsockopt()
39 static inline int ipmr_ioctl(struct sock *sk, int cmd, void *arg) in ipmr_ioctl()
59 static inline int ipmr_sk_ioctl(struct sock *sk, unsigned int cmd, in ipmr_sk_ioctl()
Dsock_diag.h13 struct sock;
19 int (*get_info)(struct sk_buff *skb, struct sock *sk);
34 u64 __sock_gen_cookie(struct sock *sk);
36 static inline u64 sock_gen_cookie(struct sock *sk) in sock_gen_cookie()
47 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie);
48 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie);
50 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr);
51 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
55 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group()
88 bool sock_diag_has_destroy_listeners(const struct sock *sk) in sock_diag_has_destroy_listeners()
[all …]
/include/trace/hooks/
Dnet.h27 struct sock;
31 TP_PROTO(struct sock *sk, struct sockaddr *uaddr), TP_ARGS(sk, uaddr));
33 TP_PROTO(struct sock *sk, struct sockaddr *uaddr), TP_ARGS(sk, uaddr));
35 TP_PROTO(struct sock *sk, __be32 daddr, __be16 dport, uint16_t family),
38 TP_PROTO(struct sock *sk, struct sockaddr_in6 *sin6), TP_ARGS(sk, sin6));
40 TP_PROTO(struct sock *sk, bool err), TP_ARGS(sk, err));
42 TP_PROTO(struct sock *sk), TP_ARGS(sk));
44 TP_PROTO(struct sock *sk), TP_ARGS(sk));
46 TP_PROTO(struct sock *sk), TP_ARGS(sk));
50 TP_PROTO(struct sock *nsk), TP_ARGS(nsk));
[all …]
/include/crypto/
Dif_alg.h26 struct sock sk;
28 struct sock *parent;
48 int (*accept)(void *private, struct sock *sk);
49 int (*accept_nokey)(void *private, struct sock *sk);
96 struct sock *sk;
169 int af_alg_release(struct socket *sock);
170 void af_alg_release_parent(struct sock *sk);
171 int af_alg_accept(struct sock *sk, struct socket *newsock,
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()
[all …]
/include/net/phonet/
Dgprs.h15 struct sock;
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);
Dphonet.h28 struct sock sk;
34 static inline struct pn_sock *pn_sk(struct sock *sk) in pn_sk()
42 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa);
45 int pn_sock_hash(struct sock *sk);
46 void pn_sock_unhash(struct sock *sk);
47 int pn_sock_get_port(struct sock *sk, unsigned short sport);
49 struct sock *pn_find_sock_by_res(struct net *net, u8 res);
50 int pn_sock_bind_res(struct sock *sock, u8 res);
51 int pn_sock_unbind_res(struct sock *sk, u8 res);
52 void pn_sock_unbind_all_res(struct sock *sk);
[all …]

1234567