/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
/*
* PSARC 2003/523 Contract Private Interface
* clnt_tli_kcreate
* Changes must be reviewed by Solaris File Sharing
* Changes must be communicated to contract-2003-523@sun.com
*/
int
struct knetconfig *config,
int retries,
{
int error;
error = 0;
return (EINVAL);
}
switch (config->knc_semantics) {
case NC_TPI_CLTS:
if (error != 0) {
RPCLOG(1,
"clnt_tli_kcreate: clnt_clts_kcreate failed error %d\n",
error);
return (error);
}
break;
case NC_TPI_COTS:
case NC_TPI_COTS_ORD:
if (error != 0) {
RPCLOG(1,
"clnt_tli_kcreate: clnt_cots_kcreate failed error %d\n",
error);
return (error);
}
break;
case NC_TPI_RDMA:
/*
* RDMA doesn't support TSOL. It's better to
* disallow it here.
*/
if (is_system_labeled()) {
return (EPROTONOSUPPORT);
}
&cl);
if (error != 0) {
RPCLOG(1,
"clnt_tli_kcreate: clnt_rdma_kcreate failed error %d\n",
error);
return (error);
}
break;
default:
return (error);
}
return (0);
}
/*
* "Kinit" a client handle by calling the appropriate cots or clts routine.
*
* PSARC 2003/523 Contract Private Interface
* clnt_tli_kinit
* Changes must be reviewed by Solaris File Sharing
* Changes must be communicated to contract-2003-523@sun.com
*/
int
CLIENT *h,
struct knetconfig *config,
int retries,
{
int error = 0;
switch (config->knc_semantics) {
case NC_TPI_CLTS:
break;
case NC_TPI_COTS:
case NC_TPI_COTS_ORD:
break;
case NC_TPI_RDMA:
break;
default:
}
return (error);
}
/*
* try to bind to a reserved port
*/
int
struct netbuf *bound_addr,
{
int i;
int error;
int start;
int stop;
return (error);
}
return (error);
}
/* now separate IPv4 and IPv6 by looking at len of tiptr.addr */
/* it's IPv6 */
ipv6_flag = 1;
} else {
/* LINTED pointer alignment */
}
/*
* Caller wants to bind to a specific port, so don't bother with the
* loop that binds to the next free one.
*/
if (addr) {
if (ipv6_flag) {
} else {
}
(void *)tiptr);
/*
* The unbind is called in case the bind failed
* with an EINTR potentially leaving the
* transport in bound state.
*/
error = EADDRINUSE;
}
} else {
if (tcp)
else
error = EADDRINUSE;
for (i = start;
i >= stop; i--) {
if (ipv6_flag)
else
(void *)tiptr);
/*
* The unbind is called in case the bind failed
* with an EINTR potentially leaving the
* transport in bound state.
*/
error = EADDRINUSE;
} else
error = 0;
}
if (!error) {
if (ipv6_flag) {
} else {
}
} else if (loop_twice) {
loop_twice = FALSE;
goto bindresvport_again;
}
}
if (!error && bound_addr) {
}
}
return (error);
}
void
clnt_init(void)
{
}
void
clnt_fini(void)
{
}
{
int i;
for (i = 0; i < size; i++) {
}
return (ctp);
}