/linux-6.3-rc2/include/net/ |
A 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()
|
A D | sock.h | 387 #define sk_prot __sk_common.skc_prot macro 1364 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get() 1375 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free() 1414 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure() 1421 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure() 1539 sk->sk_prot->unhash(sk); in __sk_prot_rehash() 1540 return sk->sk_prot->hash(sk); in __sk_prot_rehash() 1596 return !!sk->sk_prot->memory_allocated; in sk_has_account() 1872 WRITE_ONCE(sk->sk_prot, proto); in sock_replace_proto() 2966 if (sk->sk_prot->sock_is_readable) in sk_is_readable() [all …]
|
A D | request_sock.h | 104 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
|
/linux-6.3-rc2/net/dccp/ |
A 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() 656 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_sync() 682 skb = alloc_skb(sk->sk_prot->max_header, prio); in dccp_send_close() [all …]
|
A D | proto.c | 100 sk->sk_prot->unhash(sk); in dccp_set_state() 755 size = sk->sk_prot->max_header + len; in dccp_sendmsg() 772 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg() 1021 sk->sk_prot->disconnect(sk, 0); in dccp_close()
|
/linux-6.3-rc2/net/ipv4/ |
A D | af_inet.c | 367 err = sk->sk_prot->hash(sk); in inet_create() 374 if (sk->sk_prot->init) { in inet_create() 375 err = sk->sk_prot->init(sk); in inet_create() 440 if (sk->sk_prot->bind) { in inet_bind() 532 if (sk->sk_prot->put_port) in __inet_bind() 533 sk->sk_prot->put_port(sk); in __inet_bind() 566 prot = READ_ONCE(sk->sk_prot); in inet_dgram_connect() 840 prot = READ_ONCE(sk->sk_prot); in inet_sendpage() 898 if (sk->sk_prot->shutdown) in inet_shutdown() 980 if (sk->sk_prot->ioctl) in inet_ioctl() [all …]
|
A D | datagram.c | 68 if (sk->sk_prot->rehash) in __ip4_datagram_connect() 69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
|
A 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()
|
A D | inet_connection_sock.c | 1195 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock() 1201 this_cpu_dec(*sk->sk_prot->orphan_count); in inet_csk_destroy_sock() 1252 err = sk->sk_prot->get_port(sk, inet->inet_num); in inet_csk_listen_start() 1257 err = sk->sk_prot->hash(sk); in inet_csk_listen_start() 1271 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget() 1275 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
|
A D | tcp_bpf.c | 619 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in tcp_bpf_update_proto() 649 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() 652 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
|
/linux-6.3-rc2/net/ieee802154/ |
A 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() 163 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl() 165 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl() 1047 if (sk->sk_prot->hash) { in ieee802154_create() 1048 rc = sk->sk_prot->hash(sk); in ieee802154_create() 1055 if (sk->sk_prot->init) { in ieee802154_create() [all …]
|
/linux-6.3-rc2/net/phonet/ |
A 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()
|
A 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.3-rc2/net/ipv6/ |
A D | af_inet6.c | 107 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); 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() 447 prot = READ_ONCE(sk->sk_prot); in inet6_bind() 579 prot = READ_ONCE(sk->sk_prot); in inet6_ioctl() 650 prot = READ_ONCE(sk->sk_prot); in inet6_sendmsg() [all …]
|
A 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-6.3-rc2/net/xfrm/ |
A D | espintcp.c | 436 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp() 473 sk->sk_prot = &espintcp_prot; in espintcp_init_sk() 478 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk() 481 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk() 526 sk->sk_prot = &tcp_prot; in espintcp_close()
|
/linux-6.3-rc2/net/core/ |
A D | sock.c | 641 if (sk->sk_prot->rehash) in sock_bindtoindex_locked() 642 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked() 948 if (sk->sk_prot->keepalive) in sock_set_keepalive() 949 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive() 1195 if (sk->sk_prot->keepalive) in sk_setsockopt() 3494 if (sk->sk_prot->release_cb) in release_sock() 3495 sk->sk_prot->release_cb(sk); in release_sock() 3674 if (sk->sk_prot->destroy) in sk_common_release() 3675 sk->sk_prot->destroy(sk); in sk_common_release() 3685 sk->sk_prot->unhash(sk); in sk_common_release() [all …]
|
A 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()
|
A 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 saved_unhash = READ_ONCE(sk->sk_prot)->unhash; in sock_map_unhash() 1594 saved_destroy = READ_ONCE(sk->sk_prot)->destroy; in sock_map_destroy() 1620 saved_close = READ_ONCE(sk->sk_prot)->close; in sock_map_close()
|
/linux-6.3-rc2/net/mptcp/ |
A 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()
|
A 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() 1255 if (ssk->sk_prot->keepalive) { in sync_socket_options() 1257 ssk->sk_prot->keepalive(ssk, 1); in sync_socket_options() 1259 ssk->sk_prot->keepalive(ssk, 0); in sync_socket_options()
|
A D | token_test.c | 62 ((struct sock *)msk)->sk_prot = &tcp_prot; in build_msk()
|
/linux-6.3-rc2/net/mctp/ |
A D | af_mctp.c | 33 sk->sk_prot->close(sk, 0); in mctp_release() 85 rc = sk->sk_prot->hash(sk); in mctp_bind() 634 if (sk->sk_prot->init) in mctp_pf_create() 635 rc = sk->sk_prot->init(sk); in mctp_pf_create()
|
/linux-6.3-rc2/include/linux/ |
A 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.3-rc2/net/tls/ |
A 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() 909 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create() 950 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() 1064 WARN_ON_ONCE(sk->sk_prot == p); in tls_update() 1072 WRITE_ONCE(sk->sk_prot, p); in tls_update()
|