/linux-6.1.9/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 1361 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc() 1366 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec() 1368 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec() 1375 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release() 1388 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get() 1389 return sk->sk_prot->forward_alloc_get(sk); in sk_forward_alloc_get() 1399 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free() 1400 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free() 1433 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure() [all …]
|
D | request_sock.h | 104 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
|
/linux-6.1.9/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() 749 size = sk->sk_prot->max_header + len; in dccp_sendmsg() 766 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg() 1015 sk->sk_prot->disconnect(sk, 0); in dccp_close()
|
/linux-6.1.9/net/ipv4/ |
D | af_inet.c | 180 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind() 349 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create() 369 err = sk->sk_prot->hash(sk); in inet_create() 376 if (sk->sk_prot->init) { in inet_create() 377 err = sk->sk_prot->init(sk); in inet_create() 428 sk->sk_prot->close(sk, timeout); in inet_release() 442 if (sk->sk_prot->bind) { in inet_bind() 443 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind() 525 err = sk->sk_prot->get_port(sk, snum); in __inet_bind() 534 if (sk->sk_prot->put_port) in __inet_bind() [all …]
|
D | datagram.c | 68 if (sk->sk_prot->rehash) in __ip4_datagram_connect() 69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
|
D | inet_hashtables.c | 568 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established() 686 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten() 688 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_ehash_nolisten() 747 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash() 790 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash() 801 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash()
|
D | inet_connection_sock.c | 1175 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock() 1183 this_cpu_dec(*sk->sk_prot->orphan_count); in inet_csk_destroy_sock() 1237 err = sk->sk_prot->get_port(sk, inet->inet_num); in inet_csk_listen_start() 1242 err = sk->sk_prot->hash(sk); in inet_csk_listen_start() 1256 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget() 1260 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
|
D | tcp_bpf.c | 612 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in tcp_bpf_update_proto() 643 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() 646 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
|
D | raw.c | 93 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_hash_sk() 102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash_sk() 110 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_unhash_sk() 114 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash_sk()
|
/linux-6.1.9/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() 178 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-6.1.9/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-6.1.9/net/ipv6/ |
D | af_inet6.c | 107 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic() 257 err = sk->sk_prot->hash(sk); in inet6_create() 263 if (sk->sk_prot->init) { in inet6_create() 264 err = sk->sk_prot->init(sk); in inet6_create() 412 err = sk->sk_prot->get_port(sk, snum); in __inet6_bind() 423 if (sk->sk_prot->put_port) in __inet6_bind() 424 sk->sk_prot->put_port(sk); in __inet6_bind() 455 prot = READ_ONCE(sk->sk_prot); in inet6_bind() 593 prot = READ_ONCE(sk->sk_prot); in inet6_ioctl() 664 prot = READ_ONCE(sk->sk_prot); in inet6_sendmsg() [all …]
|
D | ipv6_sockglue.c | 445 if (sk->sk_prot != &tcpv6_prot) { in do_ipv6_setsockopt() 477 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 481 WRITE_ONCE(sk->sk_prot, &tcp_prot); in do_ipv6_setsockopt() 493 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 497 WRITE_ONCE(sk->sk_prot, prot); in do_ipv6_setsockopt()
|
D | datagram.c | 107 if (sk->sk_prot->rehash) in ip6_datagram_dst_update() 108 sk->sk_prot->rehash(sk); in ip6_datagram_dst_update() 212 if (sk->sk_prot->rehash) in __ip6_datagram_connect() 213 sk->sk_prot->rehash(sk); in __ip6_datagram_connect()
|
/linux-6.1.9/net/xfrm/ |
D | espintcp.c | 433 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp() 470 sk->sk_prot = &espintcp_prot; in espintcp_init_sk() 475 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk() 478 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk() 522 sk->sk_prot = &tcp_prot; in espintcp_close()
|
/linux-6.1.9/net/core/ |
D | sock.c | 641 if (sk->sk_prot->rehash) in sock_bindtoindex_locked() 642 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked() 941 if (sk->sk_prot->keepalive) in sock_set_keepalive() 942 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive() 1188 if (sk->sk_prot->keepalive) in sk_setsockopt() 1189 sk->sk_prot->keepalive(sk, valbool); in sk_setsockopt() 1991 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy() 2090 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc() 2223 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock() 2334 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock() [all …]
|
D | sock_map.c | 191 if (!sk->sk_prot->psock_update_sk_prot) in sock_map_init_proto() 193 psock->psock_update_sk_prot = sk->sk_prot->psock_update_sk_prot; in sock_map_init_proto() 194 return sk->sk_prot->psock_update_sk_prot(sk, psock, false); in sock_map_init_proto() 204 if (sk->sk_prot->close != sock_map_close) { in sock_map_psock_get_checked() 536 return !!sk->sk_prot->psock_update_sk_prot; in sock_map_sk_is_suitable() 1572 if (sk->sk_prot->unhash) in sock_map_unhash() 1573 sk->sk_prot->unhash(sk); in sock_map_unhash() 1593 if (sk->sk_prot->destroy) in sock_map_destroy() 1594 sk->sk_prot->destroy(sk); in sock_map_destroy() 1618 return sk->sk_prot->close(sk, timeout); in sock_map_close()
|
D | sock_diag.c | 303 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy() 306 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
|
/linux-6.1.9/net/mctp/ |
D | af_mctp.c | 33 sk->sk_prot->close(sk, 0); in mctp_release() 85 rc = sk->sk_prot->hash(sk); in mctp_bind() 628 if (sk->sk_prot->init) in mctp_pf_create() 629 rc = sk->sk_prot->init(sk); in mctp_pf_create()
|
/linux-6.1.9/include/linux/ |
D | bpf-cgroup.h | 277 (sk)->sk_prot->pre_connect) 390 if (!(sock)->sk_prot->bpf_bypass_getsockopt || \ 391 !INDIRECT_CALL_INET_1((sock)->sk_prot->bpf_bypass_getsockopt, \
|
/linux-6.1.9/net/tls/ |
D | tls_main.c | 91 WRITE_ONCE(sk->sk_prot, in update_sk_prot() 337 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close() 922 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create() 963 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() 1077 WARN_ON_ONCE(sk->sk_prot == p); in tls_update() 1085 WRITE_ONCE(sk->sk_prot, p); in tls_update()
|
/linux-6.1.9/net/mptcp/ |
D | sockopt.c | 86 if (ssk->sk_prot->keepalive) in mptcp_sol_socket_sync_intval() 87 ssk->sk_prot->keepalive(ssk, !!val); in mptcp_sol_socket_sync_intval() 1251 if (ssk->sk_prot->keepalive) { in sync_socket_options() 1253 ssk->sk_prot->keepalive(ssk, 1); in sync_socket_options() 1255 ssk->sk_prot->keepalive(ssk, 0); in sync_socket_options()
|