/*
* 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
*/
/*
*/
#include <stdio.h>
#include <door.h>
#include <errno.h>
#include <strings.h>
#include <libdladm.h>
#include <libdlib.h>
#include <libdllink.h>
static dladm_status_t
{
int door_fd;
/* The door descriptor is opened if it isn't already */
return (status);
return (DLADM_STATUS_FAILED);
/*
* The size of the input rbuf is not big enough so that
* the door allocate the rbuf itself. In this case, simply
* think something wrong with the door call.
*/
return (DLADM_STATUS_TOOSMALL);
}
return (DLADM_STATUS_FAILED);
return (DLADM_STATUS_OK);
else
return (DLADM_STATUS_FAILED);
}
static int
{
"dladm_door_call failed: %s; linkname = %s\n",
return (status);
}
"Not a physical link: linkname = %s, class = 0x%x\n",
return (status);
}
return (status);
}
}
return (status);
}
int
{
int i;
if (argc < 2) {
"Usage: ibd_delete_link linkname ...\n");
return (2);
}
return (1);
}
for (i = 1; i < argc; i++) {
return (1);
}
}
return (0);
}