weaks.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/socketvar.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <stropts.h>
#include <stdio.h>
#include <strings.h>
extern int _so_bind();
extern int _so_listen();
extern int _so_accept();
extern int _so_connect();
extern int _so_shutdown();
extern int _so_recv();
extern int _so_recvfrom();
extern int _so_recvmsg();
extern int _so_send();
extern int _so_sendmsg();
extern int _so_sendto();
extern int _so_getpeername();
extern int _so_getsockopt();
extern int _so_setsockopt();
extern int _so_setsockname();
extern int _so_getsockname();
/*
* Note that regular sockets use SOV_SOCKBSD here to not allow a rebind of an
* already bound socket.
*/
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
if (level == IPPROTO_SCTP) {
sctp_assoc_t id = 0;
int err = 0;
switch (optname) {
case SCTP_RTOINFO:
case SCTP_ASSOCINFO:
case SCTP_PRIMARY_ADDR:
case SCTP_PEER_ADDR_PARAMS:
case SCTP_STATUS:
case SCTP_GET_PEER_ADDR_INFO:
/*
* Association ID is the first element params struct
*/
break;
case SCTP_DEFAULT_SEND_PARAM:
bcopy(&((struct sctp_sndrcvinfo *)
break;
}
err = -1;
} else {
}
return (err);
} else {
SOV_DEFAULT));
}
}
int
{
SOV_DEFAULT));
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
if (level == IPPROTO_SCTP) {
(int *)option_lenp));
} else {
}
}