2 * Interface of pw-atm module
3 * Copyright 2009, Artem Tamazov <artem.tamazov@tellabs.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef PACKET_PW_ATM_H
27 #define PACKET_PW_ATM_H
29 #include "packet-pw-common.h"
32 PWATM_MODE_UNKNOWN
= 0
42 PWATM_SUBMODE_DEFAULT
= 0
43 ,PWATM_SUBMODE_ADMIN_CELL
/*used in aal5_sdu dissector only*/
51 pwatm_submode_t submode
;
54 * ATM-specific attributes which remain the same
55 * across all the cells in the pw packet. Values are filled
56 * by sub-dissectors and read by upper-level dissector.
58 * (-1) - value is unknown
59 * (-2) - value is different among cells
60 * positive - value is the same in all cells
61 * Machinery is implemented in the UPDATE_CUMULATIVE_VALUE macro.
68 gint32 vpi
; /*-1 if unknown*/
69 gint32 vci
; /*-1 if unknown*/
70 gint32 pti
; /*-1 if unknown*/
73 * Some fields from 3rd byte of CW. Filled by cell_header dissector.
74 * In in AAL5 PDU mode, this allows control_word dissector to print
75 * these values in the CW heading line in the tree.
77 * (-1) - value is unknown
86 gboolean aal5_sdu_frame_relay_cr_bit
; /*see rfc4717 10.1*/
87 gboolean cell_mode_oam
; /*atm admin cell*/
88 gboolean enable_fill_columns_by_atm_dissector
;
89 } pwatm_private_data_t
;
92 #define PWATM_PRIVATE_DATA_T_INITIALIZER { \
93 0, PWC_PACKET_PROPERTIES_T_INITIALIZER, 0 \
94 ,PWATM_MODE_UNKNOWN, PWATM_SUBMODE_DEFAULT \
97 ,{-1, -1, -1, -1, -1, -1 } \
101 #endif /*PACKET_PW_ATM_H*/