/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/softmac_impl.h>
mblk_t *
{
/*
* Optimize for the most common case.
*/
if (!SOFTMAC_CANPUTNEXT(wq))
return (mp);
return (NULL);
}
if (!SOFTMAC_CANPUTNEXT(wq))
break;
}
return (mp);
}
void
{
/*
* When packets arrive, the softmac might not be fully started.
*/
"copymsg failed");
goto failed;
}
}
return;
}
static int
{
}
int
{
int err = 0;
/*
* Record the pending DLPI primitive.
*/
TR_CLOCK_TICK) == -1)
break;
}
/*
* If we timed out, sl_ack_mp will still be NULL, but sl_pending_prim
* won't be set to DL_PRIM_INVAL.
*/
} else {
}
} else {
}
else
return (err);
}
void
{
/*
* Record that ioctl processing is currently in progress.
*/
while (slp->sl_pending_ioctl)
}
int
{
DL_ERROR_ACK)) == NULL)
return (ENOMEM);
return (0);
}
int
{
int err = 0;
switch (dl_prim) {
case DL_ENABMULTI_REQ:
case DL_DISABMULTI_REQ:
case DL_SET_PHYS_ADDR_REQ:
case DL_UNBIND_REQ:
case DL_UDQOS_REQ:
case DL_PROMISCON_REQ:
case DL_PROMISCOFF_REQ:
break;
case DL_BIND_REQ:
break;
case DL_NOTIFY_REQ:
break;
case DL_CONTROL_REQ:
break;
case DL_CAPABILITY_REQ:
break;
default:
DL_UNSUPPORTED, 0);
}
break;
}
return (err);
}