/kernel/linux/linux-6.6/include/net/ |
H A D | kcm.h | 12 #include <net/sock.h> 59 struct sock sk; 90 struct sock *sk; 99 void (*save_state_change)(struct sock *sk); 100 void (*save_data_ready)(struct sock *sk); 101 void (*save_write_space)(struct sock *sk);
|
H A D | handshake.h | 42 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/net/handshake/ |
H A D | alert.c | 17 #include <net/sock.h> 28 * @sock: open kTLS socket to send on 34 int tls_alert_send(struct socket *sock, u8 level, u8 description) in tls_alert_send() argument 44 trace_tls_alert_send(sock->sk, level, description); in tls_alert_send() 63 ret = sock_sendmsg(sock, &msg); in tls_alert_send() 74 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *cmsg) in tls_get_record_type() 97 void tls_alert_recv(const struct sock *sk, const struct msghdr *msg, in tls_alert_recv()
|
/third_party/lwip/src/core/distributed_net/ |
H A D | udp_transmit.c | 63 ssize_t udp_transmit_sendto(int sock, const void *buf, size_t buf_len, const struct sockaddr_in *dest_addr) in udp_transmit_sendto() argument 93 return lwip_sendmsg_internal(sock, &send_hdr, 0); in udp_transmit_sendto() 95 return lwip_sendmsg(sock, &send_hdr, 0); in udp_transmit_sendto() 99 ssize_t udp_transmit_sendmsg(int sock, const struct msghdr *hdr) in udp_transmit_sendmsg() argument 139 ssize_t ret = lwip_sendmsg_internal(sock, &send_hdr, 0); in udp_transmit_sendmsg() 141 ssize_t ret = lwip_sendmsg(sock, &send_hdr, 0); in udp_transmit_sendmsg()
|
/kernel/linux/linux-6.6/net/tls/ |
H A D | tls_main.c | 130 void update_sk_prot(struct sock *sk, struct tls_context *ctx) in update_sk_prot() 140 int wait_on_pending_writer(struct sock *sk, long *timeo) in wait_on_pending_writer() 169 int tls_push_sg(struct sock *sk, in tls_push_sg() 227 static int tls_handle_open_record(struct sock *sk, int flags) in tls_handle_open_record() 237 int tls_process_cmsg(struct sock *sk, struct msghdr *msg, in tls_process_cmsg() 272 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx, in tls_push_partial_record() 285 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx) in tls_free_partial_record() 296 static void tls_write_space(struct sock *sk) in tls_write_space() 327 void tls_ctx_free(struct sock *sk, struct tls_context *ctx) in tls_ctx_free() 342 static void tls_sk_proto_cleanup(struct sock *s 405 tls_sk_poll(struct file *file, struct socket *sock, struct poll_table_struct *wait) tls_sk_poll() argument [all...] |
/kernel/linux/linux-6.6/net/dccp/ |
H A D | proto.c | 25 #include <net/sock.h> 78 void dccp_set_state(struct sock *sk, const int state) in dccp_set_state() 118 static void dccp_finish_passive_close(struct sock *sk) in dccp_finish_passive_close() 136 void dccp_done(struct sock *sk) in dccp_done() 174 void dccp_destruct_common(struct sock *sk) in dccp_destruct_common() 183 static void dccp_sk_destruct(struct sock *sk) in dccp_sk_destruct() 189 int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized) in dccp_init_sock() 220 void dccp_destroy_sock(struct sock *sk) in dccp_destroy_sock() 256 int dccp_disconnect(struct sock *sk, int flags) in dccp_disconnect() 315 __poll_t dccp_poll(struct file *file, struct socket *sock, in dccp_poll() argument 920 inet_dccp_listen(struct socket *sock, int backlog) inet_dccp_listen() argument [all...] |
H A D | timer.c | 20 static void dccp_write_err(struct sock *sk) in dccp_write_err() 31 static int dccp_write_timeout(struct sock *sk) in dccp_write_timeout() 83 static void dccp_retransmit_timer(struct sock *sk) in dccp_retransmit_timer() 89 * sent, no need to retransmit, this sock is dead. in dccp_retransmit_timer() 128 struct sock *sk = &icsk->icsk_inet.sk; in dccp_write_timer() 163 struct sock *sk = from_timer(sk, t, sk_timer); in dccp_keepalive_timer() 174 struct sock *sk = &icsk->icsk_inet.sk; in dccp_delack_timer() 225 struct sock *sk = &dp->dccps_inet_connection.icsk_inet.sk; in dccp_write_xmitlet() 243 void dccp_init_xmit_timers(struct sock *sk) in dccp_init_xmit_timers()
|
/third_party/python/Lib/asyncio/ |
H A D | unix_events.py | 231 ssl=None, sock=None, 251 if sock is not None: 253 'path and sock can not be specified at the same time') 256 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0) 258 sock.setblocking(False) 259 await self.sock_connect(sock, path) 261 sock.close() 265 if sock is None: 266 raise ValueError('no path and sock were specified') 267 if (sock [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_input.c | 139 void tcp_nip_fin(struct sock *sk) in tcp_nip_fin() 189 static void tcp_nip_drop(struct sock *sk, struct sk_buff *skb) in tcp_nip_drop() 234 sock_owned_by_me((struct sock *)tp); in tcp_nip_rcv_nxt_update() 251 static bool tcp_nip_try_coalesce(struct sock *sk, in tcp_nip_try_coalesce() 285 static bool tcp_nip_ooo_try_coalesce(struct sock *sk, in tcp_nip_ooo_try_coalesce() 309 static void tcp_nip_ofo_queue(struct sock *sk) in tcp_nip_ofo_queue() 361 static void tcp_nip_data_queue_ofo(struct sock *sk, struct sk_buff *skb) in tcp_nip_data_queue_ofo() 534 static void tcp_nip_data_queue(struct sock *sk, struct sk_buff *skb) in tcp_nip_data_queue() 628 static inline void tcp_nip_push_pending_frames(struct sock *sk) in tcp_nip_push_pending_frames() 638 static void tcp_nip_new_space(struct sock *s [all...] |
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_sync.c | 57 #include <net/sock.h> 200 struct socket *sock; member 1276 static void set_sock_size(struct sock *sk, int mode, int val) in set_sock_size() 1278 /* setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)); */ in set_sock_size() 1279 /* setsockopt(sock, SOL_SOCKET, SO_RCVBUF, &val, sizeof(val)); */ in set_sock_size() 1298 static void set_mcast_loop(struct sock *sk, u_char loop) in set_mcast_loop() 1302 /* setsockopt(sock, SOL_IP, IP_MULTICAST_LOOP, &loop, sizeof(loop)); */ in set_mcast_loop() 1319 static void set_mcast_ttl(struct sock *sk, u_char ttl) in set_mcast_ttl() 1323 /* setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); */ in set_mcast_ttl() 1338 static void set_mcast_pmtudisc(struct sock *s 1426 bind_mcastif_addr(struct socket *sock, struct net_device *dev) bind_mcastif_addr() argument 1475 struct socket *sock; make_send_sock() local 1532 struct socket *sock; make_receive_sock() local 1579 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) ip_vs_send_async() argument 1596 ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg) ip_vs_send_sync_msg() argument 1611 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) ip_vs_receive() argument [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_sync.c | 57 #include <net/sock.h> 200 struct socket *sock; member 1276 static void set_sock_size(struct sock *sk, int mode, int val) in set_sock_size() 1278 /* setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)); */ in set_sock_size() 1279 /* setsockopt(sock, SOL_SOCKET, SO_RCVBUF, &val, sizeof(val)); */ in set_sock_size() 1298 static void set_mcast_loop(struct sock *sk, u_char loop) in set_mcast_loop() 1300 /* setsockopt(sock, SOL_IP, IP_MULTICAST_LOOP, &loop, sizeof(loop)); */ in set_mcast_loop() 1317 static void set_mcast_ttl(struct sock *sk, u_char ttl) in set_mcast_ttl() 1321 /* setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); */ in set_mcast_ttl() 1336 static void set_mcast_pmtudisc(struct sock *s 1424 bind_mcastif_addr(struct socket *sock, struct net_device *dev) bind_mcastif_addr() argument 1473 struct socket *sock; make_send_sock() local 1530 struct socket *sock; make_receive_sock() local 1577 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) ip_vs_send_async() argument 1592 ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg) ip_vs_send_sync_msg() argument 1607 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) ip_vs_receive() argument [all...] |
/kernel/linux/linux-6.6/include/linux/sunrpc/ |
H A D | svcsock.h | 22 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 D | sctp.h | 8 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 D | bpf_iter_bpf_sk_storage_helpers.c | 30 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 D | coap_io_riot.c | 53 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/drivers/nvme/host/ |
H A D | tcp.c | 12 #include <net/sock.h> 43 static void nvme_tcp_reclassify_socket(struct socket *sock) in nvme_tcp_reclassify_socket() argument 45 struct sock *sk = sock->sk; in nvme_tcp_reclassify_socket() 68 static void nvme_tcp_reclassify_socket(struct socket *sock) { } in nvme_tcp_reclassify_socket() argument 113 struct socket *sock; member 148 void (*state_change)(struct sock *); 149 void (*data_ready)(struct sock *); 150 void (*write_space)(struct sock *); 882 static void nvme_tcp_data_ready(struct sock *s 1157 struct socket *sock = queue->sock; nvme_tcp_try_recv() local 1559 struct socket *sock = queue->sock; nvme_tcp_restore_sock_ops() local [all...] |
/kernel/linux/linux-5.10/net/netrom/ |
H A D | nr_subr.c | 20 #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 D | net.c | 146 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/net/ipv4/ |
H A D | tcp_vegas.c | 71 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 D | tcp_dctcp.c | 75 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/include/linux/ |
H A D | atmdev.h | 13 #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 D | atmdev.h | 13 #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 D | hfi-events.c | 246 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()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_vegas.c | 71 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() 291 size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, in tcp_vegas_get_info()
|
H A D | raw_diag.c | 37 static bool raw_lookup(struct net *net, const struct sock *sk, in raw_lookup() 57 static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r) in raw_sock_get() 61 struct sock *sk; in raw_sock_get() 94 struct sock *sk; in raw_diag_dump_one() 126 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, in sk_diag_dump() 146 struct sock *sk = NULL; in raw_diag_dump() 191 static void raw_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in raw_diag_get_info() 203 struct sock *sk; in raw_diag_destroy()
|