| /Linux-v5.15/include/net/ |
| D | timewait_sock.h | 25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique() 26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique() 32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor() 33 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
|
| D | sock.h | 384 #define sk_prot __sk_common.skc_prot macro 1270 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc() 1275 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec() 1277 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec() 1284 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release() 1300 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free() 1301 INDIRECT_CALL_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free() 1305 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free() 1306 sk->sk_prot->stream_memory_free(sk, wake) : true; in __sk_stream_memory_free() 1339 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure() [all …]
|
| D | request_sock.h | 103 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
|
| /Linux-v5.15/net/dccp/ |
| D | output.c | 472 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset() 476 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset() 526 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset() 531 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset() 560 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect() 565 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect() 585 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack() 598 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack() 647 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_send_sync() 656 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_sync() [all …]
|
| D | proto.c | 100 sk->sk_prot->unhash(sk); in dccp_set_state() 766 size = sk->sk_prot->max_header + len; in dccp_sendmsg() 778 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg() 1021 sk->sk_prot->disconnect(sk, 0); in dccp_close() 1058 percpu_counter_inc(sk->sk_prot->orphan_count); in dccp_close()
|
| /Linux-v5.15/net/ipv4/ |
| D | af_inet.c | 183 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind() 352 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create() 372 err = sk->sk_prot->hash(sk); in inet_create() 379 if (sk->sk_prot->init) { in inet_create() 380 err = sk->sk_prot->init(sk); in inet_create() 431 sk->sk_prot->close(sk, timeout); in inet_release() 445 if (sk->sk_prot->bind) { in inet_bind() 446 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind() 531 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind() 570 return sk->sk_prot->disconnect(sk, flags); in inet_dgram_connect() [all …]
|
| D | inet_hashtables.c | 108 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port() 133 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port() 492 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established() 563 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_ehash_insert() 599 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten() 601 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_ehash_nolisten() 635 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash() 660 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash() 684 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_unhash() 708 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash()
|
| D | datagram.c | 68 if (sk->sk_prot->rehash) in __ip4_datagram_connect() 69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
|
| D | udp_bpf.c | 145 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in udp_bpf_update_proto() 152 WRITE_ONCE(sk->sk_prot, &udp_bpf_prots[family]); in udp_bpf_update_proto()
|
| D | tcp_bpf.c | 530 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in tcp_bpf_update_proto() 535 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in tcp_bpf_update_proto() 551 WRITE_ONCE(sk->sk_prot, &tcp_bpf_prots[family][config]); in tcp_bpf_update_proto() 564 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() 567 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
|
| D | inet_connection_sock.c | 192 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port() 365 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port() 762 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink() 1010 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock() 1018 percpu_counter_dec(sk->sk_prot->orphan_count); in inet_csk_destroy_sock() 1055 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start() 1059 err = sk->sk_prot->hash(sk); in inet_csk_listen_start() 1073 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget() 1077 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_child_forget()
|
| /Linux-v5.15/net/ieee802154/ |
| D | socket.c | 86 sk->sk_prot->close(sk, 0); in ieee802154_sock_release() 96 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg() 104 if (sk->sk_prot->bind) in ieee802154_sock_bind() 105 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind() 119 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect() 121 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect() 163 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl() 165 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl() 177 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash() 187 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash() [all …]
|
| /Linux-v5.15/net/unix/ |
| D | unix_bpf.c | 149 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in unix_dgram_bpf_update_proto() 154 WRITE_ONCE(sk->sk_prot, &unix_dgram_bpf_prot); in unix_dgram_bpf_update_proto() 162 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in unix_stream_bpf_update_proto() 167 WRITE_ONCE(sk->sk_prot, &unix_stream_bpf_prot); in unix_stream_bpf_update_proto()
|
| /Linux-v5.15/net/phonet/ |
| D | socket.c | 34 sk->sk_prot->close(sk, 0); in pn_socket_release() 165 if (sk->sk_prot->bind) in pn_socket_bind() 166 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind() 185 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind() 194 err = sk->sk_prot->hash(sk); in pn_socket_bind() 255 err = sk->sk_prot->connect(sk, addr, len); in pn_socket_connect() 304 newsk = sk->sk_prot->accept(sk, flags, &err, kern); in pn_socket_accept() 390 return sk->sk_prot->ioctl(sk, cmd, arg); in pn_socket_ioctl() 425 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
|
| D | af_phonet.c | 96 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in pn_socket_create() 102 sk->sk_prot->init(sk); in pn_socket_create()
|
| /Linux-v5.15/net/ipv6/ |
| D | af_inet6.c | 106 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic() 250 err = sk->sk_prot->hash(sk); in inet6_create() 256 if (sk->sk_prot->init) { in inet6_create() 257 err = sk->sk_prot->init(sk); in inet6_create() 408 if (sk->sk_prot->get_port(sk, snum)) { in __inet6_bind() 448 if (sk->sk_prot->bind) in inet6_bind() 449 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind() 575 if (!sk->sk_prot->ioctl) in inet6_ioctl() 577 return sk->sk_prot->ioctl(sk, cmd, arg); in inet6_ioctl() 643 return INDIRECT_CALL_2(sk->sk_prot->sendmsg, tcp_sendmsg, udpv6_sendmsg, in inet6_sendmsg() [all …]
|
| D | ipv6_sockglue.c | 440 if (sk->sk_prot != &tcpv6_prot) { in do_ipv6_setsockopt() 473 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 476 sk->sk_prot = &tcp_prot; in do_ipv6_setsockopt() 487 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 490 sk->sk_prot = prot; in do_ipv6_setsockopt()
|
| /Linux-v5.15/net/xfrm/ |
| D | espintcp.c | 435 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp() 472 sk->sk_prot = &espintcp_prot; in espintcp_init_sk() 477 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk() 480 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk() 524 sk->sk_prot = &tcp_prot; in espintcp_close()
|
| /Linux-v5.15/net/mctp/ |
| D | af_mctp.c | 27 sk->sk_prot->close(sk, 0); in mctp_release() 63 rc = sk->sk_prot->hash(sk); in mctp_bind() 321 if (sk->sk_prot->init) in mctp_pf_create() 322 rc = sk->sk_prot->init(sk); in mctp_pf_create()
|
| /Linux-v5.15/net/core/ |
| D | sock.c | 602 if (sk->sk_prot->rehash) in sock_bindtoindex_locked() 603 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked() 898 if (sk->sk_prot->keepalive) in sock_set_keepalive() 899 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive() 1063 if (sk->sk_prot->keepalive) in sock_setsockopt() 1064 sk->sk_prot->keepalive(sk, valbool); in sock_setsockopt() 1800 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy() 1899 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc() 2032 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock() 2142 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock() [all …]
|
| D | sock_map.c | 188 if (!sk->sk_prot->psock_update_sk_prot) in sock_map_init_proto() 190 psock->psock_update_sk_prot = sk->sk_prot->psock_update_sk_prot; in sock_map_init_proto() 191 return sk->sk_prot->psock_update_sk_prot(sk, psock, false); in sock_map_init_proto() 201 if (sk->sk_prot->close != sock_map_close) { in sock_map_psock_get_checked() 530 return !!sk->sk_prot->psock_update_sk_prot; in sock_map_sk_is_suitable() 1487 if (sk->sk_prot->unhash) in sock_map_unhash() 1488 sk->sk_prot->unhash(sk); in sock_map_unhash() 1510 return sk->sk_prot->close(sk, timeout); in sock_map_close()
|
| D | sock_diag.c | 302 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy() 305 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
|
| /Linux-v5.15/net/mptcp/ |
| D | sockopt.c | 84 if (ssk->sk_prot->keepalive) in mptcp_sol_socket_sync_intval() 85 ssk->sk_prot->keepalive(ssk, !!val); in mptcp_sol_socket_sync_intval() 717 if (ssk->sk_prot->keepalive) { in sync_socket_options() 719 ssk->sk_prot->keepalive(ssk, 1); in sync_socket_options() 721 ssk->sk_prot->keepalive(ssk, 0); in sync_socket_options()
|
| /Linux-v5.15/net/tls/ |
| D | tls_main.c | 72 WRITE_ONCE(sk->sk_prot, in update_sk_prot() 316 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close() 638 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create() 646 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() 762 WRITE_ONCE(sk->sk_prot, p); in tls_update()
|
| /Linux-v5.15/include/linux/ |
| D | bpf-cgroup.h | 334 (sk)->sk_prot->pre_connect) 445 if (!(sock)->sk_prot->bpf_bypass_getsockopt || \ 446 !INDIRECT_CALL_INET_1((sock)->sk_prot->bpf_bypass_getsockopt, \
|