tnet.h revision c4e55c13cee53b72d8c5c01391d9154039975bfb
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * CDDL HEADER START
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * The contents of this file are subject to the terms of the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * Common Development and Distribution License (the "License").
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * You may not use this file except in compliance with the License.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * See the License for the specific language governing permissions
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * and limitations under the License.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * When distributing Covered Code, include this CDDL HEADER in each
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * If applicable, add the following below this CDDL HEADER, with the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * fields enclosed by brackets "[]" replaced with your own identifying
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * information: Portions Copyright [yyyy] [name of copyright owner]
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * CDDL HEADER END
5f9878b0212a5bc5924a85d227160bf7f43712f1ken Powell - Sun Microsystem * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * Use is subject to license terms.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk * from "tnet.h 7.44 02/10/09 SMI; TSOL 2.x"
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern "C" {
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk/* Maximum label returned by tsol_compute_label_v6 */
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_tnrh_chk(tsol_tpent_t *, bslabel_t *, int);
bfabfc3590ad9189f6bb40cca26bd30cb46301c9kpextern tsol_tnrhc_t *find_rhc(const void *, uchar_t, boolean_t);
5f9878b0212a5bc5924a85d227160bf7f43712f1ken Powell - Sun Microsystemextern int tsol_check_dest(const cred_t *, const void *, uchar_t, boolean_t,
c4e55c13cee53b72d8c5c01391d9154039975bfbken Powell - Sun Microsystemextern int tsol_compute_label(const cred_t *, ipaddr_t, uchar_t *,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_compute_label_v6(const cred_t *, const in6_addr_t *, uchar_t *,
5f9878b0212a5bc5924a85d227160bf7f43712f1ken Powell - Sun Microsystemextern int tsol_check_label(const cred_t *, mblk_t **, boolean_t,
5f9878b0212a5bc5924a85d227160bf7f43712f1ken Powell - Sun Microsystemextern int tsol_check_label_v6(const cred_t *, mblk_t **, boolean_t,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_prepend_option(uchar_t *, ipha_t *, int);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_prepend_option_v6(uchar_t *, ip6_t *, int);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_update_sticky(ip6_pkt_t *, uint_t *, const uchar_t *);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_update_options(uchar_t **, uint_t *, uint_t *,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern boolean_t tsol_option_set(uchar_t **, uint_t *, uint_t, const uchar_t *,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern void ire_gw_secattr_free(tsol_ire_gw_secattr_t *);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern boolean_t tsol_receive_local(const mblk_t *, const void *, uchar_t,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern boolean_t tsol_can_accept_raw(mblk_t *, boolean_t);
c4e55c13cee53b72d8c5c01391d9154039975bfbken Powell - Sun Microsystemextern boolean_t tsol_get_option_v4(mblk_t *, tsol_ip_label_t *, uint8_t **);
c4e55c13cee53b72d8c5c01391d9154039975bfbken Powell - Sun Microsystemextern boolean_t tsol_get_option_v6(mblk_t *, tsol_ip_label_t *, uint8_t **);
c4e55c13cee53b72d8c5c01391d9154039975bfbken Powell - Sun Microsystemextern boolean_t tsol_find_secopt_v6(const uchar_t *, uint_t, uchar_t **,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_ire_match_gwattr(ire_t *, const ts_label_t *);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_rtsa_init(rt_msghdr_t *, tsol_rtsecattr_t *, caddr_t);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern int tsol_ire_init_gwattr(ire_t *, uchar_t, tsol_gc_t *, tsol_gcgrp_t *);
0ec92a15793cedb674b4f9dffc0b3dd9058fc529wyextern uint32_t tsol_pmtu_adjust(mblk_t *, uint32_t, int, int);
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhextern mlp_type_t tsol_mlp_addr_type(zoneid_t, uchar_t, const void *,
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkextern boolean_t tsol_check_interface_address(const ipif_t *);
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#endif /* _KERNEL */
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#endif /* _SYS_TSOL_TNET_H */