Home
last modified time | relevance | path

Searched refs:sock_family (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/sockets/
Dsocket_dispatcher.c85 STRUCT_SECTION_FOREACH(net_socket_register, sock_family) { in sock_dispatch_find()
87 if (sock_family->handler == sock_dispatch_create) { in sock_dispatch_find()
91 if (native_only && sock_family->is_offloaded) { in sock_dispatch_find()
95 if (sock_family->family != family && in sock_dispatch_find()
96 sock_family->family != AF_UNSPEC) { in sock_dispatch_find()
100 NET_ASSERT(sock_family->is_supported); in sock_dispatch_find()
102 if (!sock_family->is_supported(family, type, proto)) { in sock_dispatch_find()
106 return sock_family; in sock_dispatch_find()
114 struct net_socket_register *sock_family; in sock_dispatch_native() local
116 sock_family = sock_dispatch_find(ctx->family, ctx->type, in sock_dispatch_native()
[all …]
Dsockets.c109 STRUCT_SECTION_FOREACH(net_socket_register, sock_family) { in z_impl_zsock_socket()
112 if (sock_family->family != family && in z_impl_zsock_socket()
113 sock_family->family != AF_UNSPEC) { in z_impl_zsock_socket()
117 NET_ASSERT(sock_family->is_supported); in z_impl_zsock_socket()
119 if (!sock_family->is_supported(family, type, proto)) { in z_impl_zsock_socket()
124 ret = sock_family->handler(family, type, proto); in z_impl_zsock_socket()
129 (void)sock_obj_core_alloc(ret, sock_family, family, type, proto); in z_impl_zsock_socket()