ip_stack.h revision 0f1702c5201310f0529cd5abb77652e5e9b241b6
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * CDDL HEADER START
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * The contents of this file are subject to the terms of the
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * Common Development and Distribution License (the "License").
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * You may not use this file except in compliance with the License.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * See the License for the specific language governing permissions
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * and limitations under the License.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * When distributing Covered Code, include this CDDL HEADER in each
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * If applicable, add the following below this CDDL HEADER, with the
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * fields enclosed by brackets "[]" replaced with your own identifying
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * information: Portions Copyright [yyyy] [name of copyright owner]
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * CDDL HEADER END
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * Use is subject to license terms.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * IP statistics.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont#define IP_STAT(ipst, x) ((ipst)->ips_ip_statistics.x.value.ui64++)
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont ((ipst)->ips_ip_statistics.x.value.ui64 += (n))
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormonttypedef struct ip_stat {
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont * IP6 statistics.
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont#define IP6_STAT(ipst, x) ((ipst)->ips_ip6_statistics.x.value.ui64++)
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormont ((ipst)->ips_ip6_statistics.x.value.ui64 += (n))
a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7bAndy Stormonttypedef struct ip6_stat {
} ip6_stat_t;
typedef struct ire_stats {
} ire_stats_t;
struct ip_stack {
/* ip.c */
/* ipclassifier.c - keep in ip_stack_t */
int ips_conn_g_index;
/* ip.c */
int ips_ip_g_forward;
int ips_ipv6_forward;
int ips_pim_assert;
/* ip_neti.c */
typedef int ip_stack_t;
#ifdef __cplusplus