/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*/
#include <mdb/mdb_modapi.h>
#include <sys/netstack.h>
int
{
mdb_warn("couldn't find netstack_head");
return (WALK_ERR);
}
mdb_warn("failed to read address of initial netstack "
"at %p", addr);
return (WALK_ERR);
}
return (WALK_NEXT);
}
int
{
int status;
return (WALK_DONE);
return (WALK_ERR);
}
wsp->walk_cbdata);
return (status);
return (status);
}
/*ARGSUSED*/
int
{
if (!(flags & DCMD_ADDRSPEC)) {
mdb_warn("failed to walk netstack");
return (DCMD_ERR);
}
return (DCMD_OK);
}
return (DCMD_USAGE);
mdb_printf("%?s %-7s %6s\n",
"ADDR", "STACKID", "FLAGS");
}
return (DCMD_ERR);
}
/*
* Options are specified for filtering, so If any option is specified on
* the command line, just print address and exit.
*/
if (quiet) {
return (DCMD_OK);
}
mdb_printf("%0?p %6d %06x\n",
return (DCMD_OK);
}
static int
{
return (WALK_NEXT);
}
/*ARGSUSED*/
int
{
return (DCMD_USAGE);
-1) {
mdb_warn("failed to walk zone");
return (DCMD_ERR);
}
return (DCMD_OK);
}