381a2a9a387f449fab7d0c7e97c4184c26963abfdr * CDDL HEADER START
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * The contents of this file are subject to the terms of the
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * Common Development and Distribution License (the "License").
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * You may not use this file except in compliance with the License.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * See the License for the specific language governing permissions
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * and limitations under the License.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * When distributing Covered Code, include this CDDL HEADER in each
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * If applicable, add the following below this CDDL HEADER, with the
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * fields enclosed by brackets "[]" replaced with your own identifying
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * information: Portions Copyright [yyyy] [name of copyright owner]
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * CDDL HEADER END
7ddc9b1afd18f260b9fb78ec7732facd91769131Darren Reed * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * Use is subject to license terms.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * PROT_LENGTH is the max length. If the true length is bigger
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * it is truncated.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr * List pfhooks netinfo information.
381a2a9a387f449fab7d0c7e97c4184c26963abfdr/*ARGSUSED*/
381a2a9a387f449fab7d0c7e97c4184c26963abfdrnetinfolist(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh (uintptr_t)(addr + OFFSETOF(netstack_t, netstack_neti))) == -1) {
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh if (mdb_vread((void *)&nlh, sizeof (nlh), (uintptr_t)((uintptr_t)nts +
381a2a9a387f449fab7d0c7e97c4184c26963abfdr while (p) {
381a2a9a387f449fab7d0c7e97c4184c26963abfdr if (mdb_vread((void *)&nd, sizeof (nd), (uintptr_t)p) == -1) {
381a2a9a387f449fab7d0c7e97c4184c26963abfdr (char *)p + (uintptr_t)&((struct net_data *)0)->netd_info,
381a2a9a387f449fab7d0c7e97c4184c26963abfdrstatic const mdb_modinfo_t modinfo = { MDB_API_VERSION, dcmds };