12#ifndef PACKET_PW_COMMON_H
13#define PACKET_PW_COMMON_H
17#define PWC_SIZEOF_CW 4
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[];
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
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
53pwc_packet_properties_t;
54#define PWC_PACKET_PROPERTIES_T_INITIALIZER 0
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);
Definition value_string.h:25