Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 15 of 15) sorted by relevance

/libbtbb/wireshark/plugins-legacy/btatt/
H A Dpacket-btatt.c256 int offset = 0; in dissect_btatt() local
290 offset++; in dissect_btatt()
296 proto_tree_add_item(st, hf_btatt_req_opcode_in_error, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
297 offset++; 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()
302 offset += 2; in dissect_btatt()
303 proto_tree_add_item(st, hf_btatt_error_code, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
304 offset++; in dissect_btatt()
[all …]
/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()
774 offset += 1; in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
777 offset += 1; in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
[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()
774 offset += 1; in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
777 offset += 1; in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
[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()
774 offset += 1; in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
777 offset += 1; in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
[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()
774 offset += 1; in dissect_name_res()
776 proto_tree_add_item(tree, hf_lmp_namelen, tvb, offset, 1, ENC_NA); in dissect_name_res()
777 offset += 1; in dissect_name_res()
779 proto_tree_add_item(tree, hf_lmp_namefrag, tvb, offset, 14, ENC_ASCII|ENC_NA); in dissect_name_res()
[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/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,
/libbtbb/lib/src/
H A Dbluetooth_le_packet.c348 static void _dump_addr(const char *name, const uint8_t *buf, int offset, int random) { in _dump_addr() argument
350 printf(" %s%02x", name, buf[offset+5]); in _dump_addr()
352 printf(":%02x", buf[offset+i]); in _dump_addr()
356 static void _dump_8(const char *name, const uint8_t *buf, int offset) { in _dump_8() argument
357 printf(" %s%02x (%d)\n", name, buf[offset], buf[offset]); in _dump_8()
360 static void _dump_16(const char *name, const uint8_t *buf, int offset) { in _dump_16() argument
361 uint16_t val = buf[offset+1] << 8 | buf[offset]; in _dump_16()
365 static void _dump_24(char *name, const uint8_t *buf, int offset) { in _dump_24() argument
366 uint32_t val = buf[offset+2] << 16 | buf[offset+1] << 8 | buf[offset]; in _dump_24()
370 static void _dump_32(const char *name, const uint8_t *buf, int offset) { in _dump_32() argument
[all …]
H A Dbluetooth_packet.c373 int count, offset = -1; in promiscuous_packet_search() local
414 offset = count; in promiscuous_packet_search()
419 return offset; in promiscuous_packet_search()
427 int count, offset = -1; in find_known_lap() local
436 offset = count; in find_known_lap()
440 return offset; in find_known_lap()
446 int offset; in btbb_find_ac() local
451 offset = promiscuous_packet_search(stream, search_length, &lap, in btbb_find_ac()
454 offset = find_known_lap(stream, search_length, lap, in btbb_find_ac()
457 if (offset >= 0) { in btbb_find_ac()
[all …]
H A Dbluetooth_piconet.c575 static int channel_winnow(int offset, char channel, btbb_piconet *pn) in channel_winnow() argument
584 …observable_channel = aliased_channel(pn->sequence[(pn->clock_candidates[i] + offset) % SEQUENCE_LE… in channel_winnow()
586 observable_channel = pn->sequence[(pn->clock_candidates[i] + offset) % SEQUENCE_LENGTH]; in channel_winnow()
/libbtbb/packaging/
H A DPortfile1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc…