Searched refs:sock (Results 226 - 250 of 1083) sorted by relevance

1234567891011>>

/linux-master/samples/bpf/
H A Dsockex1_user.c17 int i, sock, err; local
36 sock = open_raw_sock("lo");
38 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
H A Dsockex2_user.c22 int i, sock, err; local
40 sock = open_raw_sock("lo");
42 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_unix.c10 static long sock_i_ino(const struct sock *sk)
28 struct sock *sk = (struct sock *)unix_sk;
H A Dbpf_dctcp.c61 void BPF_PROG(dctcp_init, struct sock *sk)
108 __u32 BPF_PROG(dctcp_ssthresh, struct sock *sk)
118 void BPF_PROG(dctcp_update_alpha, struct sock *sk, __u32 flags)
147 static __always_inline void dctcp_react_to_loss(struct sock *sk)
157 void BPF_PROG(dctcp_state, struct sock *sk, __u8 new_state)
167 static __always_inline void dctcp_ece_ack_cwr(struct sock *sk, __u32 ce_state)
183 void dctcp_ece_ack_update(struct sock *sk, enum tcp_ca_event evt,
205 void BPF_PROG(dctcp_cwnd_event, struct sock *sk, enum tcp_ca_event ev)
224 __u32 BPF_PROG(dctcp_cwnd_undo, struct sock *sk)
231 extern void tcp_reno_cong_avoid(struct sock *s
[all...]
/linux-master/include/linux/
H A Dif_tap.h5 #include <net/sock.h>
58 * tap_proto is used to allocate queues through the sock allocation
64 struct sock sk;
65 struct socket sock; member in struct:tap_queue
H A Dnetfilter_ipv6.h45 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
57 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
58 int (*output)(struct net *, struct sock *, struct sk_buff *));
61 int (*br_fragment)(struct net *net, struct sock *sk,
64 int (*output)(struct net *, struct sock *sk,
119 int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
121 int (*output)(struct net *, struct sock *sk,
125 static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk,
128 int (*output)(struct net *, struct sock *sk,
146 int ip6_route_me_harder(struct net *net, struct sock *s
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dudp_limit.c22 skel->links.sock = bpf_program__attach_cgroup(skel->progs.sock, cgroup_fd);
23 if (!ASSERT_OK_PTR(skel->links.sock, "cg_attach_sock"))
/linux-master/net/phonet/
H A Dpep-gprs.c16 #include <net/sock.h>
22 #include <trace/events/sock.h>
27 struct sock *sk;
28 void (*old_state_change)(struct sock *);
29 void (*old_data_ready)(struct sock *);
30 void (*old_write_space)(struct sock *);
65 static void gprs_state_change(struct sock *sk)
138 static void gprs_data_ready(struct sock *sk)
151 static void gprs_write_space(struct sock *sk)
180 struct sock *s
[all...]
/linux-master/net/qrtr/
H A Daf_qrtr.c13 #include <net/sock.h>
91 struct sock sk;
96 static inline struct qrtr_sock *qrtr_sk(struct sock *sk)
779 static int __qrtr_bind(struct socket *sock, argument
782 struct qrtr_sock *ipc = qrtr_sk(sock->sk);
783 struct sock *sk = sock->sk;
811 static int qrtr_autobind(struct socket *sock) argument
813 struct sock *sk = sock
827 qrtr_bind(struct socket *sock, struct sockaddr *saddr, int len) argument
900 qrtr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1031 qrtr_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument
1087 qrtr_connect(struct socket *sock, struct sockaddr *saddr, int len, int flags) argument
1118 qrtr_getname(struct socket *sock, struct sockaddr *saddr, int peer) argument
1145 qrtr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1205 qrtr_release(struct socket *sock) argument
1260 qrtr_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/net/handshake/
H A Dnetlink.c17 #include <net/sock.h>
95 struct socket *sock; local
112 sock = req->hr_sk->sk_socket;
125 fd_install(fd, get_file(sock->file));
141 struct socket *sock; local
148 sock = sockfd_lookup(fd, &err);
149 if (!sock)
152 req = handshake_req_hash_lookup(sock->sk);
155 trace_handshake_cmd_done_err(net, req, sock->sk, err);
156 fput(sock
[all...]
/linux-master/drivers/xen/
H A Dpvcalls-front.c10 #include <net/sock.h>
28 .obj_size = sizeof(struct sock),
59 struct socket *sock; member in struct:sock_mapping
99 static inline struct sock_mapping *pvcalls_enter_sock(struct socket *sock) argument
107 map = (struct sock_mapping *)sock->sk->sk_send_head;
116 static inline void pvcalls_exit_sock(struct socket *sock) argument
120 map = (struct sock_mapping *)sock->sk->sk_send_head;
270 int pvcalls_front_socket(struct socket *sock) argument
284 if (sock->type != SOCK_STREAM)
311 * sock
422 pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, int addr_len, int flags) argument
541 pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
634 pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
670 pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument
723 pvcalls_front_listen(struct socket *sock, int backlog) argument
772 pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags) argument
988 pvcalls_front_poll(struct file *file, struct socket *sock, poll_table *wait) argument
1008 pvcalls_front_release(struct socket *sock) argument
[all...]
/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c16 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto) argument
18 if (*sock > 0) {
23 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
24 if (*sock < 0) {
34 static int netlink_check_answer(int sock, bool quite) argument
42 if (recv(sock, &answer, sizeof(answer), 0) < 0) {
134 static int __add_veth(int sock, uint32_t seq, const char *name, argument
177 if (send(sock, &req, req.nh.nlmsg_len, 0) < 0) {
181 return netlink_check_answer(sock, false);
197 static int __ip_addr_add(int sock, uint32_ argument
245 __ip_route_add(int sock, uint32_t seq, const char *intf, int family, union tcp_addr src, union tcp_addr dst, uint8_t vrf) argument
308 __link_set_up(int sock, uint32_t seq, const char *intf) argument
348 __add_vrf(int sock, uint32_t seq, const char *name, uint32_t tabid, int ifindex, int nsfd) argument
[all...]
/linux-master/crypto/
H A Dalgif_aead.c37 #include <net/sock.h>
44 static inline bool aead_sufficient_data(struct sock *sk)
47 struct sock *psk = ask->parent;
61 static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) argument
63 struct sock *sk = sock->sk;
65 struct sock *psk = ask->parent;
71 return af_alg_sendmsg(sock, msg, size, ivsize);
88 static int _aead_recvmsg(struct socket *sock, struct msghdr *msg, argument
91 struct sock *s
325 aead_recvmsg(struct socket *sock, struct msghdr *msg, size_t ignored, int flags) argument
377 aead_check_key(struct socket *sock) argument
412 aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg, size_t size) argument
424 aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg, size_t ignored, int flags) argument
[all...]
/linux-master/net/l2tp/
H A Dl2tp_ppp.c80 #include <net/sock.h>
120 struct sock __rcu *sk; /* Pointer to the session PPPoX socket */
121 struct sock *__sk; /* Copy of .sk, for cleanup */
137 static struct sock *pppol2tp_session_get_sock(struct l2tp_session *session)
140 struct sock *sk;
153 static inline struct l2tp_session *pppol2tp_sock_to_session(struct sock *sk)
182 static int pppol2tp_recvmsg(struct socket *sock, struct msghdr *msg, argument
187 struct sock *sk = sock->sk;
215 struct sock *s
265 pppol2tp_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len) argument
424 pppol2tp_release(struct socket *sock) argument
499 pppol2tp_create(struct net *net, struct socket *sock, int kern) argument
714 pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr, int sockaddr_len, int flags) argument
902 pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
1063 pppol2tp_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1238 pppol2tp_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1344 pppol2tp_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
[all...]
/linux-master/net/tipc/
H A Dsocket.c40 #include <trace/events/sock.h>
70 struct sockaddr_tipc sock; member in struct:sockaddr_pair
110 struct sock sk;
144 static int tipc_sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
145 static void tipc_data_ready(struct sock *sk);
146 static void tipc_write_space(struct sock *sk);
147 static void tipc_sock_destruct(struct sock *sk);
148 static int tipc_release(struct socket *sock);
149 static int tipc_accept(struct socket *sock, struct socket *new_sock, int flags,
158 static int __tipc_sendstream(struct socket *sock, struc
403 tipc_sk_sock_err(struct socket *sock, long *timeout) argument
460 tipc_sk_create(struct net *net, struct socket *sock, int protocol, int kern) argument
550 __tipc_shutdown(struct socket *sock, int error) argument
626 tipc_release(struct socket *sock) argument
676 __tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen) argument
705 tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen) argument
715 tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen) argument
746 tipc_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
791 tipc_poll(struct file *file, struct socket *sock, poll_table *wait) argument
843 tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua, struct msghdr *msg, size_t dlen, long timeout) argument
957 tipc_send_group_unicast(struct socket *sock, struct msghdr *m, int dlen, long timeout) argument
1001 tipc_send_group_anycast(struct socket *sock, struct msghdr *m, int dlen, long timeout) argument
1083 tipc_send_group_bcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) argument
1157 tipc_send_group_mcast(struct socket *sock, struct msghdr *m, int dlen, long timeout) argument
1396 tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dsz) argument
1409 __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen) argument
1544 tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dsz) argument
1556 __tipc_sendstream(struct socket *sock, struct msghdr *m, size_t dlen) argument
1651 tipc_send_packet(struct socket *sock, struct msghdr *m, size_t dsz) argument
1832 tipc_wait_for_rcvmsg(struct socket *sock, long *timeop) argument
1885 tipc_recvmsg(struct socket *sock, struct msghdr *m, size_t buflen, int flags) argument
2014 tipc_recvstream(struct socket *sock, struct msghdr *m, size_t buflen, int flags) argument
2528 tipc_wait_for_connect(struct socket *sock, long *timeo_p) argument
2572 tipc_connect(struct socket *sock, struct sockaddr *dest, int destlen, int flags) argument
2666 tipc_listen(struct socket *sock, int len) argument
2678 tipc_wait_for_accept(struct socket *sock, long timeo) argument
2719 tipc_accept(struct socket *sock, struct socket *new_sock, int flags, bool kern) argument
2799 tipc_shutdown(struct socket *sock, int how) argument
3142 tipc_setsockopt(struct socket *sock, int lvl, int opt, sockptr_t ov, unsigned int ol) argument
3236 tipc_getsockopt(struct socket *sock, int lvl, int opt, char __user *ov, int __user *ol) argument
3303 tipc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
3794 struct nlattr *sock[TIPC_NLA_SOCK_MAX + 1]; local
[all...]
/linux-master/net/mptcp/
H A Dsubflow.c14 #include <net/sock.h>
27 #include <trace/events/sock.h>
29 static void mptcp_subflow_ops_undo_override(struct sock *ssk);
44 sock_put((struct sock *)subflow_req->msk);
98 sock_put((struct sock *)msk);
106 static void subflow_init_req(struct request_sock *req, const struct sock *sk_listener)
118 static bool subflow_use_different_sport(struct mptcp_sock *msk, const struct sock *sk)
120 return inet_sk(sk)->inet_sport != inet_sk((struct sock *)msk)->inet_sport;
139 const struct sock *sk_listener,
219 ntohs(inet_sk((struct sock *)subflow_re
[all...]
H A Dtoken.c30 #include <net/sock.h>
71 struct sock *sk;
151 int mptcp_token_new_connect(struct sock *ssk)
156 struct sock *sk = subflow->conn;
176 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
184 * mptcp_token_accept - replace a req sk with full sock in token hash
195 struct sock *sk = (struct sock *)msk;
206 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain);
215 struct sock *s
[all...]
/linux-master/net/unix/
H A Ddiag.c12 #include <net/sock.h>
14 static int sk_diag_dump_name(struct sock *sk, struct sk_buff *nlskb)
27 static int sk_diag_dump_vfs(struct sock *sk, struct sk_buff *nlskb)
43 static int sk_diag_dump_peer(struct sock *sk, struct sk_buff *nlskb)
45 struct sock *peer;
61 static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb)
79 struct sock *req, *peer;
102 static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb)
117 static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb,
124 static int sk_diag_fill(struct sock *s
[all...]
/linux-master/fs/ocfs2/cluster/
H A Dtcp.h15 #include <net/sock.h>
52 static inline int o2net_link_down(int err, struct socket *sock) argument
54 if (sock) {
55 if (sock->sk->sk_state != TCP_ESTABLISHED &&
56 sock->sk->sk_state != TCP_CLOSE_WAIT)
/linux-master/net/ipv6/
H A Dinet6_hashtables.c48 struct sock *__inet6_lookup_established(struct net *net,
56 struct sock *sk;
91 static inline int compute_score(struct sock *sk, struct net *net,
126 * the selected sock or an error.
128 struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,
136 struct sock *reuse_sk = NULL;
149 static struct sock *inet6_lhash2_lookup(struct net *net,
156 struct sock *sk, *result = NULL;
176 struct sock *inet6_lookup_run_sk_looku
[all...]
/linux-master/net/ipv4/
H A Dtcp_bbr.c204 static void bbr_check_probe_rtt_done(struct sock *sk);
207 static bool bbr_full_bw_reached(const struct sock *sk)
215 static u32 bbr_max_bw(const struct sock *sk)
223 static u32 bbr_bw(const struct sock *sk)
233 static u16 bbr_extra_acked(const struct sock *sk)
244 static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain)
256 static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain)
266 static void bbr_init_pacing_rate_from_rtt(struct sock *sk)
286 static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain)
299 __bpf_kfunc static u32 bbr_min_tso_segs(struct sock *s
[all...]
/linux-master/net/dccp/
H A Dminisocks.c15 #include <net/sock.h>
32 void dccp_time_wait(struct sock *sk, int state, int timeo)
78 struct sock *dccp_create_openreq_child(const struct sock *sk,
88 struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
143 struct sock *dccp_check_req(struct sock *sk, struct sk_buff *skb,
146 struct sock *child = NULL;
220 int dccp_child_process(struct sock *parent, struct sock *chil
[all...]
/linux-master/net/bluetooth/
H A Diso.c31 struct sock *sk;
43 static void iso_sock_close(struct sock *sk);
44 static void iso_sock_kill(struct sock *sk);
82 static bool iso_match_sid(struct sock *sk, void *data);
83 static bool iso_match_sync_handle(struct sock *sk, void *data);
84 static void iso_sock_disconn(struct sock *sk);
86 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data);
88 static struct sock *iso_get_sock_listen(bdaddr_t *src, bdaddr_t *dst,
99 struct sock *sk;
110 BT_DBG("sock
844 iso_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) argument
865 iso_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
887 iso_sock_bind_bc(struct socket *sock, struct sockaddr *addr, int addr_len) argument
966 iso_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument
1023 iso_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) argument
1151 iso_sock_listen(struct socket *sock, int backlog) argument
1188 iso_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument
1243 iso_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) argument
1264 iso_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1374 iso_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
1499 iso_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) argument
1585 iso_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
1656 iso_sock_shutdown(struct socket *sock, int how) argument
1701 iso_sock_release(struct socket *sock) argument
[all...]
H A Dhci_sock.c63 static struct hci_dev *hci_hdev_from_sock(struct sock *sk)
74 void hci_sock_set_flag(struct sock *sk, int nr)
79 void hci_sock_clear_flag(struct sock *sk, int nr)
84 int hci_sock_test_flag(struct sock *sk, int nr)
89 unsigned short hci_sock_get_channel(struct sock *sk)
94 u32 hci_sock_get_cookie(struct sock *sk)
99 static bool hci_sock_gen_cookie(struct sock *sk)
116 static void hci_sock_free_cookie(struct sock *sk)
165 static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
205 struct sock *s
894 hci_sock_release(struct socket *sock) argument
1039 hci_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1169 hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1184 hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) argument
1484 hci_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) argument
1552 hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) argument
1794 hci_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1931 hci_sock_setsockopt_old(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int len) argument
2010 hci_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int len) argument
2058 hci_sock_getsockopt_old(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
2124 hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument
2193 hci_sock_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/net/sunrpc/
H A Dsocklib.c206 static inline int xprt_sendmsg(struct socket *sock, struct msghdr *msg, argument
211 return sock_sendmsg(sock, msg);
214 static int xprt_send_kvec(struct socket *sock, struct msghdr *msg, argument
218 return xprt_sendmsg(sock, msg, seek);
221 static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg, argument
226 return xprt_sendmsg(sock, msg, base + xdr->page_base);
234 static int xprt_send_rm_and_kvec(struct socket *sock, struct msghdr *msg, argument
248 return xprt_sendmsg(sock, msg, base);
253 * @sock: open socket to send on
262 * %-ENOTSOCK if @sock i
264 xprt_sock_sendmsg(struct socket *sock, struct msghdr *msg, struct xdr_buf *xdr, unsigned int base, rpc_fraghdr marker, unsigned int *sent_p) argument
[all...]

Completed in 204 milliseconds

1234567891011>>