/Linux-v6.6/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 | 388 #define sk_prot __sk_common.skc_prot macro 1381 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get() 1382 return sk->sk_prot->forward_alloc_get(sk); in sk_forward_alloc_get() 1392 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free() 1393 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free() 1426 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure() 1431 return sk->sk_prot->memory_pressure && in sk_under_global_memory_pressure() 1432 !!READ_ONCE(*sk->sk_prot->memory_pressure); in sk_under_global_memory_pressure() 1437 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure() 1444 return !!READ_ONCE(*sk->sk_prot->memory_pressure); in sk_under_memory_pressure() [all …]
|
D | request_sock.h | 104 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
|
/Linux-v6.6/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() 762 size = sk->sk_prot->max_header + len; in dccp_sendmsg() 785 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg() 1034 sk->sk_prot->disconnect(sk, 0); in dccp_close()
|
/Linux-v6.6/net/ipv4/ |
D | af_inet.c | 180 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind() 355 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create() 374 err = sk->sk_prot->hash(sk); in inet_create() 381 if (sk->sk_prot->init) { in inet_create() 382 err = sk->sk_prot->init(sk); in inet_create() 433 sk->sk_prot->close(sk, timeout); in inet_release() 446 if (sk->sk_prot->bind) { in inet_bind_sk() 447 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind_sk() 534 err = sk->sk_prot->get_port(sk, snum); in __inet_bind() 543 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 | 594 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established() 699 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten() 701 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_ehash_nolisten() 760 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash() 803 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash() 814 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash()
|
D | inet_connection_sock.c | 1198 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock() 1204 this_cpu_dec(*sk->sk_prot->orphan_count); in inet_csk_destroy_sock() 1255 err = sk->sk_prot->get_port(sk, inet->inet_num); in inet_csk_listen_start() 1260 err = sk->sk_prot->hash(sk); in inet_csk_listen_start() 1274 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget() 1278 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
|
D | tcp_bpf.c | 665 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in tcp_bpf_update_proto() 695 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() 698 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
|
/Linux-v6.6/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() 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() 461 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in dgram_hash() [all …]
|
/Linux-v6.6/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() 425 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
|
/Linux-v6.6/net/ipv6/ |
D | af_inet6.c | 107 const int offset = sk->sk_prot->ipv6_pinfo_offset; in inet6_sk_generic() 249 err = sk->sk_prot->hash(sk); in inet6_create() 255 if (sk->sk_prot->init) { in inet6_create() 256 err = sk->sk_prot->init(sk); in inet6_create() 404 err = sk->sk_prot->get_port(sk, snum); in __inet6_bind() 415 if (sk->sk_prot->put_port) in __inet6_bind() 416 sk->sk_prot->put_port(sk); in __inet6_bind() 445 prot = READ_ONCE(sk->sk_prot); in inet6_bind_sk() 583 prot = READ_ONCE(sk->sk_prot); in inet6_ioctl() 654 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() 470 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 474 WRITE_ONCE(sk->sk_prot, &tcp_prot); in do_ipv6_setsockopt() 486 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt() 490 WRITE_ONCE(sk->sk_prot, prot); in do_ipv6_setsockopt()
|
/Linux-v6.6/net/xfrm/ |
D | espintcp.c | 442 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp() 479 sk->sk_prot = &espintcp_prot; in espintcp_init_sk() 484 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk() 487 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk() 532 sk->sk_prot = &tcp_prot; in espintcp_close()
|
/Linux-v6.6/net/core/ |
D | sock.c | 647 if (sk->sk_prot->rehash) in sock_bindtoindex_locked() 648 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked() 955 if (sk->sk_prot->keepalive) in sock_set_keepalive() 956 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive() 1203 if (sk->sk_prot->keepalive) in sk_setsockopt() 1204 sk->sk_prot->keepalive(sk, valbool); in sk_setsockopt() 2051 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy() 2150 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc() 2289 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock() 2397 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock() [all …]
|
D | sock_diag.c | 306 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy() 309 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
|
D | sock_map.c | 187 if (!sk->sk_prot->psock_update_sk_prot) in sock_map_init_proto() 189 psock->psock_update_sk_prot = sk->sk_prot->psock_update_sk_prot; in sock_map_init_proto() 190 return sk->sk_prot->psock_update_sk_prot(sk, psock, false); in sock_map_init_proto() 200 if (sk->sk_prot->close != sock_map_close) { in sock_map_psock_get_checked() 532 return !!sk->sk_prot->psock_update_sk_prot; in sock_map_sk_is_suitable() 1590 saved_unhash = READ_ONCE(sk->sk_prot)->unhash; in sock_map_unhash() 1612 saved_destroy = READ_ONCE(sk->sk_prot)->destroy; in sock_map_destroy() 1638 saved_close = READ_ONCE(sk->sk_prot)->close; in sock_map_close()
|
/Linux-v6.6/net/mptcp/ |
D | token.c | 179 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in mptcp_token_new_connect() 198 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in mptcp_token_accept() 384 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in mptcp_token_destroy()
|
D | sockopt.c | 87 if (ssk->sk_prot->keepalive) in mptcp_sol_socket_sync_intval() 88 ssk->sk_prot->keepalive(ssk, !!val); in mptcp_sol_socket_sync_intval() 1403 if (ssk->sk_prot->keepalive) { in sync_socket_options() 1405 ssk->sk_prot->keepalive(ssk, 1); in sync_socket_options() 1407 ssk->sk_prot->keepalive(ssk, 0); in sync_socket_options()
|
D | token_test.c | 62 ((struct sock *)msk)->sk_prot = &tcp_prot; in build_msk()
|
/Linux-v6.6/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() 633 if (sk->sk_prot->init) in mctp_pf_create() 634 rc = sk->sk_prot->init(sk); in mctp_pf_create()
|
/Linux-v6.6/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-v6.6/net/tls/ |
D | tls_main.c | 134 WRITE_ONCE(sk->sk_prot, in update_sk_prot() 388 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close() 818 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create() 860 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() 974 WARN_ON_ONCE(sk->sk_prot == p); in tls_update() 982 WRITE_ONCE(sk->sk_prot, p); in tls_update()
|
/Linux-v6.6/include/net/phonet/ |
D | phonet.h | 128 return sk->sk_prot->ioctl(sk, cmd, &karg); in phonet_sk_ioctl()
|