/*
* 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.
*/
/*
* IEEE 802.3ad Link Aggregation -- IOCTL processing.
*/
#include <sys/aggr_impl.h>
/*
* Process a LAIOC_MODIFY request.
*/
/* ARGSUSED */
static int
{
if (modify_mask_arg & LAIOC_MODIFY_POLICY) {
}
if (modify_mask_arg & LAIOC_MODIFY_MAC) {
}
if (modify_mask_arg & LAIOC_MODIFY_LACP_MODE) {
}
if (modify_mask_arg & LAIOC_MODIFY_LACP_TIMER) {
}
}
/*
* Process a LAIOC_CREATE request.
*/
/* ARGSUSED */
static int
{
int rc;
if (nports > AGGR_MAX_PORTS)
return (EINVAL);
ports_size, mode) != 0) {
goto done;
}
cred);
done:
return (rc);
}
/* ARGSUSED */
static int
{
}
typedef struct aggr_ioc_info_state {
int mode;
static int
{
return (ENOSPC);
return (EFAULT);
return (0);
}
static int
{
return (ENOSPC);
return (EFAULT);
return (0);
}
/*ARGSUSED*/
static int
{
}
static int
int mode)
{
int rc;
if (nports > AGGR_MAX_PORTS)
return (EINVAL);
ports_size, mode) != 0) {
goto done;
}
switch (cmd) {
case LAIOC_ADD:
break;
case LAIOC_REMOVE:
break;
}
done:
return (rc);
}
/* ARGSUSED */
static int
{
}
/* ARGSUSED */
static int
{
}
};
int
aggr_ioc_init(void)
{
}
void
aggr_ioc_fini(void)
{
}