Home
last modified time | relevance | path

Searched refs:sk_prot (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/include/net/
Dtimewait_sock.h25 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()
Dsock.h384 #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 …]
Drequest_sock.h104 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
/linux-6.1.9/net/dccp/
Doutput.c472 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 …]
Dproto.c100 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/
Daf_inet.c180 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 …]
Ddatagram.c68 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
Dinet_hashtables.c568 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()
Dinet_connection_sock.c1175 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()
Dtcp_bpf.c612 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()
Draw.c93 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/
Dsocket.c86 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/
Dsocket.c34 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()
Daf_phonet.c96 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/
Daf_inet6.c107 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 …]
Dipv6_sockglue.c445 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()
Ddatagram.c107 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/
Despintcp.c433 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/
Dsock.c641 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 …]
Dsock_map.c191 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()
Dsock_diag.c303 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/
Daf_mctp.c33 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/
Dbpf-cgroup.h277 (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/
Dtls_main.c91 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/
Dsockopt.c86 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()

123