Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-pw-atm.h
1 /* packet-pw-atm.h
2  * Interface of pw-atm module
3  * Copyright 2009, Artem Tamazov <artem.tamazov@tellabs.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef PACKET_PW_ATM_H
13 #define PACKET_PW_ATM_H
14 
15 #include "packet-pw-common.h"
16 
17 typedef enum {
18  PWATM_MODE_UNKNOWN = 0
19  ,PWATM_MODE_N1_NOCW
20  ,PWATM_MODE_N1_CW
21  ,PWATM_MODE_11_VCC
22  ,PWATM_MODE_11_VPC
23  ,PWATM_MODE_AAL5_SDU
24  ,PWATM_MODE_AAL5_PDU
25 } pwatm_mode_t;
26 
27 typedef enum {
28  PWATM_SUBMODE_DEFAULT = 0
29  ,PWATM_SUBMODE_ADMIN_CELL /*used in aal5_sdu dissector only*/
30 } pwatm_submode_t;
31 
32 typedef struct {
33  int pw_cell_number;
34  int props;
35  gint packet_size;
36  pwatm_mode_t mode;
37  pwatm_submode_t submode;
38  struct {
39  /*
40  * ATM-specific attributes which remain the same
41  * across all the cells in the pw packet. Values are filled
42  * by sub-dissectors and read by upper-level dissector.
43  * Meanings of values:
44  * (-1) - value is unknown
45  * (-2) - value is different among cells
46  * positive - value is the same in all cells
47  * Machinery is implemented in the UPDATE_CUMULATIVE_VALUE macro.
48  */
49  gint32 vpi;
50  gint32 vci;
51  gint32 clp;
52  gint32 pti;
53  } cumulative;
54  gint32 vpi; /*-1 if unknown*/
55  gint32 vci; /*-1 if unknown*/
56  gint32 pti; /*-1 if unknown*/
57  struct {
58  /*
59  * Some fields from 3rd byte of CW. Filled by cell_header dissector.
60  * In in AAL5 PDU mode, this allows control_word dissector to print
61  * these values in the CW heading line in the tree.
62  * Meanings of values:
63  * (-1) - value is unknown
64  */
65  gint32 m;
66  gint32 v;
67  gint32 rsv;
68  gint32 u;
69  gint32 e;
70  gint32 clp;
71  } cwb3;
72  gboolean aal5_sdu_frame_relay_cr_bit; /*see rfc4717 10.1*/
73  gboolean cell_mode_oam; /*atm admin cell*/
74  gboolean enable_fill_columns_by_atm_dissector;
76 
77 
78 #define PWATM_PRIVATE_DATA_T_INITIALIZER { \
79  0, PWC_PACKET_PROPERTIES_T_INITIALIZER, 0 \
80  ,PWATM_MODE_UNKNOWN, PWATM_SUBMODE_DEFAULT \
81  ,{-1, -1, -1, -1 } \
82  ,-1, -1, -1 \
83  ,{-1, -1, -1, -1, -1, -1 } \
84  ,FALSE, FALSE, TRUE \
85  }
86 
87 #endif /*PACKET_PW_ATM_H*/
Definition: packet-pw-atm.h:32