sppptun_impl.h revision f53eecf557986dac6ededb388fedd6ca63be0350
/*
* 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.
*/
/*
* sppptun_impl.h - Internal sppptun data exposed for adb/mdb macros.
*/
#ifndef _SPPPTUN_IMPL_H
#define _SPPPTUN_IMPL_H
#ifdef __cplusplus
extern "C" {
#endif
struct qelem {
};
typedef struct {
} tll_kstats_t;
#define TLL_KSTATS_NAMES \
"octrls", "octrl_drop", "clients", "walks", "in_nomatch", \
"indata", "indata_drops", "inctrls", "inctrl_drops"
typedef struct {
} tcl_kstats_t;
#define TCL_KSTATS_NAMES \
"octrls", "octrl_drop", "octrl_spec", "walks", "inctrls", \
"inctrl_drops"
/*
* Tunnel lower layer structure; module open; connects to output device.
*
* Note: tll_flags member carefully aligned to match with tcl_flags in
* following structure so that we don't have to continually look at
* q_next to determine context. Do not move these around.
*
*/
struct tunll_s {
int tll_error;
int tll_index;
int tll_muxid;
int tll_style; /* Interface type; PTS_* */
int tll_alen; /* Address length */
int tll_msg_pending;
};
/*
* Tunnel client structure; used for each device open.
*
* There is one of these for each PPP session plus (perhaps) one for
* each tunneling protocol server daemon.
*
*/
struct tuncl_s {
int tcl_unit; /* PPP unit number (for debug) */
};
#define TO_TLL(p) \
#ifdef __cplusplus
}
#endif
#endif /* _SPPPTUN_IMPL_H */