10f1702c5SYu Xiangning /* 20f1702c5SYu Xiangning * CDDL HEADER START 30f1702c5SYu Xiangning * 40f1702c5SYu Xiangning * The contents of this file are subject to the terms of the 50f1702c5SYu Xiangning * Common Development and Distribution License (the "License"). 60f1702c5SYu Xiangning * You may not use this file except in compliance with the License. 70f1702c5SYu Xiangning * 80f1702c5SYu Xiangning * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90f1702c5SYu Xiangning * or http://www.opensolaris.org/os/licensing. 100f1702c5SYu Xiangning * See the License for the specific language governing permissions 110f1702c5SYu Xiangning * and limitations under the License. 120f1702c5SYu Xiangning * 130f1702c5SYu Xiangning * When distributing Covered Code, include this CDDL HEADER in each 140f1702c5SYu Xiangning * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150f1702c5SYu Xiangning * If applicable, add the following below this CDDL HEADER, with the 160f1702c5SYu Xiangning * fields enclosed by brackets "[]" replaced with your own identifying 170f1702c5SYu Xiangning * information: Portions Copyright [yyyy] [name of copyright owner] 180f1702c5SYu Xiangning * 190f1702c5SYu Xiangning * CDDL HEADER END 200f1702c5SYu Xiangning */ 210f1702c5SYu Xiangning /* 22*bd670b35SErik Nordmark * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230f1702c5SYu Xiangning * Use is subject to license terms. 240f1702c5SYu Xiangning */ 250f1702c5SYu Xiangning 260f1702c5SYu Xiangning #ifndef _INET_PROTO_SET_H 270f1702c5SYu Xiangning #define _INET_PROTO_SET_H 280f1702c5SYu Xiangning 290f1702c5SYu Xiangning #ifdef __cplusplus 300f1702c5SYu Xiangning extern "C" { 310f1702c5SYu Xiangning #endif 320f1702c5SYu Xiangning 330f1702c5SYu Xiangning #include <sys/types.h> 340f1702c5SYu Xiangning #include <sys/socket_proto.h> 350f1702c5SYu Xiangning #include <inet/optcom.h> 360f1702c5SYu Xiangning #include <inet/ipclassifier.h> 370f1702c5SYu Xiangning 380f1702c5SYu Xiangning extern boolean_t proto_set_rx_hiwat(queue_t *, struct conn_s *, size_t); 390f1702c5SYu Xiangning extern boolean_t proto_set_rx_lowat(queue_t *, struct conn_s *, size_t); 400f1702c5SYu Xiangning extern boolean_t proto_set_maxpsz(queue_t *, struct conn_s *, size_t); 410f1702c5SYu Xiangning extern boolean_t proto_set_tx_maxblk(queue_t *, struct conn_s *, 420f1702c5SYu Xiangning ssize_t); 430f1702c5SYu Xiangning extern boolean_t proto_set_tx_copyopt(queue_t *, struct conn_s *, int); 440f1702c5SYu Xiangning extern boolean_t proto_set_tx_wroff(queue_t *, struct conn_s *, size_t); 450f1702c5SYu Xiangning extern void proto_set_rx_oob_opt(struct conn_s *, boolean_t); 460f1702c5SYu Xiangning 470f1702c5SYu Xiangning extern int proto_tlitosyserr(int); 480f1702c5SYu Xiangning extern int proto_verify_ip_addr(int, const struct sockaddr *, socklen_t); 490f1702c5SYu Xiangning 500f1702c5SYu Xiangning extern int proto_opt_check(int, int, int, t_uscalar_t *, opdes_t *, 51*bd670b35SErik Nordmark uint_t, boolean_t, boolean_t, cred_t *); 520f1702c5SYu Xiangning extern opdes_t *proto_opt_lookup(t_uscalar_t, t_uscalar_t, opdes_t *, uint_t); 530f1702c5SYu Xiangning 540f1702c5SYu Xiangning #ifdef __cplusplus 550f1702c5SYu Xiangning } 560f1702c5SYu Xiangning #endif 570f1702c5SYu Xiangning 580f1702c5SYu Xiangning #endif /* _INET_PROTO_SET_H */ 59