Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-pw-common.h
1/* packet-pw-common.h
2 * Interface of pw-common module
3 * Copyright 2009, Artem Tamazov <[email protected]>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
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 <epan/packet.h>
16
17#define PWC_SIZEOF_CW 4
18
19extern const char pwc_longname_pw_satop[];
20extern const char pwc_longname_pw_cesopsn[];
21extern const char pwc_longname_pw_atm_n1_cw[];
22extern const char pwc_longname_pw_atm_n1_nocw[];
23extern const char pwc_longname_pw_atm_11_or_aal5_pdu[];
24extern const char pwc_longname_pw_atm_aal5_sdu[];
25
26extern const value_string pwc_vals_cw_l_bit[];
27extern const value_string pwc_vals_cw_r_bit[];
28extern const value_string pwc_vals_cw_frag[];
29
30typedef enum {
31 PWC_CW_BAD_BITS03 = 1 << 0
32 ,PWC_CW_BAD_PAYLEN_LT_0 = 1 << 1
33 ,PWC_CW_BAD_PAYLEN_GT_PACKET = 1 << 2
34 ,PWC_CW_BAD_LEN_MUST_BE_0 = 1 << 3
35 ,PWC_CW_BAD_FRAG = 1 << 4
36 ,PWC_CW_BAD_RSV = 1 << 5
37 ,PWC_CW_BAD_FLAGS = 1 << 8
38 ,PWC_CW_BAD_PAYLEN_LE_0 = 1 << 9
39 ,PWC_CW_BAD_PADDING_NE_0 = 1 << 10
40 ,PWC_ANYOF_CW_BAD = PWC_CW_BAD_BITS03
41 + PWC_CW_BAD_PAYLEN_LT_0
42 + PWC_CW_BAD_PAYLEN_GT_PACKET
43 + PWC_CW_BAD_LEN_MUST_BE_0
44 + PWC_CW_BAD_FRAG
45 + PWC_CW_BAD_RSV
46 + PWC_CW_BAD_FLAGS
47 + PWC_CW_BAD_PAYLEN_LE_0
48 + PWC_CW_BAD_PADDING_NE_0
49 ,PWC_CW_SUSPECT_LM = 1 << 6
50 ,PWC_ANYOF_CW_SUSPECT = PWC_CW_SUSPECT_LM
51 ,PWC_PAY_SIZE_BAD = 1 << 7
52}
53pwc_packet_properties_t;
54#define PWC_PACKET_PROPERTIES_T_INITIALIZER 0
55
56typedef enum {
57 PWC_DEMUX_MPLS = 0
58 ,PWC_DEMUX_UDP /*IPv4/IPv6 and UDP as demultiplexing layer*/
59 ,PWC_DEMUX_L2TP /*IPv4/IPv6 and L2TPv3 as demultiplexing layer*/
60}
61pwc_demux_type_t;
62
63extern void pwc_item_append_cw(proto_item* item, const uint32_t cw, const bool append_text);
64extern void pwc_item_append_text_n_items(proto_item* item, const int n, const char * const item_text);
65
66#endif
Definition proto.h:903
Definition value_string.h:25