/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _TRILL_IMPL_H
#define _TRILL_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <net/bridge_impl.h>
/* kstats per TRILL socket */
typedef struct trill_kssock_s {
struct trill_node_s;
/*
* TRILL instance structure, one for each TRILL instance running in
* support of a bridge instance. Members ti_bridgename and ti_binst
* refer to the specific bridge instance. The bridge instance in
* question must be online before we can support and rely on it.
* We rely on the bridge instance for TRILL sockets to transmit and
* receive TRILL packets. Each TRILL instance holds the TRILL
* forwarding and nick database in ti_nodes. trill_inst_rwlock
* protects changes to the TRILL instances list. Within each TRILL
* instance the ti_rwlock protects changes to the structure. A refcount
* (ti_refs) helps in destroying the TRILL instance when all TRILL
* sockets part of the instance are shutdown.
*/
typedef struct trill_s {
} trill_inst_t;
/*
* TRILL socket structure. IS-IS daemon opens a TRILL socket for
* each broadcast link the TRILL IS-IS protocol instance is
* running on. TRILL specific link properties, state and stats
* are stored as well. ts_vlanfwder indicates whether the RBridges
* is the designated forwarder on the link for a particular VLAN.
* A refcount (ts_refs) ensures the last consumer (TRILL module
* or the IS-IS daemon) destroys the socket.
*/
typedef struct trillsocket_s {
} trill_sock_t;
/*
* TRILL socket flags (ts_flags). TSF_SHUTDOWN indicates the TRILL socket
* owner (IS-IS daemon process) had done a close on the socket and other
* consumers (TRILL threads) should not pass any packets downstream.
* TSF_CLOSEWAIT indicates socket close is in progress.
*/
/*
* TRILL node information structure. Holds information to reach the
* TRILL node and other RBridge information specified in trill_nick_info_t
*/
typedef struct trill_node_s {
} trill_node_t;
/* Limit to alloc max 1MB per trill_nickinfo_t received from user daemon */
#ifdef __cplusplus
}
#endif
#endif /* _TRILL_IMPL_H */