Home
last modified time | relevance | path

Searched refs:tvb (Results 1 – 12 of 12) sorted by relevance

/libbtbb/wireshark/plugins/btbredr/
H A Dpacket-btlmp.c759 dissect_name_req(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_req() argument
762 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_name_req()
764 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_req()
768 dissect_name_res(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_res() argument
771 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 16); in dissect_name_res()
773 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
783 dissect_accepted(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_accepted() argument
786 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_accepted()
[all …]
H A Dpacket-btbredr.c174 dissect_payload_header1(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_payload_header1() argument
179 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_payload_header1()
181 hdr_item = proto_tree_add_item(tree, hf_btbredr_pldhdr, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
184 proto_tree_add_item(hdr_tree, hf_btbredr_llid, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
185 proto_tree_add_item(hdr_tree, hf_btbredr_pldflow, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
186 proto_tree_add_item(hdr_tree, hf_btbredr_length, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
189 return tvb_get_guint8(tvb, offset) >> 3; in dissect_payload_header1()
193 dissect_fhs(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset) in dissect_fhs() argument
200 if(tvb_reported_length_remaining(tvb, offset) != 20) { in dissect_fhs()
205 fhs_item = proto_tree_add_item(tree, hf_btbredr_payload, tvb, offset, -1, ENC_NA); in dissect_fhs()
[all …]
/libbtbb/wireshark/plugins-legacy/btbredr/
H A Dpacket-btlmp.c759 dissect_name_req(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_req() argument
762 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_name_req()
764 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_req()
768 dissect_name_res(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_res() argument
771 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 16); in dissect_name_res()
773 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
783 dissect_accepted(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_accepted() argument
786 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_accepted()
[all …]
H A Dpacket-btbredr.c174 dissect_payload_header1(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_payload_header1() argument
179 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_payload_header1()
181 hdr_item = proto_tree_add_item(tree, hf_btbredr_pldhdr, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
184 proto_tree_add_item(hdr_tree, hf_btbredr_llid, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
185 proto_tree_add_item(hdr_tree, hf_btbredr_pldflow, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
186 proto_tree_add_item(hdr_tree, hf_btbredr_length, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
189 return tvb_get_guint8(tvb, offset) >> 3; in dissect_payload_header1()
193 dissect_fhs(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset) in dissect_fhs() argument
200 if(tvb_length_remaining(tvb, offset) != 20) { in dissect_fhs()
205 fhs_item = proto_tree_add_item(tree, hf_btbredr_payload, tvb, offset, -1, ENC_NA); in dissect_fhs()
[all …]
/libbtbb/wireshark/plugins/btbb/
H A Dpacket-btbrlmp.c759 dissect_name_req(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_req() argument
762 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_name_req()
764 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_req()
768 dissect_name_res(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_res() argument
771 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 16); in dissect_name_res()
773 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
783 dissect_accepted(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_accepted() argument
786 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_accepted()
[all …]
H A Dpacket-btbb.c153 dissect_payload_header1(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_payload_header1() argument
158 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) >= 1); in dissect_payload_header1()
160 hdr_item = proto_tree_add_item(tree, hf_btbb_pldhdr, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
163 proto_tree_add_item(hdr_tree, hf_btbb_llid, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
164 proto_tree_add_item(hdr_tree, hf_btbb_pldflow, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
165 proto_tree_add_item(hdr_tree, hf_btbb_length, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
168 return tvb_get_guint8(tvb, offset) >> 3; in dissect_payload_header1()
172 dissect_fhs(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_fhs() argument
179 DISSECTOR_ASSERT(tvb_reported_length_remaining(tvb, offset) == 20); in dissect_fhs()
181 fhs_item = proto_tree_add_item(tree, hf_btbb_payload, tvb, offset, -1, ENC_NA); in dissect_fhs()
[all …]
/libbtbb/wireshark/plugins-legacy/btbb/
H A Dpacket-btbrlmp.c759 dissect_name_req(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_req() argument
762 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_name_req()
764 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_req()
768 dissect_name_res(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_name_res() argument
771 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 16); in dissect_name_res()
773 proto_tree_add_item(tree, hf_lmp_nameoffset, tvb, offset, 1, ENC_NA); in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
783 dissect_accepted(proto_tree *tree, tvbuff_t *tvb, int offset, int len) in dissect_accepted() argument
786 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_accepted()
[all …]
H A Dpacket-btbb.c153 dissect_payload_header1(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_payload_header1() argument
158 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_payload_header1()
160 hdr_item = proto_tree_add_item(tree, hf_btbb_pldhdr, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
163 proto_tree_add_item(hdr_tree, hf_btbb_llid, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
164 proto_tree_add_item(hdr_tree, hf_btbb_pldflow, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
165 proto_tree_add_item(hdr_tree, hf_btbb_length, tvb, offset, 1, ENC_NA); in dissect_payload_header1()
168 return tvb_get_guint8(tvb, offset) >> 3; in dissect_payload_header1()
172 dissect_fhs(proto_tree *tree, tvbuff_t *tvb, int offset) in dissect_fhs() argument
179 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) == 20); in dissect_fhs()
181 fhs_item = proto_tree_add_item(tree, hf_btbb_payload, tvb, offset, -1, ENC_NA); in dissect_fhs()
[all …]
/libbtbb/wireshark/plugins-legacy/btatt/
H A Dpacket-btatt.c254 dissect_btatt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) in dissect_btatt() argument
282 if (tvb_length_remaining(tvb, 0) < 1) in dissect_btatt()
285 ti = proto_tree_add_item(tree, proto_btatt, tvb, 0, -1, ENC_NA); in dissect_btatt()
288 item = proto_tree_add_item(st, hf_btatt_opcode, tvb, 0, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
289 opcode = tvb_get_guint8(tvb, 0); in dissect_btatt()
296 proto_tree_add_item(st, hf_btatt_req_opcode_in_error, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
298 proto_tree_add_item(st, hf_btatt_handle_in_error, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
300 val_to_str(tvb_get_guint8(tvb, offset+2), error_vals, "<unknown>"), in dissect_btatt()
301 tvb_get_letohs(tvb, offset)); in dissect_btatt()
303 proto_tree_add_item(st, hf_btatt_error_code, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
[all …]
/libbtbb/wireshark/plugins-legacy/btle/
H A Dpacket-btle.c125 dissect_adv_ind_or_nonconn_or_scan(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset,… in dissect_adv_ind_or_nonconn_or_scan() argument
129 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_adv_ind_or_nonconn_or_scan()
131 adv_addr = tvb_get_ptr(tvb, offset, 6); in dissect_adv_ind_or_nonconn_or_scan()
134 proto_tree_add_ether(tree, hf_btle_adv_addr, tvb, offset, 6, adv_addr); in dissect_adv_ind_or_nonconn_or_scan()
135 proto_tree_add_item(tree, hf_btle_adv_data, tvb, offset + 6, datalen, TRUE); in dissect_adv_ind_or_nonconn_or_scan()
139 dissect_adv_direct_ind(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset) in dissect_adv_direct_ind() argument
143 DISSECTOR_ASSERT(tvb_length_remaining(tvb, offset) >= 1); in dissect_adv_direct_ind()
145 adv_addr = tvb_get_ptr(tvb, offset, 6); in dissect_adv_direct_ind()
147 init_addr = tvb_get_ptr(tvb, offset+6, 6); in dissect_adv_direct_ind()
150 proto_tree_add_ether(tree, hf_btle_adv_addr, tvb, offset, 6, adv_addr); in dissect_adv_direct_ind()
[all …]
H A Dwireshark-1.8-btle-ppi.patch30 + proto_tree_add_text(ppi_tree, tvb, offset, data_len,
36 + next_tvb = tvb_new_subset(tvb, offset + 4, data_len - 4 , -1);
42 proto_tree_add_text(ppi_tree, tvb, offset, data_len,
108 +dissect_ppi_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
109 + /* These are locals used for processing the current tvb */
131 + ti = proto_tree_add_protocol_format(tree, proto_ppi_btle, tvb, 0, length, "BTLE:");
134 + length = tvb_length(tvb);
142 + channel = tvb_get_letohs(tvb, 1);
143 + clkn_high = tvb_get_guint8(tvb, 3);
144 + clk100ns = tvb_get_letohl(tvb, 4);
[all …]
/libbtbb/wireshark/plugins-legacy/btsm/
H A Dpacket-btsm.c101 dissect_pairing_request(tvbuff_t *tvb, proto_tree *tree) in dissect_pairing_request() argument
106 proto_tree_add_item(tree, hf_btsm_pairing_request_io_capability, tvb, 1, 1, TRUE); in dissect_pairing_request()
107 proto_tree_add_item(tree, hf_btsm_pairing_request_oob_data, tvb, 2, 1, TRUE); in dissect_pairing_request()
109 auth_req_item = proto_tree_add_item(tree, hf_btsm_pairing_request_auth_req, tvb, 3, 1, TRUE); in dissect_pairing_request()
111 proto_tree_add_item(auth_req_tree, hf_btsm_pairing_request_reserved, tvb, 3, 1, TRUE); in dissect_pairing_request()
112 proto_tree_add_bits_item(auth_req_tree, hf_btsm_pairing_request_mitm, tvb, 3 * 8 + 5, 1, TRUE); in dissect_pairing_request()
113 proto_tree_add_item(auth_req_tree, hf_btsm_pairing_request_bonding_flags, tvb, 3, 1, TRUE); in dissect_pairing_request()
116 proto_tree_add_item(tree, hf_btsm_pairing_request_max_key_size, tvb, 4, 1, TRUE); in dissect_pairing_request()
117 proto_tree_add_item(tree, hf_btsm_pairing_request_initiator_key_distribution, tvb, 5, 1, TRUE); in dissect_pairing_request()
118 proto_tree_add_item(tree, hf_btsm_pairing_request_responder_key_distribution, tvb, 6, 1, TRUE); in dissect_pairing_request()
[all …]