4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #include <sys/types.h>
28 #include <sys/param.h>
29 #include <sys/stropts.h>
30 #include <sys/socket.h>
31 #include <sys/socketvar.h>
32 #include <sys/socket_proto.h>
37 sock_accept_notsupp(sock_lower_handle_t low1
, sock_lower_handle_t low2
,
38 sock_upper_handle_t upper
, struct cred
*cr
)
45 sock_bind_notsupp(sock_lower_handle_t handle
, struct sockaddr
*name
,
46 socklen_t namelen
, struct cred
*cr
)
53 sock_listen_notsupp(sock_lower_handle_t handle
, int backlog
,
61 sock_connect_notsupp(sock_lower_handle_t handle
,
62 const struct sockaddr
*name
, socklen_t namelen
, sock_connid_t
*conp
,
70 sock_getsockname_notsupp(sock_lower_handle_t handle
, struct sockaddr
*sa
,
71 socklen_t
*len
, struct cred
*cr
)
78 sock_getpeername_notsupp(sock_lower_handle_t handle
, struct sockaddr
*addr
,
79 socklen_t
*addrlen
, struct cred
*cr
)
86 sock_getsockopt_notsupp(sock_lower_handle_t handle
, int level
,
87 int option_name
, void *optval
, socklen_t
*optlenp
, struct cred
*cr
)
94 sock_setsockopt_notsupp(sock_lower_handle_t handle
, int level
,
95 int option_name
, const void *optval
, socklen_t optlen
, struct cred
*cr
)
102 sock_send_notsupp(sock_lower_handle_t handle
, mblk_t
*mp
,
103 struct msghdr
*msg
, struct cred
*cr
)
110 sock_senduio_notsupp(sock_lower_handle_t handle
, struct uio
*uiop
,
111 struct msghdr
*msg
, struct cred
*cr
)
118 sock_recvuio_notsupp(sock_lower_handle_t handle
, struct uio
*uiop
,
119 struct msghdr
*msg
, struct cred
*cr
)
126 sock_poll_notsupp(sock_lower_handle_t handle
, short events
, int anyyet
,
134 sock_shutdown_notsupp(sock_lower_handle_t handle
, int how
, struct cred
*cr
)
141 sock_clr_flowctrl_notsupp(sock_lower_handle_t proto_handle
)
147 sock_ioctl_notsupp(sock_lower_handle_t handle
, int cmd
, intptr_t arg
,
148 int mode
, int32_t *rvalp
, cred_t
*cred
)
155 sock_close_notsupp(sock_lower_handle_t proto_handle
, int flags
, cred_t
*cr
)
160 sock_downcalls_t sock_down_notsupp
= {
165 sock_connect_notsupp
,
166 sock_getpeername_notsupp
,
167 sock_getsockname_notsupp
,
168 sock_getsockopt_notsupp
,
169 sock_setsockopt_notsupp
,
171 sock_senduio_notsupp
,
172 sock_recvuio_notsupp
,
174 sock_shutdown_notsupp
,
175 sock_clr_flowctrl_notsupp
,