Home
last modified time | relevance | path

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

123

/linux/include/net/
A 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()
A Dsock.h385 #define sk_prot __sk_common.skc_prot macro
1276 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1281 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1283 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1302 if (!sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get()
1352 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1359 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
1439 sk->sk_prot->unhash(sk); in __sk_prot_rehash()
1440 return sk->sk_prot->hash(sk); in __sk_prot_rehash()
1508 return !!sk->sk_prot->memory_allocated; in sk_has_account()
[all …]
A Drequest_sock.h103 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
/linux/net/ipv4/
A Daf_inet.c368 err = sk->sk_prot->hash(sk); in inet_create()
375 if (sk->sk_prot->init) { in inet_create()
376 err = sk->sk_prot->init(sk); in inet_create()
427 sk->sk_prot->close(sk, timeout); in inet_release()
441 if (sk->sk_prot->bind) { in inet_bind()
832 if (sk->sk_prot->sendpage) in inet_sendpage()
890 if (sk->sk_prot->shutdown) in inet_shutdown()
891 sk->sk_prot->shutdown(sk, how); in inet_shutdown()
972 if (sk->sk_prot->ioctl) in inet_ioctl()
1013 if (!sk->sk_prot->compat_ioctl) in inet_compat_ioctl()
[all …]
A Dinet_hashtables.c108 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 this_cpu_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()
A Ddatagram.c67 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
68 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
A Dinet_connection_sock.c192 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 this_cpu_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 this_cpu_inc(*sk->sk_prot->orphan_count); in inet_child_forget()
A Dtcp_bpf.c576 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in tcp_bpf_update_proto()
581 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in tcp_bpf_update_proto()
597 WRITE_ONCE(sk->sk_prot, &tcp_bpf_prots[family][config]); in tcp_bpf_update_proto()
610 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone()
613 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
A Dudp_bpf.c145 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()
/linux/net/dccp/
A 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()
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 Dproto.c100 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()
/linux/net/ieee802154/
A 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()
163 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
165 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl()
1037 if (sk->sk_prot->hash) { in ieee802154_create()
1038 rc = sk->sk_prot->hash(sk); in ieee802154_create()
1045 if (sk->sk_prot->init) { in ieee802154_create()
[all …]
/linux/net/unix/
A Dunix_bpf.c149 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/net/phonet/
A 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()
/linux/net/ipv6/
A Daf_inet6.c106 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()
576 if (!sk->sk_prot->ioctl) in inet6_ioctl()
578 return sk->sk_prot->ioctl(sk, cmd, arg); in inet6_ioctl()
644 return INDIRECT_CALL_2(sk->sk_prot->sendmsg, tcp_sendmsg, udpv6_sendmsg, in inet6_sendmsg()
[all …]
A Dipv6_sockglue.c442 if (sk->sk_prot != &tcpv6_prot) { in do_ipv6_setsockopt()
475 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
478 sk->sk_prot = &tcp_prot; in do_ipv6_setsockopt()
489 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
492 sk->sk_prot = prot; in do_ipv6_setsockopt()
/linux/net/xfrm/
A Despintcp.c435 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/net/core/
A Dsock.c615 if (sk->sk_prot->rehash) in sock_bindtoindex_locked()
616 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked()
911 if (sk->sk_prot->keepalive) in sock_set_keepalive()
912 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive()
1123 if (sk->sk_prot->keepalive) in sock_setsockopt()
3305 if (sk->sk_prot->release_cb) in release_sock()
3306 sk->sk_prot->release_cb(sk); in release_sock()
3484 if (sk->sk_prot->destroy) in sk_common_release()
3485 sk->sk_prot->destroy(sk); in sk_common_release()
3495 sk->sk_prot->unhash(sk); in sk_common_release()
[all …]
A 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()
529 return !!sk->sk_prot->psock_update_sk_prot; in sock_map_sk_is_suitable()
1486 if (sk->sk_prot->unhash) in sock_map_unhash()
1487 sk->sk_prot->unhash(sk); in sock_map_unhash()
1509 return sk->sk_prot->close(sk, timeout); in sock_map_close()
A Dsock_diag.c302 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy()
305 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
/linux/net/mctp/
A Daf_mctp.c30 sk->sk_prot->close(sk, 0); in mctp_release()
82 rc = sk->sk_prot->hash(sk); in mctp_bind()
459 if (sk->sk_prot->init) in mctp_pf_create()
460 rc = sk->sk_prot->init(sk); in mctp_pf_create()
/linux/include/linux/
A Dbpf-cgroup.h314 (sk)->sk_prot->pre_connect)
425 if (!(sock)->sk_prot->bpf_bypass_getsockopt || \
426 !INDIRECT_CALL_INET_1((sock)->sk_prot->bpf_bypass_getsockopt, \
/linux/net/mptcp/
A 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()
995 if (ssk->sk_prot->keepalive) { in sync_socket_options()
997 ssk->sk_prot->keepalive(ssk, 1); in sync_socket_options()
999 ssk->sk_prot->keepalive(ssk, 0); in sync_socket_options()
A Dsubflow.c1493 if (ssk->sk_prot == &tcpv6_prot) in mptcp_subflow_ops_override()
1494 ssk->sk_prot = &tcpv6_prot_override; in mptcp_subflow_ops_override()
1497 ssk->sk_prot = &tcp_prot_override; in mptcp_subflow_ops_override()
1503 if (ssk->sk_prot == &tcpv6_prot_override) in mptcp_subflow_ops_undo_override()
1504 ssk->sk_prot = &tcpv6_prot; in mptcp_subflow_ops_undo_override()
1507 ssk->sk_prot = &tcp_prot; in mptcp_subflow_ops_undo_override()
/linux/net/tls/
A Dtls_main.c72 WRITE_ONCE(sk->sk_prot, in update_sk_prot()
318 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close()
726 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create()
767 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto()
887 WRITE_ONCE(sk->sk_prot, p); in tls_update()

Completed in 62 milliseconds

123