Lines Matching refs:sock_family
85 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()
118 if (sock_family == NULL) { in sock_dispatch_native()
123 return sock_dispatch_socket(ctx, sock_family->handler); in sock_dispatch_native()
128 struct net_socket_register *sock_family; in sock_dispatch_default() local
130 sock_family = sock_dispatch_find(ctx->family, ctx->type, in sock_dispatch_default()
132 if (sock_family == NULL) { in sock_dispatch_default()
137 return sock_dispatch_socket(ctx, sock_family->handler); in sock_dispatch_default()