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
61#define XDLC_U_MODIFIER_MASK 0xEC
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;
123extern int get_xdlc_control(
const uint8_t *pd,
int offset,
bool is_extended);
126 proto_tree *xdlc_tree,
int hf_xdlc_control,
int ett_xdlc_control,
129 const value_string *u_modifier_short_vals_resp,
bool is_response,
130 bool is_extended,
bool append_info);
WS_DLL_PUBLIC int dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *xdlc_tree, int hf_xdlc_control, int ett_xdlc_control, const xdlc_cf_items *cf_items_nonext, const xdlc_cf_items *cf_items_ext, const value_string *u_modifier_short_vals_cmd, const value_string *u_modifier_short_vals_resp, bool is_response, bool is_extended, bool append_info)
Definition packet-xdlc.c:154
int get_xdlc_control(const uint8_t *pd, int offset, bool is_extended)
Definition packet-xdlc.c:119
Definition packet_info.h:43
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
Definition tvbuff-int.h:36
Definition packet-xdlc.h:106