/*
* 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
*/
/*
*/
#ifndef _SYS_SOCKET_PROTO_H_
#define _SYS_SOCKET_PROTO_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generation count
*/
(id) = 0; \
}
/* Socket protocol properties */
struct sock_proto_props {
};
/* flags to determine which socket options are set */
#ifdef _KERNEL
struct T_capability_ack;
/*
* Upcall and downcall handle for sockfs and transport layer.
*/
struct sock_downcalls_s {
sock_upcalls_t *, int, cred_t *);
cred_t *);
cred_t *);
cred_t *);
cred_t *);
};
typedef struct sock_quiesce_arg {
/*
* These functions return EOPNOTSUPP and are intended for the sockfs
* developer that doesn't wish to supply stubs for every function themselves.
*/
extern int sock_connect_notsupp(sock_lower_handle_t,
extern int sock_getsockopt_notsupp(sock_lower_handle_t, int, int, void *,
extern int sock_setsockopt_notsupp(sock_lower_handle_t, int, int,
extern void sock_clr_flowctrl_notsupp(sock_lower_handle_t);
/*
* Upcalls and related information
*/
/*
* su_opctl() actions
*/
typedef enum sock_opctl_action {
struct sock_upcalls_s {
sock_upcalls_t **);
pid_t);
int *, boolean_t *);
struct sock_proto_props *);
};
#define SOCKET_NO_RCVTIMER 0
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SOCKET_PROTO_H_ */