/*
* 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.
*/
#ifndef _INET_IP_STACK_H
#define _INET_IP_STACK_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/netstack.h>
#include <netinet/igmp_var.h>
#ifdef _KERNEL
/*
* IP statistics.
*/
typedef struct ip_stat {
} ip_stat_t;
/*
* IP6 statistics.
*/
typedef struct ip6_stat {
} ip6_stat_t;
typedef struct ire_stats {
} ire_stats_t;
#define IDLHASHINDEX(X) \
/* Data structure to represent addresses */
typedef struct srcid_map {
} srcid_map_t;
/*
* IP stack instances
*/
struct ip_stack {
/*
* IPv6 mibs when the interface (ill) is not known.
* When the ill is known the per-interface mib in the ill is used.
*/
/* ip.c */
/* Taskq dispatcher for capability operations */
/* ipclassifier.c - keep in ip_stack_t */
/* ipclassifier hash tables */
int ips_conn_g_index;
/* ip.c */
/* Following protected by igmp_timer_lock */
/* Following protected by mld_timer_lock */
/* Protected by igmp_slowtimeout_lock */
/* Protected by mld_slowtimeout_lock */
/* IPv4 forwarding table */
/*
* ire_ft_init_lock is used while initializing ip_forwarding_table
* dynamically in ire_add.
*/
/*
* This is the IPv6 counterpart of RADIX_NODE_HEAD_LOCK. It is used
* to prevent adds and deletes while we are doing a ftable_lookup
* and extracting the ire_generation.
*/
/* Count how many condemned objects for kmem_cache callbacks */
/* ips_ire_dep_lock protects ire_dep_* relationship between IREs */
/* Destination Cache Entries */
/* pending binds */
/* Synchronize updates with table usage */
/* The number of policy entries in the table */
/* Time since last icmp_pkt_err */
/* Number of packets sent in burst */
/* Protected by ip_mi_lock */
/* Multirouting stuff */
/* Interval (in ms) between consecutive 'bad MTU' warnings */
/* Time since last warning issued. */
/*
* CGTP hooks. Enabling and disabling of hooks is controlled by an
* IP tunable 'ips_ip_cgtp_filter'.
*/
/* When set search for unused index */
/* ip_mroute stuff */
/* numvifs is only a hint about the max interface being used. */
/*
* One-back cache used to locate a tunnel's vif,
* given a datagram's src ip address.
*/
/*
* reg_vif_num is protected by numvifs_mutex
*/
/* Whether or not special PIM assert processing is enabled. */
int ips_pim_assert;
/* Array of conn drain lists */
/*
* ID used to assign next free one.
* Increases by one. Once it wraps we search for an unused ID.
*/
/* ip_netinfo.c */
/*
* Hooks for firewalling
*/
/* ipmp.c */
};
/* Finding an ip_stack_t */
#else /* _KERNEL */
typedef int ip_stack_t;
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _INET_IP_STACK_H */