Lines Matching refs:proto
19 int proto; member
28 static int sock_dispatch_create(int family, int type, int proto);
30 static bool is_tls(int proto) in is_tls() argument
32 if ((proto >= IPPROTO_TLS_1_0 && proto <= IPPROTO_TLS_1_2) || in is_tls()
33 (proto >= IPPROTO_DTLS_1_0 && proto <= IPPROTO_DTLS_1_2)) { in is_tls()
57 new_fd = socket_create(ctx->family, ctx->type, ctx->proto); in sock_dispatch_socket()
83 int proto, bool native_only) in sock_dispatch_find() argument
102 if (!sock_family->is_supported(family, type, proto)) { in sock_dispatch_find()
117 ctx->proto, true); in sock_dispatch_native()
131 ctx->proto, false); in sock_dispatch_default()
374 if (!is_tls(ctx->proto)) { in sock_dispatch_setsockopt_vmeth()
448 static int sock_dispatch_create(int family, int type, int proto) in sock_dispatch_create() argument
469 if (sock_dispatch_find(family, type, proto, false) == NULL) { in sock_dispatch_create()
482 entry->proto = proto; in sock_dispatch_create()
493 static bool is_supported(int family, int type, int proto) in is_supported() argument