xref: /onnv-gate/usr/src/uts/common/inet/proto_set.h (revision 11042:2d6e217af1b4)
18348SEric.Yu@Sun.COM /*
28348SEric.Yu@Sun.COM  * CDDL HEADER START
38348SEric.Yu@Sun.COM  *
48348SEric.Yu@Sun.COM  * The contents of this file are subject to the terms of the
58348SEric.Yu@Sun.COM  * Common Development and Distribution License (the "License").
68348SEric.Yu@Sun.COM  * You may not use this file except in compliance with the License.
78348SEric.Yu@Sun.COM  *
88348SEric.Yu@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98348SEric.Yu@Sun.COM  * or http://www.opensolaris.org/os/licensing.
108348SEric.Yu@Sun.COM  * See the License for the specific language governing permissions
118348SEric.Yu@Sun.COM  * and limitations under the License.
128348SEric.Yu@Sun.COM  *
138348SEric.Yu@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
148348SEric.Yu@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158348SEric.Yu@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
168348SEric.Yu@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
178348SEric.Yu@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
188348SEric.Yu@Sun.COM  *
198348SEric.Yu@Sun.COM  * CDDL HEADER END
208348SEric.Yu@Sun.COM  */
218348SEric.Yu@Sun.COM /*
22*11042SErik.Nordmark@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
238348SEric.Yu@Sun.COM  * Use is subject to license terms.
248348SEric.Yu@Sun.COM  */
258348SEric.Yu@Sun.COM 
268348SEric.Yu@Sun.COM #ifndef	_INET_PROTO_SET_H
278348SEric.Yu@Sun.COM #define	_INET_PROTO_SET_H
288348SEric.Yu@Sun.COM 
298348SEric.Yu@Sun.COM #ifdef	__cplusplus
308348SEric.Yu@Sun.COM extern "C" {
318348SEric.Yu@Sun.COM #endif
328348SEric.Yu@Sun.COM 
338348SEric.Yu@Sun.COM #include <sys/types.h>
348348SEric.Yu@Sun.COM #include <sys/socket_proto.h>
358348SEric.Yu@Sun.COM #include <inet/optcom.h>
368348SEric.Yu@Sun.COM #include <inet/ipclassifier.h>
378348SEric.Yu@Sun.COM 
388348SEric.Yu@Sun.COM extern boolean_t	proto_set_rx_hiwat(queue_t *, struct conn_s *, size_t);
398348SEric.Yu@Sun.COM extern boolean_t	proto_set_rx_lowat(queue_t *, struct conn_s *, size_t);
408348SEric.Yu@Sun.COM extern boolean_t	proto_set_maxpsz(queue_t *, struct conn_s *, size_t);
418348SEric.Yu@Sun.COM extern boolean_t	proto_set_tx_maxblk(queue_t *, struct conn_s *,
428348SEric.Yu@Sun.COM     ssize_t);
438348SEric.Yu@Sun.COM extern boolean_t	proto_set_tx_copyopt(queue_t *, struct conn_s *, int);
448348SEric.Yu@Sun.COM extern boolean_t	proto_set_tx_wroff(queue_t *, struct conn_s *, size_t);
458348SEric.Yu@Sun.COM extern void		proto_set_rx_oob_opt(struct conn_s *, boolean_t);
468348SEric.Yu@Sun.COM 
478348SEric.Yu@Sun.COM extern int	proto_tlitosyserr(int);
488348SEric.Yu@Sun.COM extern int	proto_verify_ip_addr(int, const struct sockaddr *, socklen_t);
498348SEric.Yu@Sun.COM 
508348SEric.Yu@Sun.COM extern int	proto_opt_check(int, int, int, t_uscalar_t *, opdes_t *,
51*11042SErik.Nordmark@Sun.COM     uint_t, boolean_t, boolean_t, cred_t *);
528348SEric.Yu@Sun.COM extern opdes_t *proto_opt_lookup(t_uscalar_t, t_uscalar_t, opdes_t *, uint_t);
538348SEric.Yu@Sun.COM 
548348SEric.Yu@Sun.COM #ifdef	__cplusplus
558348SEric.Yu@Sun.COM }
568348SEric.Yu@Sun.COM #endif
578348SEric.Yu@Sun.COM 
588348SEric.Yu@Sun.COM #endif	/* _INET_PROTO_SET_H */
59