Searched refs:sock (Results 376 - 400 of 1088) sorted by relevance

<<11121314151617181920>>

/linux-master/include/net/
H A Dnetlabel.h242 int (*sock_getattr)(struct sock *sk,
244 int (*sock_setattr)(struct sock *sk,
247 void (*sock_delattr)(struct sock *sk);
471 int netlbl_sock_setattr(struct sock *sk,
475 void netlbl_sock_delattr(struct sock *sk);
476 int netlbl_sock_getattr(struct sock *sk,
478 int netlbl_conn_setattr(struct sock *sk,
491 bool netlbl_sk_lock_check(struct sock *sk);
617 static inline int netlbl_sock_setattr(struct sock *sk,
624 static inline void netlbl_sock_delattr(struct sock *s
[all...]
/linux-master/net/smc/
H A Daf_smc.c5 * AF_SMC protocol family socket handler keeping the AF_INET sock address type
32 #include <net/sock.h>
111 static void smc_set_keepalive(struct sock *sk, int val)
118 static struct sock *smc_tcp_syn_recv_sock(const struct sock *sk,
126 struct sock *child;
139 /* passthrough to original syn recv sock fct */
158 static bool smc_hs_congested(const struct sock *sk)
181 static int smc_hash_sk(struct sock *sk)
196 static void smc_unhash_sk(struct sock *s
310 smc_release(struct socket *sock) argument
364 smc_sock_alloc(struct net *net, struct socket *sock, int protocol) argument
396 smc_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument
1644 smc_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) argument
2626 smc_listen(struct socket *sock, int backlog) argument
2691 smc_accept(struct socket *sock, struct socket *new_sock, int flags, bool kern) argument
2761 smc_getname(struct socket *sock, struct sockaddr *addr, int peer) argument
2775 smc_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
2813 smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
2863 smc_poll(struct file *file, struct socket *sock, poll_table *wait) argument
2916 smc_shutdown(struct socket *sock, int how) argument
2991 __smc_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
3023 __smc_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
3056 smc_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
3143 smc_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
3169 smc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
3256 smc_splice_read(struct socket *sock, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags) argument
3324 __smc_create(struct net *net, struct socket *sock, int protocol, int kern, struct socket *clcsock) argument
3382 smc_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
H A Dsmc_tracepoint.h30 const struct sock *sk = &smc->sk;
31 const struct sock *clcsk = smc->clcsock->sk;
58 const struct sock *sk = &smc->sk;
/linux-master/security/tomoyo/
H A Dnetwork.c622 * @sk: Pointer to "struct sock".
626 static u8 tomoyo_sock_family(struct sock *sk)
646 * @sock: Pointer to "struct socket".
650 int tomoyo_socket_listen_permission(struct socket *sock) argument
653 const u8 family = tomoyo_sock_family(sock->sk);
654 const unsigned int type = sock->type;
661 const int error = sock->ops->getname(sock, (struct sockaddr *)
680 * @sock: Pointer to "struct socket".
686 int tomoyo_socket_connect_permission(struct socket *sock, argument
723 tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr, int addr_len) argument
758 tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, int size) argument
[all...]
/linux-master/net/rose/
H A Drose_in.c25 #include <net/sock.h>
37 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
74 static int rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
102 static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m)
213 static int rose_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype)
251 static int rose_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype)
263 int rose_process_rx_frame(struct sock *sk, struct sk_buff *skb)
/linux-master/drivers/net/vxlan/
H A Dvxlan_multicast.c8 #include <net/sock.h>
23 struct sock *sk;
32 sk = sock4->sock->sk;
40 sk = sock6->sock->sk;
57 struct sock *sk;
66 sk = sock4->sock->sk;
74 sk = sock6->sock->sk;
/linux-master/drivers/target/iscsi/
H A Discsi_target_nego.c15 #include <net/sock.h>
16 #include <trace/events/sock.h>
383 static void iscsi_target_sk_data_ready(struct sock *sk)
423 static void iscsi_target_sk_state_change(struct sock *);
427 struct sock *sk;
429 if (!conn->sock)
432 sk = conn->sock->sk;
449 struct sock *sk;
451 if (!conn->sock)
454 sk = conn->sock
[all...]
/linux-master/net/ipv6/
H A Dinet6_connection_sock.c23 #include <net/sock.h>
27 struct dst_entry *inet6_csk_route_req(const struct sock *sk,
59 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr)
74 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie)
79 static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
114 int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused)
142 struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu)
/linux-master/security/apparmor/
H A Dnet.c152 struct sock *sk)
172 int aa_sk_perm(const char *op, u32 request, struct sock *sk)
190 const char *op, u32 request, struct socket *sock)
193 AA_BUG(!sock);
194 AA_BUG(!sock->sk);
196 return aa_label_sk_perm(subj_cred, label, op, request, sock->sk);
257 u32 secid, const struct sock *sk)
189 aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label, const char *op, u32 request, struct socket *sock) argument
H A DMakefile40 # Build a lower case string table of sock type names
45 quiet_cmd_make-sock = GEN $@
46 cmd_make-sock = echo "static const char *sock_type_names[] = {" >> $@ ;\
114 $(call cmd,make-sock)
/linux-master/net/unix/
H A Dunix_bpf.c6 #include <net/sock.h>
15 static int unix_msg_wait_data(struct sock *sk, struct sk_psock *psock,
41 static int __unix_recvmsg(struct sock *sk, struct msghdr *msg,
50 static int unix_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
144 int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
160 int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore)
162 struct sock *sk_pair;
/linux-master/net/can/j1939/
H A Dj1939-priv.h13 #include <net/sock.h>
187 void j1939_sk_send_loop_abort(struct sock *sk, int err);
215 int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk);
219 void j1939_sock_pending_del(struct sock *sk);
235 struct sock *sk;
292 struct sock sk; /* must be first to skip with memset */
321 static inline struct j1939_sock *j1939_sk(const struct sock *sk)
/linux-master/net/can/
H A Disotp.c72 #include <net/sock.h>
150 struct sock sk;
175 static inline struct isotp_sock *isotp_sk(const struct sock *sk)
195 struct sock *sk = &so->sk;
212 static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus)
277 static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk)
363 struct sock *sk = &so->sk;
443 static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen,
476 static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae)
549 static int isotp_rcv_cf(struct sock *s
936 isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) argument
1127 isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument
1171 isotp_release(struct socket *sock) argument
1246 isotp_bind(struct socket *sock, struct sockaddr *uaddr, int len) argument
1354 isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
1372 isotp_setsockopt_locked(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1470 isotp_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1486 isotp_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
1653 isotp_poll(struct file *file, struct socket *sock, poll_table *wait) argument
1668 isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/net/x25/
H A Dx25_subr.c27 #include <net/sock.h>
34 void x25_clear_queues(struct sock *sk)
51 void x25_frames_acked(struct sock *sk, unsigned short nr)
68 void x25_requeue_frames(struct sock *sk)
90 int x25_validate_nr(struct sock *sk, unsigned short nr)
109 void x25_write_internal(struct sock *sk, int frametype)
260 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q,
338 void x25_disconnect(struct sock *sk, int reason, unsigned char cause,
372 void x25_check_rbuf(struct sock *sk)
/linux-master/net/l2tp/
H A Dl2tp_debugfs.c18 #include <net/sock.h>
141 if (tunnel->sock) {
142 struct inet_sock *inet = inet_sk(tunnel->sock);
145 if (tunnel->sock->sk_family == AF_INET6) {
146 const struct ipv6_pinfo *np = inet6_sk(tunnel->sock);
149 &np->saddr, &tunnel->sock->sk_v6_daddr);
152 if (tunnel->sock->sk_family == AF_INET)
165 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0,
/linux-master/net/rds/
H A Dtcp_recv.c36 #include <trace/events/sock.h>
262 /* the caller has to hold the sock lock */
266 struct socket *sock = tc->t_sock; local
277 tcp_read_sock(sock->sk, &desc, rds_tcp_data_recv);
285 * We hold the sock lock to serialize our rds_tcp_recv->tcp_read_sock from
294 struct socket *sock = tc->t_sock; local
297 rdsdebug("recv worker path [%d] tc %p sock %p\n",
298 cp->cp_index, tc, sock);
300 lock_sock(sock->sk);
302 release_sock(sock
[all...]
/linux-master/net/xdp/
H A Dxskmap.c169 struct socket *sock; local
177 sock = sockfd_lookup(fd, &err);
178 if (!sock)
181 if (sock->sk->sk_family != PF_XDP) {
182 sockfd_put(sock);
186 xs = (struct xdp_sock *)sock->sk;
191 sockfd_put(sock);
212 sockfd_put(sock);
217 sockfd_put(sock);
/linux-master/net/packet/
H A Daf_packet.c71 #include <net/sock.h>
173 static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
213 static void packet_flush_mclist(struct sock *sk);
243 static void __fanout_unlink(struct sock *sk, struct packet_sock *po);
244 static void __fanout_link(struct sock *sk, struct packet_sock *po);
336 static void __register_prot_hook(struct sock *sk)
351 static void register_prot_hook(struct sock *sk)
363 static void __unregister_prot_hook(struct sock *sk, bool sync)
385 static void unregister_prot_hook(struct sock *sk, bool sync)
805 struct sock *s
1928 packet_parse_headers(struct sk_buff *skb, struct socket *sock) argument
1952 packet_sendmsg_spkt(struct socket *sock, struct msghdr *msg, size_t len) argument
2578 struct socket *sock = po->sk.sk_socket; local
2943 packet_snd(struct socket *sock, struct msghdr *msg, size_t len) argument
3102 packet_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
3121 packet_release(struct socket *sock) argument
3287 packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument
3308 packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument
3335 packet_create(struct net *net, struct socket *sock, int protocol, int kern) argument
3413 packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
3562 packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, int peer) argument
3582 packet_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
3767 packet_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
4039 packet_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
4218 packet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
4266 packet_poll(struct file *file, struct socket *sock, poll_table *wait) argument
4298 struct socket *sock = file->private_data; local
4308 struct socket *sock = file->private_data; local
4555 packet_mmap(struct file *file, struct socket *sock, struct vm_area_struct *vma) argument
[all...]
/linux-master/net/bluetooth/bnep/
H A Dbnep.h110 int sock; /* Connected socket */ member in struct:bnep_connadd_req
139 int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock);
160 struct socket *sock; member in struct:bnep_session
/linux-master/include/linux/
H A Datalk.h6 #include <net/sock.h>
36 /* struct sock has to be the first member of atalk_sock */
37 struct sock sk;
46 static inline struct atalk_sock *at_sk(struct sock *sk)
/linux-master/include/net/iucv/
H A Daf_iucv.h114 struct sock sk;
123 struct sock *parent;
138 void (*sk_txnotify)(struct sock *sk,
/linux-master/net/phonet/
H A Daf_phonet.c17 #include <net/sock.h>
50 static int pn_socket_create(struct net *net, struct socket *sock, int protocol, argument
53 struct sock *sk;
63 switch (sock->type) {
82 if (sock->type != pnp->sock_type) {
93 sock_init_data(sock, sk);
94 sock->state = SS_UNCONNECTED;
95 sock->ops = pnp->ops;
224 int pn_skb_send(struct sock *sk, struct sk_buff *skb,
252 struct sock *s
[all...]
/linux-master/samples/bpf/
H A Dsock_example.c38 int sock = -1, map_fd, prog_fd, i, key; local
75 sock = open_raw_sock("lo");
77 if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c81 struct sock *sk;
84 static int bpf_test_sockopt_flip(void *ctx, struct sock *sk,
111 static int bpf_test_sockopt_int(void *ctx, struct sock *sk,
196 struct sock *sk;
244 static int bpf_test_sockopt(void *ctx, struct sock *sk)
316 static int test_tcp_maxseg(void *ctx, struct sock *sk)
331 static int test_tcp_saved_syn(void *ctx, struct sock *sk)
345 int BPF_PROG(socket_post_create, struct socket *sock, int family, argument
348 struct sock *sk = sock
[all...]
/linux-master/arch/um/drivers/
H A Dharddog_kern.c67 char *sock = NULL; local
78 sock = mconsole_notify_socket();
80 err = start_watchdog(&harddog_in_fd, &harddog_out_fd, sock);

Completed in 247 milliseconds

<<11121314151617181920>>