Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-pw-common.h
1 /* packet-pw-common.h
2 * Interface of pw-common 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_COMMON_H
13 #define PACKET_PW_COMMON_H
14
15 #include <glib.h>
16 #include <epan/packet.h>
17
18 #define PWC_SIZEOF_CW 4
19
20 extern const char pwc_longname_pw_satop[];
21 extern const char pwc_longname_pw_cesopsn[];
22 extern const char pwc_longname_pw_atm_n1_cw[];
23 extern const char pwc_longname_pw_atm_n1_nocw[];
24 extern const char pwc_longname_pw_atm_11_or_aal5_pdu[];
25 extern const char pwc_longname_pw_atm_aal5_sdu[];
26
27 extern const value_string pwc_vals_cw_l_bit[];
28 extern const value_string pwc_vals_cw_r_bit[];
29 extern const value_string pwc_vals_cw_frag[];
30
31 typedef enum {
32 PWC_CW_BAD_BITS03 = 1 << 0
33 ,PWC_CW_BAD_PAYLEN_LT_0 = 1 << 1
34 ,PWC_CW_BAD_PAYLEN_GT_PACKET = 1 << 2
35 ,PWC_CW_BAD_LEN_MUST_BE_0 = 1 << 3
36 ,PWC_CW_BAD_FRAG = 1 << 4
37 ,PWC_CW_BAD_RSV = 1 << 5
38 ,PWC_CW_BAD_FLAGS = 1 << 8
39 ,PWC_CW_BAD_PAYLEN_LE_0 = 1 << 9
40 ,PWC_CW_BAD_PADDING_NE_0 = 1 << 10
41 ,PWC_ANYOF_CW_BAD = PWC_CW_BAD_BITS03
42 + PWC_CW_BAD_PAYLEN_LT_0
43 + PWC_CW_BAD_PAYLEN_GT_PACKET
44 + PWC_CW_BAD_LEN_MUST_BE_0
45 + PWC_CW_BAD_FRAG
46 + PWC_CW_BAD_RSV
47 + PWC_CW_BAD_FLAGS
48 + PWC_CW_BAD_PAYLEN_LE_0
49 + PWC_CW_BAD_PADDING_NE_0
50 ,PWC_CW_SUSPECT_LM = 1 << 6
51 ,PWC_ANYOF_CW_SUSPECT = PWC_CW_SUSPECT_LM
52 ,PWC_PAY_SIZE_BAD = 1 << 7
53 }
54 pwc_packet_properties_t;
55 #define PWC_PACKET_PROPERTIES_T_INITIALIZER 0
56
57 typedef enum {
58 PWC_DEMUX_MPLS = 0
59 ,PWC_DEMUX_UDP /*IPv4/IPv6 and UDP as demultiplexing layer*/
60 ,PWC_DEMUX_L2TP /*IPv4/IPv6 and L2TPv3 as demultiplexing layer*/
61 }
62 pwc_demux_type_t;
63
64 extern void pwc_item_append_cw(proto_item* item, const guint32 cw, const gboolean append_text);
65 extern void pwc_item_append_text_n_items(proto_item* item, const int n, const char * const item_text);
66
67 #endif
_value_string
Definition: value_string.h:24
_proto_node
Definition: proto.h:759