Home
last modified time | relevance | path

Searched refs:sock (Results 701 - 725 of 2554) sorted by relevance

1...<<21222324252627282930>>...103

/kernel/linux/linux-6.6/net/ipv4/
H A Dudp_bpf.c5 #include <net/sock.h>
13 static int sk_udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in sk_udp_recvmsg()
23 static bool udp_sk_has_data(struct sock *sk) in udp_sk_has_data()
38 static int udp_msg_wait_data(struct sock *sk, struct sk_psock *psock, in udp_msg_wait_data()
62 static int udp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in udp_bpf_recvmsg()
141 int udp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in udp_bpf_update_proto()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Ddpp_tcp.c31 int sock; member
70 int sock; member
80 static void dpp_conn_tx_ready(int sock, void *eloop_ctx, void *sock_ctx);
90 if (conn->sock >= 0) { in dpp_connection_free()
92 conn->sock); in dpp_connection_free()
93 eloop_unregister_sock(conn->sock, EVENT_TYPE_READ); in dpp_connection_free()
94 eloop_unregister_sock(conn->sock, EVENT_TYPE_WRITE); in dpp_connection_free()
95 close(conn->sock); in dpp_connection_free()
204 eloop_unregister_sock(conn->sock, EVENT_TYPE_WRITE); in dpp_tcp_send()
208 res = send(conn->sock, in dpp_tcp_send()
329 dpp_conn_tx_ready(int sock, void *eloop_ctx, void *sock_ctx) dpp_conn_tx_ready() argument
[all...]
/kernel/linux/linux-6.6/net/tls/
H A Dtls_sw.c47 #include <trace/events/sock.h>
63 struct sock *sk;
71 noinline void tls_err_abort(struct sock *sk, int err) in tls_err_abort()
197 struct sock *sk; in tls_decrypt_done()
252 static int tls_do_decryption(struct sock *sk, in tls_do_decryption()
307 static void tls_trim_both_msgs(struct sock *sk, int target_size) in tls_trim_both_msgs()
320 static int tls_alloc_encrypted_msg(struct sock *sk, int len) in tls_alloc_encrypted_msg()
330 static int tls_clone_plaintext_msg(struct sock *sk, int required) in tls_clone_plaintext_msg()
354 static struct tls_rec *tls_get_rec(struct sock *sk) in tls_get_rec()
388 static void tls_free_rec(struct sock *s
1249 tls_sw_splice_eof(struct socket *sock) tls_sw_splice_eof() argument
2172 tls_sw_splice_read(struct socket *sock, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags) tls_sw_splice_read() argument
[all...]
/kernel/linux/linux-5.10/net/xdp/
H A Dxskmap.c169 struct socket *sock; in xsk_map_update_elem() local
177 sock = sockfd_lookup(fd, &err); in xsk_map_update_elem()
178 if (!sock) in xsk_map_update_elem()
181 if (sock->sk->sk_family != PF_XDP) { in xsk_map_update_elem()
182 sockfd_put(sock); in xsk_map_update_elem()
186 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem()
191 sockfd_put(sock); in xsk_map_update_elem()
212 sockfd_put(sock); in xsk_map_update_elem()
217 sockfd_put(sock); in xsk_map_update_elem()
/kernel/linux/linux-5.10/net/x25/
H A Dx25_subr.c27 #include <net/sock.h>
34 void x25_clear_queues(struct sock *sk) in x25_clear_queues()
51 void x25_frames_acked(struct sock *sk, unsigned short nr) in x25_frames_acked()
68 void x25_requeue_frames(struct sock *sk) in x25_requeue_frames()
90 int x25_validate_nr(struct sock *sk, unsigned short nr) in x25_validate_nr()
109 void x25_write_internal(struct sock *sk, int frametype) in x25_write_internal()
260 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode()
338 void x25_disconnect(struct sock *sk, int reason, unsigned char cause, in x25_disconnect()
372 void x25_check_rbuf(struct sock *sk) in x25_check_rbuf()
/kernel/linux/linux-5.10/include/trace/events/
H A Dtcp.h52 TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
97 TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
108 TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
120 TP_PROTO(struct sock *sk),
165 TP_PROTO(struct sock *sk),
172 TP_PROTO(struct sock *sk),
179 TP_PROTO(struct sock *sk),
186 TP_PROTO(const struct sock *sk, const struct request_sock *req),
231 TP_PROTO(struct sock *sk, struct sk_buff *skb),
/kernel/linux/linux-5.10/net/l2tp/
H A Dl2tp_debugfs.c18 #include <net/sock.h>
143 if (tunnel->sock) { in l2tp_dfs_seq_tunnel_show()
144 struct inet_sock *inet = inet_sk(tunnel->sock); in l2tp_dfs_seq_tunnel_show()
147 if (tunnel->sock->sk_family == AF_INET6) { in l2tp_dfs_seq_tunnel_show()
148 const struct ipv6_pinfo *np = inet6_sk(tunnel->sock); in l2tp_dfs_seq_tunnel_show()
151 &np->saddr, &tunnel->sock->sk_v6_daddr); in l2tp_dfs_seq_tunnel_show()
154 if (tunnel->sock->sk_family == AF_INET) in l2tp_dfs_seq_tunnel_show()
167 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Dcrypto.c30 lock_sock(tcp->sock->sk); in tls_crypto_set_key()
31 ctx = tls_get_ctx(tcp->sock->sk); in tls_crypto_set_key()
53 release_sock(tcp->sock->sk); in tls_crypto_set_key()
66 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TCP, TCP_ULP, in tls_crypto_info_init()
85 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TLS, TLS_TX, in tls_crypto_info_init()
109 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TLS, TLS_RX, in tls_crypto_info_init()
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Dcrypto.c30 lock_sock(tcp->sock->sk); in tls_crypto_set_key()
31 ctx = tls_get_ctx(tcp->sock->sk); in tls_crypto_set_key()
53 release_sock(tcp->sock->sk); in tls_crypto_set_key()
66 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TCP, TCP_ULP, in tls_crypto_info_init()
85 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TLS, TLS_TX, in tls_crypto_info_init()
109 ret = tcp->sock->ops->setsockopt(tcp->sock, SOL_TLS, TLS_RX, in tls_crypto_info_init()
/kernel/linux/linux-6.6/kernel/bpf/
H A Dreuseport_array.c13 struct sock __rcu *ptrs[];
22 void bpf_sk_reuseport_detach(struct sock *sk) in bpf_sk_reuseport_detach()
24 struct sock __rcu **socks; in bpf_sk_reuseport_detach()
66 struct sock *sk; in reuseport_array_delete_elem()
97 struct sock *sk; in reuseport_array_free()
168 struct sock *sk; in bpf_fd_reuseport_array_lookup_elem()
189 const struct sock *nsk, in reuseport_array_update_check()
190 const struct sock *osk, in reuseport_array_update_check()
236 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem()
/kernel/linux/linux-6.6/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; in rds_tcp_read_sock() local
277 tcp_read_sock(sock->sk, &desc, rds_tcp_data_recv); in rds_tcp_read_sock()
285 * We hold the sock lock to serialize our rds_tcp_recv->tcp_read_sock from
294 struct socket *sock = tc->t_sock; in rds_tcp_recv_path() local
297 rdsdebug("recv worker path [%d] tc %p sock %p\n", in rds_tcp_recv_path()
298 cp->cp_index, tc, sock); in rds_tcp_recv_path()
300 lock_sock(sock->sk); in rds_tcp_recv_path()
302 release_sock(sock in rds_tcp_recv_path()
[all...]
/kernel/linux/linux-6.6/net/xdp/
H A Dxskmap.c169 struct socket *sock; in xsk_map_update_elem() local
177 sock = sockfd_lookup(fd, &err); in xsk_map_update_elem()
178 if (!sock) in xsk_map_update_elem()
181 if (sock->sk->sk_family != PF_XDP) { in xsk_map_update_elem()
182 sockfd_put(sock); in xsk_map_update_elem()
186 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem()
191 sockfd_put(sock); in xsk_map_update_elem()
212 sockfd_put(sock); in xsk_map_update_elem()
217 sockfd_put(sock); in xsk_map_update_elem()
/kernel/linux/linux-6.6/net/l2tp/
H A Dl2tp_debugfs.c18 #include <net/sock.h>
141 if (tunnel->sock) { in l2tp_dfs_seq_tunnel_show()
142 struct inet_sock *inet = inet_sk(tunnel->sock); in l2tp_dfs_seq_tunnel_show()
145 if (tunnel->sock->sk_family == AF_INET6) { in l2tp_dfs_seq_tunnel_show()
146 const struct ipv6_pinfo *np = inet6_sk(tunnel->sock); in l2tp_dfs_seq_tunnel_show()
149 &np->saddr, &tunnel->sock->sk_v6_daddr); in l2tp_dfs_seq_tunnel_show()
152 if (tunnel->sock->sk_family == AF_INET) in l2tp_dfs_seq_tunnel_show()
165 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/kernel/linux/linux-6.6/net/x25/
H A Dx25_subr.c27 #include <net/sock.h>
34 void x25_clear_queues(struct sock *sk) in x25_clear_queues()
51 void x25_frames_acked(struct sock *sk, unsigned short nr) in x25_frames_acked()
68 void x25_requeue_frames(struct sock *sk) in x25_requeue_frames()
90 int x25_validate_nr(struct sock *sk, unsigned short nr) in x25_validate_nr()
109 void x25_write_internal(struct sock *sk, int frametype) in x25_write_internal()
260 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode()
338 void x25_disconnect(struct sock *sk, int reason, unsigned char cause, in x25_disconnect()
372 void x25_check_rbuf(struct sock *sk) in x25_check_rbuf()
/test/xts/acts/pcs/pcs_ndk/entry/src/main/cpp/
H A DpcsNetworkTest.cpp98 int sock = socket(AF_INET, SOCK_STREAM, PARAM_0); in Connect() local
99 if (sock >= PARAM_0) { in Connect()
105 ret = connect(sock, reinterpret_cast<sockaddr *>(static_cast<struct sockaddr_in *>(&server)), in Connect()
109 close(sock); in Connect()
135 int sock = socket(AF_INET, SOCK_STREAM, PARAM_0); in Send() local
136 if (sock >= PARAM_0) { in Send()
143 conn = connect(sock, reinterpret_cast<sockaddr *>(static_cast<struct sockaddr_in *>(&server)), in Send()
147 ret = send(sock, sendBuf, sizeof(sendBuf), PARAM_0); in Send()
149 close(sock); in Send()
/third_party/toybox/porting/liteos_a/toys/net/
H A Dping.c48 int sock;
152 TT.sock = socket(ai->ai_family, SOCK_RAW, in ping_main()
155 if (TT.sock == -1) { in ping_main()
163 if (TT.I) xbind(TT.sock, sa, sizeof(srcaddr)); in ping_main()
168 xsetsockopt(TT.sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)); in ping_main()
175 xsetsockopt(TT.sock, IPPROTO_IP, IP_TTL, &len, 4); in ping_main()
176 else xsetsockopt(TT.sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &len, 4); in ping_main()
222 xsendto(TT.sock, toybuf, TT.s+sizeof(*ih), TT.sa); in ping_main()
238 len = xrecvwait(TT.sock, toybuf, sizeof(toybuf), &srcaddr2, waitms); in ping_main()
/third_party/toybox/toys/pending/
H A Dwget.c86 int sock;
137 TT.sock = xconnectany(a); in wget_connect()
167 TT.sock = xconnectany(a); in wget_connect()
177 SSL_set_fd(TT.ssl, TT.sock); in wget_connect()
188 if (WGET_IS_HTTP) return xread(TT.sock, buf, len); in wget_read()
206 xwrite(TT.sock, buf, len); in wget_write()
220 if (TT.sock) { in wget_close()
221 xclose(TT.sock); in wget_close()
222 TT.sock = 0; in wget_close()
/kernel/linux/linux-6.6/security/smack/
H A Dsmack_lsm.c1547 struct socket *sock; in smack_inode_getsecurity() local
1571 sock = SOCKET_I(ip); in smack_inode_getsecurity()
1572 if (sock == NULL || sock->sk == NULL) in smack_inode_getsecurity()
1575 ssp = sock->sk->sk_security; in smack_inode_getsecurity()
1951 struct socket *sock; in smack_file_receive() local
1962 sock = SOCKET_I(inode); in smack_file_receive()
1963 ssp = sock->sk->sk_security; in smack_file_receive()
2380 static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags) in smack_sk_alloc_security()
2412 static void smack_sk_free_security(struct sock *s
2690 smk_ipv6_port_label(struct socket *sock, struct sockaddr *address) smk_ipv6_port_label() argument
2851 struct socket *sock; smack_inode_setsecurity() local
2921 smack_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern) smack_socket_post_create() argument
2978 smack_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) smack_socket_bind() argument
3001 smack_socket_connect(struct socket *sock, struct sockaddr *sap, int addrlen) smack_socket_connect() argument
3740 smack_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk) smack_unix_stream_connect() argument
3791 smack_unix_may_send(struct socket *sock, struct socket *other) smack_unix_may_send() argument
3823 smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size) smack_socket_sendmsg() argument
4160 smack_socket_getpeersec_stream(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len) smack_socket_getpeersec_stream() argument
4196 smack_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) smack_socket_getpeersec_dgram() argument
[all...]
/kernel/linux/linux-6.6/net/dccp/
H A Dipv4.c21 #include <net/sock.h>
34 struct sock *v4_ctl_sk;
41 * the Out-of-the-blue (OOTB) packets. A control sock will be created
45 int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in dccp_v4_connect()
157 static inline void dccp_do_pmtu_discovery(struct sock *sk, in dccp_do_pmtu_discovery()
200 static void dccp_do_redirect(struct sk_buff *skb, struct sock *sk) in dccp_do_redirect()
208 void dccp_req_err(struct sock *sk, u64 seq) in dccp_req_err()
252 struct sock *sk; in dccp_v4_err()
381 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb) in dccp_v4_send_check()
407 struct sock *dccp_v4_request_recv_soc
[all...]
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_socket.h5 #include <net/sock.h>
7 struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
10 struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_socket.h5 #include <net/sock.h>
7 struct sock *nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb,
10 struct sock *nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb,
/kernel/linux/linux-5.10/net/can/j1939/
H A Dj1939-priv.h13 #include <net/sock.h>
183 void j1939_sk_send_loop_abort(struct sock *sk, int err);
211 int j1939_cancel_active_session(struct j1939_priv *priv, struct sock *sk);
215 void j1939_sock_pending_del(struct sock *sk);
231 struct sock *sk;
288 struct sock sk; /* must be first to skip with memset */
317 static inline struct j1939_sock *j1939_sk(const struct sock *sk) in j1939_sk()
/kernel/linux/linux-5.10/net/ipv6/
H A Dinet6_connection_sock.c23 #include <net/sock.h>
27 struct dst_entry *inet6_csk_route_req(const struct sock *sk, in inet6_csk_route_req()
59 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr) in inet6_csk_addr2sockaddr()
74 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) in __inet6_csk_dst_check()
79 static struct dst_entry *inet6_csk_route_socket(struct sock *sk, in inet6_csk_route_socket()
114 int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused) in inet6_csk_xmit()
142 struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu) in inet6_csk_update_pmtu()
/kernel/linux/linux-6.6/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, in unix_msg_wait_data()
41 static int __unix_recvmsg(struct sock *sk, struct msghdr *msg, in __unix_recvmsg()
50 static int unix_bpf_recvmsg(struct sock *sk, struct msghdr *msg, in unix_bpf_recvmsg()
144 int unix_dgram_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in unix_dgram_bpf_update_proto()
160 int unix_stream_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore) in unix_stream_bpf_update_proto()
162 struct sock *sk_pair; in unix_stream_bpf_update_proto()
/kernel/linux/linux-6.6/security/apparmor/
H A Dnet.c152 struct sock *sk) in aa_label_sk_perm()
172 int aa_sk_perm(const char *op, u32 request, struct sock *sk) in aa_sk_perm()
190 const char *op, u32 request, struct socket *sock) in aa_sock_file_perm()
193 AA_BUG(!sock); in aa_sock_file_perm()
194 AA_BUG(!sock->sk); in aa_sock_file_perm()
196 return aa_label_sk_perm(subj_cred, label, op, request, sock->sk); in aa_sock_file_perm()
257 u32 secid, const struct sock *sk) in apparmor_secmark_check()
189 aa_sock_file_perm(const struct cred *subj_cred, struct aa_label *label, const char *op, u32 request, struct socket *sock) aa_sock_file_perm() argument

Completed in 19 milliseconds

1...<<21222324252627282930>>...103