1*10616SSebastien.Roy@Sun.COM /* 2*10616SSebastien.Roy@Sun.COM * CDDL HEADER START 3*10616SSebastien.Roy@Sun.COM * 4*10616SSebastien.Roy@Sun.COM * The contents of this file are subject to the terms of the 5*10616SSebastien.Roy@Sun.COM * Common Development and Distribution License (the "License"). 6*10616SSebastien.Roy@Sun.COM * You may not use this file except in compliance with the License. 7*10616SSebastien.Roy@Sun.COM * 8*10616SSebastien.Roy@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10616SSebastien.Roy@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*10616SSebastien.Roy@Sun.COM * See the License for the specific language governing permissions 11*10616SSebastien.Roy@Sun.COM * and limitations under the License. 12*10616SSebastien.Roy@Sun.COM * 13*10616SSebastien.Roy@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*10616SSebastien.Roy@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10616SSebastien.Roy@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*10616SSebastien.Roy@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*10616SSebastien.Roy@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*10616SSebastien.Roy@Sun.COM * 19*10616SSebastien.Roy@Sun.COM * CDDL HEADER END 20*10616SSebastien.Roy@Sun.COM */ 21*10616SSebastien.Roy@Sun.COM /* 22*10616SSebastien.Roy@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10616SSebastien.Roy@Sun.COM * Use is subject to license terms. 24*10616SSebastien.Roy@Sun.COM */ 25*10616SSebastien.Roy@Sun.COM 26*10616SSebastien.Roy@Sun.COM #ifndef _SYS_MAC_IPV4_IMPL_H 27*10616SSebastien.Roy@Sun.COM #define _SYS_MAC_IPV4_IMPL_H 28*10616SSebastien.Roy@Sun.COM 29*10616SSebastien.Roy@Sun.COM /* 30*10616SSebastien.Roy@Sun.COM * IPv4 tunneling MAC Plugin 31*10616SSebastien.Roy@Sun.COM */ 32*10616SSebastien.Roy@Sun.COM 33*10616SSebastien.Roy@Sun.COM #include <sys/mac.h> 34*10616SSebastien.Roy@Sun.COM 35*10616SSebastien.Roy@Sun.COM #ifdef __cplusplus 36*10616SSebastien.Roy@Sun.COM extern "C" { 37*10616SSebastien.Roy@Sun.COM #endif 38*10616SSebastien.Roy@Sun.COM 39*10616SSebastien.Roy@Sun.COM /* 40*10616SSebastien.Roy@Sun.COM * In addition to the mac_ipv4 plugin, the mac_6to4, and mac_ipv6 plugins 41*10616SSebastien.Roy@Sun.COM * use the following functions. 42*10616SSebastien.Roy@Sun.COM */ 43*10616SSebastien.Roy@Sun.COM int mac_ipv4_unicst_verify(const void *, void *); 44*10616SSebastien.Roy@Sun.COM int mac_ipv4_multicst_verify(const void *, void *); 45*10616SSebastien.Roy@Sun.COM boolean_t mac_ipv4_sap_verify(uint32_t, uint32_t *, void *); 46*10616SSebastien.Roy@Sun.COM mblk_t *mac_ipv4_header(const void *, const void *, uint32_t, void *, mblk_t *, 47*10616SSebastien.Roy@Sun.COM size_t); 48*10616SSebastien.Roy@Sun.COM int mac_ipv4_header_info(mblk_t *, void *, mac_header_info_t *); 49*10616SSebastien.Roy@Sun.COM boolean_t mac_ipv4_pdata_verify(void *, size_t); 50*10616SSebastien.Roy@Sun.COM 51*10616SSebastien.Roy@Sun.COM #ifdef __cplusplus 52*10616SSebastien.Roy@Sun.COM } 53*10616SSebastien.Roy@Sun.COM #endif 54*10616SSebastien.Roy@Sun.COM 55*10616SSebastien.Roy@Sun.COM #endif /* _SYS_MAC_IPV4_IMPL_H */ 56