15 #include "ws_symbol_export.h"
25 #define XDLC_I_MASK 0x01
27 #define XDLC_S_U_MASK 0x03
34 #define XDLC_N_R_MASK 0xE0
35 #define XDLC_N_R_SHIFT 5
36 #define XDLC_N_R_EXT_MASK 0xFE00
37 #define XDLC_N_R_EXT_SHIFT 9
38 #define XDLC_N_S_MASK 0x0E
39 #define XDLC_N_S_SHIFT 1
40 #define XDLC_N_S_EXT_MASK 0x00FE
41 #define XDLC_N_S_EXT_SHIFT 1
47 #define XDLC_P_F_EXT 0x0100
52 #define XDLC_S_FTYPE_MASK 0x0C
56 #define XDLC_SREJ 0x0C
61 #define XDLC_U_MODIFIER_MASK 0xEC
64 #define XDLC_DISC 0x40
67 #define XDLC_SNRM 0x80
68 #define XDLC_TEST 0xE0
71 #define XDLC_FRMR 0x84
72 #define XDLC_CFGR 0xC4
73 #define XDLC_SARM 0x0C
75 #define XDLC_SABM 0x2C
76 #define XDLC_SARME 0x4C
77 #define XDLC_SABME 0x6C
78 #define XDLC_RESET 0x8C
80 #define XDLC_SNRME 0xCC
90 #define XDLC_IS_INFORMATION(control) \
91 (((control) & XDLC_I_MASK) == XDLC_I || (control) == (XDLC_UI|XDLC_U))
99 #define XDLC_CONTROL_LEN(control, is_extended) \
100 ((((control) & XDLC_S_U_MASK) == XDLC_U || !(is_extended)) ? 1 : 2)
111 int *hf_xdlc_s_ftype;
112 int *hf_xdlc_u_modifier_cmd;
113 int *hf_xdlc_u_modifier_resp;
114 int *hf_xdlc_ftype_i;
115 int *hf_xdlc_ftype_s_u;
123 extern int get_xdlc_control(
const guint8 *pd,
int offset, gboolean is_extended);
126 proto_tree *xdlc_tree,
int hf_xdlc_control, gint ett_xdlc_control,
129 const value_string *u_modifier_short_vals_resp, gboolean is_response,
130 gboolean is_extended, gboolean append_info);
Definition: packet_info.h:44
Definition: value_string.h:26
Definition: tvbuff-int.h:35