/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* DL_6TO4 MAC Type plugin for the Nemo mac module
*/
#include <sys/mac_6to4.h>
#include <sys/mac_ipv4_impl.h>
"6to4 tunneling MAC plugin"
};
};
int
_init(void)
{
int err;
return (ENOTSUP);
(void) mactype_unregister(MAC_PLUGIN_IDENT_6TO4);
}
return (err);
}
int
_fini(void)
{
int err;
return (err);
return (mod_remove(&mac_6to4_modlinkage));
}
int
{
}
/*
* MAC Type plugin operations. Note that because 6to4 is a form of
* tunneling over IPv4, this plugin is able to steal most of its operations
* from the IPv4 plugin.
*/
/*
* Check the legality of a 6to4 tunnel SAP value. The only acceptable
* values are IPPROTO_IPV6 (IPv6 in IPv4 tunneling) and 0 (for snoop).
*/
/* ARGSUSED */
{
return (B_TRUE);
}
return (B_FALSE);
}
NULL,
NULL,
};