Home
last modified time | relevance | path

Searched refs:sock (Results 651 - 675 of 2646) sorted by relevance

1...<<21222324252627282930>>...106

/kernel/linux/linux-6.6/net/sched/
H A Dem_meta.c71 #include <net/sock.h>
347 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
358 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
369 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
380 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
391 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
402 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
413 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
424 const struct sock *sk = skb_to_full_sk(skb); in META_COLLECTOR()
435 const struct sock *s in META_COLLECTOR()
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnetsys_client.h48 bool MakeNonBlock(int sock);
50 int64_t Poll(int sock, short event, int *retry);
52 bool PollSendData(int sock, const char *data, size_t size);
54 bool PollRecvData(int sock, char *data, size_t size);
/kernel/linux/linux-6.6/include/net/
H A Dhandshake.h42 bool tls_handshake_cancel(struct sock *sk);
43 void tls_handshake_close(struct socket *sock);
45 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
46 void tls_alert_recv(const struct sock *sk, const struct msghdr *msg,
/kernel/linux/linux-6.6/include/linux/sunrpc/
H A Dsvcsock.h22 struct sock * sk_sk; /* INET layer */
25 void (*sk_ostate)(struct sock *);
26 void (*sk_odata)(struct sock *);
27 void (*sk_owspace)(struct sock *);
/kernel/linux/linux-6.6/include/net/netns/
H A Dsctp.h8 struct sock;
23 * the Out-of-the-blue (OOTB) packets. A control sock will be created
26 struct sock *ctl_sock;
28 /* UDP tunneling listening sock. */
29 struct sock *udp4_sock;
30 struct sock *udp6_sock;
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_sk_storage_helpers.c30 struct socket *sock; in fill_socket_owner() local
36 sock = bpf_sock_from_file(file); in fill_socket_owner()
37 if (!sock) in fill_socket_owner()
40 sock_tgid = bpf_sk_storage_get(&sk_stg_map, sock->sk, 0, 0); in fill_socket_owner()
/third_party/libcoap/src/
H A Dcoap_io_riot.c53 coap_socket_send(coap_socket_t *sock, in coap_socket_send() argument
61 } else if (sock->flags & COAP_SOCKET_CONNECTED) { in coap_socket_send()
62 bytes_written = send(sock->fd, data, datalen, 0); in coap_socket_send()
64 bytes_written = sendto(sock->fd, data, datalen, 0, in coap_socket_send()
/kernel/linux/linux-5.10/security/
H A Dsecurity.c2038 int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
2135 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk) in security_unix_stream_connect() argument
2137 return call_int_hook(unix_stream_connect, 0, sock, other, newsk); in security_unix_stream_connect()
2141 int security_unix_may_send(struct socket *sock, struct socket *other) in security_unix_may_send() argument
2143 return call_int_hook(unix_may_send, 0, sock, other); in security_unix_may_send()
2152 int security_socket_post_create(struct socket *sock, int family, in security_socket_post_create() argument
2155 return call_int_hook(socket_post_create, 0, sock, famil in security_socket_post_create()
2165 security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen) security_socket_bind() argument
2170 security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen) security_socket_connect() argument
2175 security_socket_listen(struct socket *sock, int backlog) security_socket_listen() argument
2180 security_socket_accept(struct socket *sock, struct socket *newsock) security_socket_accept() argument
2185 security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size) security_socket_sendmsg() argument
2190 security_socket_recvmsg(struct socket *sock, struct msghdr *msg, int size, int flags) security_socket_recvmsg() argument
2196 security_socket_getsockname(struct socket *sock) security_socket_getsockname() argument
2201 security_socket_getpeername(struct socket *sock) security_socket_getpeername() argument
2206 security_socket_getsockopt(struct socket *sock, int level, int optname) security_socket_getsockopt() argument
2211 security_socket_setsockopt(struct socket *sock, int level, int optname) security_socket_setsockopt() argument
2216 security_socket_shutdown(struct socket *sock, int how) security_socket_shutdown() argument
2227 security_socket_getpeersec_stream(struct socket *sock, char __user *optval, int __user *optlen, unsigned len) security_socket_getpeersec_stream() argument
2234 security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) security_socket_getpeersec_dgram() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket.cpp68 LOG_INFO("[sock]%{public}s", __func__);
73 LOG_INFO("[sock]%{public}s", __func__);
85 LOG_INFO("[sock]%{public}s", __func__);
97 LOG_INFO("[sock]%{public}s", __func__);
109 LOG_INFO("[sock]%{public}s", __func__);
121 LOG_INFO("[sock]%{public}s", __func__);
126 LOG_INFO("[sock]%{public}s", __func__);
147 LOG_INFO("[sock]%{public}s", __func__); in OnConnectIncomingNative()
161 LOG_INFO("[sock]%{public}s", __func__); in OnConnectedNative()
180 LOG_INFO("[sock] in OnConnectedNative()
663 OnSocketReadReady(Socket &sock) OnSocketReadReady() argument
679 OnSocketWriteReady(Socket &sock) OnSocketWriteReady() argument
697 OnSocketWriteReadyNative(Socket &sock) OnSocketWriteReadyNative() argument
893 OnSocketException(Socket &sock) OnSocketException() argument
904 OnSocketExceptionNative(Socket &sock) OnSocketExceptionNative() argument
968 NotifyServiceDeleteSocket(Socket &sock) NotifyServiceDeleteSocket() argument
[all...]
/kernel/linux/linux-6.6/drivers/nvme/host/
H A Dtcp.c12 #include <net/sock.h>
17 #include <trace/events/sock.h>
44 static void nvme_tcp_reclassify_socket(struct socket *sock) in nvme_tcp_reclassify_socket() argument
46 struct sock *sk = sock->sk; in nvme_tcp_reclassify_socket()
69 static void nvme_tcp_reclassify_socket(struct socket *sock) { } in nvme_tcp_reclassify_socket() argument
117 struct socket *sock; member
152 void (*state_change)(struct sock *);
153 void (*data_ready)(struct sock *);
154 void (*write_space)(struct sock *);
1216 struct socket *sock = queue->sock; nvme_tcp_try_recv() local
1653 struct socket *sock = queue->sock; nvme_tcp_restore_sock_ops() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dudp.c135 struct sock *sk, unsigned int log) in udp_lib_lport_inuse()
137 struct sock *sk2; in udp_lib_lport_inuse()
170 struct sock *sk) in udp_lib_lport_inuse2()
172 struct sock *sk2; in udp_lib_lport_inuse2()
199 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock()
203 struct sock *sk2; in udp_reuseport_add_sock()
230 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port()
347 int udp_v4_get_port(struct sock *sk, unsigned short snum) in udp_v4_get_port()
359 static int compute_score(struct sock *sk, struct net *net, in compute_score()
415 static struct sock *lookup_reusepor
2833 udp_poll(struct file *file, struct socket *sock, poll_table *wait) udp_poll() argument
[all...]
H A Dtcp_vegas.c71 static void vegas_enable(struct sock *sk) in vegas_enable()
87 static inline void vegas_disable(struct sock *sk) in vegas_disable()
94 void tcp_vegas_init(struct sock *sk) in tcp_vegas_init()
111 void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample) in tcp_vegas_pkts_acked()
134 void tcp_vegas_state(struct sock *sk, u8 ca_state) in tcp_vegas_state()
152 void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event) in tcp_vegas_cwnd_event()
165 static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_vegas_cong_avoid()
290 size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, in tcp_vegas_get_info()
H A Dtcp_dctcp.c75 static void dctcp_init(struct sock *sk) in dctcp_init()
102 static u32 dctcp_ssthresh(struct sock *sk) in dctcp_ssthresh()
111 static void dctcp_update_alpha(struct sock *sk, u32 flags) in dctcp_update_alpha()
144 static void dctcp_react_to_loss(struct sock *sk) in dctcp_react_to_loss()
153 static void dctcp_state(struct sock *sk, u8 new_state) in dctcp_state()
163 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) in dctcp_cwnd_event()
181 static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr, in dctcp_get_info()
209 static u32 dctcp_cwnd_undo(struct sock *sk) in dctcp_cwnd_undo()
/kernel/linux/linux-5.10/security/tomoyo/
H A Dnetwork.c622 * @sk: Pointer to "struct sock".
626 static u8 tomoyo_sock_family(struct sock *sk) in tomoyo_sock_family()
646 * @sock: Pointer to "struct socket".
650 int tomoyo_socket_listen_permission(struct socket *sock) in tomoyo_socket_listen_permission() argument
653 const u8 family = tomoyo_sock_family(sock->sk); in tomoyo_socket_listen_permission()
654 const unsigned int type = sock->type; in tomoyo_socket_listen_permission()
661 const int error = sock->ops->getname(sock, (struct sockaddr *) in tomoyo_socket_listen_permission()
680 * @sock: Pointer to "struct socket".
686 int tomoyo_socket_connect_permission(struct socket *sock, in tomoyo_socket_connect_permission() argument
723 tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr, int addr_len) tomoyo_socket_bind_permission() argument
758 tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, int size) tomoyo_socket_sendmsg_permission() argument
[all...]
/kernel/linux/linux-6.6/security/tomoyo/
H A Dnetwork.c622 * @sk: Pointer to "struct sock".
626 static u8 tomoyo_sock_family(struct sock *sk) in tomoyo_sock_family()
646 * @sock: Pointer to "struct socket".
650 int tomoyo_socket_listen_permission(struct socket *sock) in tomoyo_socket_listen_permission() argument
653 const u8 family = tomoyo_sock_family(sock->sk); in tomoyo_socket_listen_permission()
654 const unsigned int type = sock->type; in tomoyo_socket_listen_permission()
661 const int error = sock->ops->getname(sock, (struct sockaddr *) in tomoyo_socket_listen_permission()
680 * @sock: Pointer to "struct socket".
686 int tomoyo_socket_connect_permission(struct socket *sock, in tomoyo_socket_connect_permission() argument
723 tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr, int addr_len) tomoyo_socket_bind_permission() argument
758 tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, int size) tomoyo_socket_sendmsg_permission() argument
[all...]
/third_party/eudev/src/libudev/
H A Dlibudev-monitor.c55 int sock; member
120 r = getsockname(udev_monitor->sock, &snl.sa, &addrlen); in monitor_set_nl_address()
163 udev_monitor->sock = socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT); in udev_monitor_new_from_netlink_fd()
164 if (udev_monitor->sock < 0) { in udev_monitor_new_from_netlink_fd()
171 udev_monitor->sock = fd; in udev_monitor_new_from_netlink_fd()
339 err = setsockopt(udev_monitor->sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)); in udev_monitor_filter_update()
365 err = bind(udev_monitor->sock, in udev_monitor_enable_receiving()
379 err = setsockopt(udev_monitor->sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)); in udev_monitor_enable_receiving()
400 return setsockopt(udev_monitor->sock, SOL_SOCKET, SO_RCVBUFFORCE, &size, sizeof(size)); in udev_monitor_set_receive_buffer_size()
407 err = close(udev_monitor->sock); in udev_monitor_disconnect()
[all...]
/kernel/linux/linux-5.10/net/can/
H A Disotp.c72 #include <net/sock.h>
137 struct sock sk;
162 static inline struct isotp_sock *isotp_sk(const struct sock *sk) in isotp_sk()
182 struct sock *sk = &so->sk; in isotp_rx_timer_handler()
199 static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus) in isotp_send_fc()
264 static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk) in isotp_rcv_skb()
350 struct sock *sk = &so->sk; in isotp_rcv_fc()
429 static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen, in isotp_rcv_sf()
462 static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae) in isotp_rcv_ff()
525 static int isotp_rcv_cf(struct sock *s
912 isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) isotp_sendmsg() argument
1093 isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) isotp_recvmsg() argument
1139 isotp_release(struct socket *sock) isotp_release() argument
1208 isotp_bind(struct socket *sock, struct sockaddr *uaddr, int len) isotp_bind() argument
1316 isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer) isotp_getname() argument
1334 isotp_setsockopt_locked(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) isotp_setsockopt_locked() argument
1432 isotp_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) isotp_setsockopt() argument
1448 isotp_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) isotp_getsockopt() argument
1610 isotp_poll(struct file *file, struct socket *sock, poll_table *wait) isotp_poll() argument
1625 isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd, unsigned long arg) isotp_sock_no_ioctlcmd() argument
[all...]
/kernel/linux/linux-6.6/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) in isotp_sk()
195 struct sock *sk = &so->sk; in isotp_rx_timer_handler()
212 static int isotp_send_fc(struct sock *sk, int ae, u8 flowstatus) in isotp_send_fc()
277 static void isotp_rcv_skb(struct sk_buff *skb, struct sock *sk) in isotp_rcv_skb()
363 struct sock *sk = &so->sk; in isotp_rcv_fc()
442 static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen, in isotp_rcv_sf()
475 static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae) in isotp_rcv_ff()
548 static int isotp_rcv_cf(struct sock *s
935 isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) isotp_sendmsg() argument
1126 isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) isotp_recvmsg() argument
1170 isotp_release(struct socket *sock) isotp_release() argument
1245 isotp_bind(struct socket *sock, struct sockaddr *uaddr, int len) isotp_bind() argument
1353 isotp_getname(struct socket *sock, struct sockaddr *uaddr, int peer) isotp_getname() argument
1371 isotp_setsockopt_locked(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) isotp_setsockopt_locked() argument
1469 isotp_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen) isotp_setsockopt() argument
1485 isotp_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) isotp_getsockopt() argument
1652 isotp_poll(struct file *file, struct socket *sock, poll_table *wait) isotp_poll() argument
1667 isotp_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd, unsigned long arg) isotp_sock_no_ioctlcmd() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_ftplib.py161 with socket.create_server((self.socket.getsockname()[0], 0)) as sock:
162 sock.settimeout(TIMEOUT)
163 port = sock.getsockname()[1]
167 conn, addr = sock.accept()
179 family=socket.AF_INET6) as sock:
180 sock.settimeout(TIMEOUT)
181 port = sock.getsockname()[1]
183 conn, addr = sock.accept()
588 # Ensure the connection gets closed; sock attribute should be None
589 self.assertEqual(self.client.sock, Non
[all...]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dsockets.h223 #define SOCK_IS_NONBLOCKING(sock) (((sock)->flags & SOCK_FLAG_NON_BLOCKING) != 0)
224 #define SOCK_IS_BLOCKING(sock) (((sock)->flags & SOCK_FLAG_NON_BLOCKING) == 0)
233 void SockSetNonblocking(struct FtSocket *sock, FILLP_INT val);
241 FILLP_INT SysArchSetSockRcvbuf(FILLP_INT sock, FILLP_UINT size);
242 FILLP_INT SysArchSetSockSndbuf(FILLP_INT sock, FILLP_UINT size);
243 FILLP_INT SysArchSetSockBlocking(FILLP_INT sock, FILLP_BOOL blocking);
/kernel/linux/linux-5.10/net/netrom/
H A Dnr_subr.c20 #include <net/sock.h>
31 void nr_clear_queues(struct sock *sk) in nr_clear_queues()
46 void nr_frames_acked(struct sock *sk, unsigned short nr) in nr_frames_acked()
68 void nr_requeue_frames(struct sock *sk) in nr_requeue_frames()
85 int nr_validate_nr(struct sock *sk, unsigned short nr) in nr_validate_nr()
101 int nr_in_rx_window(struct sock *sk, unsigned short ns) in nr_in_rx_window()
119 void nr_write_internal(struct sock *sk, int frametype) in nr_write_internal()
260 void nr_disconnect(struct sock *sk, int reason) in nr_disconnect()
/kernel/linux/linux-5.10/security/apparmor/
H A Dnet.c146 struct sock *sk) in aa_label_sk_perm()
164 int aa_sk_perm(const char *op, u32 request, struct sock *sk) in aa_sk_perm()
182 struct socket *sock) in aa_sock_file_perm()
185 AA_BUG(!sock); in aa_sock_file_perm()
186 AA_BUG(!sock->sk); in aa_sock_file_perm()
188 return aa_label_sk_perm(label, op, request, sock->sk); in aa_sock_file_perm()
214 struct common_audit_data *sa, struct sock *sk) in aa_secmark_perm()
247 u32 secid, struct sock *sk) in apparmor_secmark_check()
181 aa_sock_file_perm(struct aa_label *label, const char *op, u32 request, struct socket *sock) aa_sock_file_perm() argument
/kernel/linux/linux-5.10/include/linux/
H A Datmdev.h13 #include <net/sock.h>
93 /* struct sock has to be the first member of atm_vcc */
94 struct sock sk;
125 static inline struct atm_vcc *atm_sk(struct sock *sk) in atm_sk()
130 static inline struct atm_vcc *ATM_SD(struct socket *sock) in ATM_SD() argument
132 return atm_sk(sock->sk); in ATM_SD()
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm()
137 return (struct sock *)vcc; in sk_atm()
232 void vcc_insert_socket(struct sock *sk);
239 * Because ATM skbs may not belong to a sock (an in atm_account_tx()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Datmdev.h13 #include <net/sock.h>
93 /* struct sock has to be the first member of atm_vcc */
94 struct sock sk;
125 static inline struct atm_vcc *atm_sk(struct sock *sk) in atm_sk()
130 static inline struct atm_vcc *ATM_SD(struct socket *sock) in ATM_SD() argument
132 return atm_sk(sock->sk); in ATM_SD()
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm()
137 return (struct sock *)vcc; in sk_atm()
233 void vcc_insert_socket(struct sock *sk);
240 * Because ATM skbs may not belong to a sock (an in atm_account_tx()
[all...]
/kernel/linux/linux-6.6/tools/power/x86/intel-speed-select/
H A Dhfi-events.c246 struct nl_sock *sock; in hfi_main() local
256 sock = nl_socket_alloc(); in hfi_main()
257 if (!sock) { in hfi_main()
262 if (genl_connect(sock)) { in hfi_main()
267 drv.nl_handle = sock; in hfi_main()
281 if (nl_socket_add_membership(sock, mcast_id)) { in hfi_main()
292 err = nl_recvmsgs(sock, cb); in hfi_main()
300 nl_socket_free(sock); in hfi_main()

Completed in 28 milliseconds

1...<<21222324252627282930>>...106