Home
last modified time | relevance | path

Searched refs:length (Results 1 – 10 of 10) sorted by relevance

/libbtbb/wireshark/plugins-legacy/btatt/
H A Dpacket-btatt.c412 guint8 length = tvb_get_guint8(tvb, offset); in dissect_btatt() local
417 if(length > 0) { in dissect_btatt()
419 tvb_length_remaining(tvb, offset)/length); in dissect_btatt()
421 while (tvb_length_remaining(tvb, offset) >= length) in dissect_btatt()
423 … item = proto_tree_add_text(st, tvb, offset, length, "Attribute Data, Handle: 0x%04x", in dissect_btatt()
430 … proto_tree_add_item(ltree, hf_btatt_value, tvb, offset, length-2, ENC_LITTLE_ENDIAN); in dissect_btatt()
431 offset += (length-2); in dissect_btatt()
475 guint8 length = tvb_get_guint8(tvb, offset); in dissect_btatt() local
480 if(length > 0) { in dissect_btatt()
481 …r(pinfo->cinfo, COL_INFO, ", Attribute List Length: %u", tvb_length_remaining(tvb, offset)/length); in dissect_btatt()
[all …]
/libbtbb/lib/src/
H A Dbluetooth_packet.c467 void btbb_packet_set_data(btbb_packet *pkt, char *data, int length, in btbb_packet_set_data() argument
472 if (length > MAX_SYMBOLS) in btbb_packet_set_data()
473 length = MAX_SYMBOLS; in btbb_packet_set_data()
474 for (i = 0; i < length; i++) in btbb_packet_set_data()
477 pkt->length = length; in btbb_packet_set_data()
552 static int unfec13(char *input, char *output, int length) in unfec13() argument
557 for (i = 0; i < length; i++) { in unfec13()
567 return (be < (length / 4)); in unfec13()
585 static char *unfec23(char *input, int length) in unfec23() argument
595 diff = length % 10; in unfec23()
[all …]
H A Dbluetooth_le_packet.c299 (*pkt)->length = (*pkt)->symbols[5] & 0x1f; in lell_allocate_and_decode()
304 (*pkt)->length = (*pkt)->symbols[5] & 0x3f; in lell_allocate_and_decode()
554 pkt->length); in lell_print()
594 pkt->length); in lell_print()
603 if (pkt->length-6 > 0) { in lell_print()
605 for (i = 0; i < pkt->length - 6; ++i) in lell_print()
608 _dump_scan_rsp_data(&pkt->symbols[12], pkt->length-6); in lell_print()
622 for (i = 0; i < pkt->length - 6; ++i) in lell_print()
625 _dump_scan_rsp_data(&pkt->symbols[12], pkt->length-6); in lell_print()
653 for (i = 6; i < 6 + pkt->length; ++i) in lell_print()
[all …]
H A Dbluetooth_le_packet.h53 int length; member
H A Dbluetooth_packet.h109 uint16_t length; /* number of symbols */ member
H A Dpcap.c327 pkt->length + 4 + 2 + 3, // AA + header + CRC in lell_pcap_append_packet()
389 unsigned packet_len = pkt->length + 4 + 2 + 3; // AA + header + CRC in lell_pcap_append_ppi_packet()
H A Dbtbb.h118 int length, // Number of symbols
H A Dpcapng-bt.c479 9+pkt->length, in lell_pcapng_append_packet()
/libbtbb/wireshark/plugins-legacy/btle/
H A Dpacket-btle.c244 dissect_ll_control(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, guint8 length) in dissect_ll_control() argument
263 if (length > 1) in dissect_ll_control()
264 proto_tree_add_item(tree, hf_btle_ll_control_data, tvb, offset + 1, length-1, TRUE); in dissect_ll_control()
269 if (length > 1) in dissect_ll_control()
270 proto_tree_add_item(tree, hf_btle_ll_control_data, tvb, offset + 1, length-1, TRUE); in dissect_ll_control()
282 guint8 type, length; in dissect_btle() local
309 length = tvb_get_guint8(tvb, 5) & 0x3f; in dissect_btle()
347 dissect_adv_ind_or_nonconn_or_scan(btle_tree, tvb, pinfo, offset, length - 6); in dissect_btle()
356 dissect_scan_rsp(btle_tree, tvb, pinfo, offset, length - 6); in dissect_btle()
365 offset += length; in dissect_btle()
[all …]
H A Dwireshark-1.8-btle-ppi.patch110 + guint length;
131 + ti = proto_tree_add_protocol_format(tree, proto_ppi_btle, tvb, 0, length, "BTLE:");
133 + /* Sanity check length of tag */
134 + length = tvb_length(tvb);
135 + if (length < PPI_BTLE_MINTAGLEN) {
137 + proto_item_append_text(ti, "Invalid PPI-BTLE length (got %d, %d min)", length, PPI_BT…
168 …ppend_text(ti, "Warning: New version of PPI-BTLE (length %d, I can only decode first %d bytes)", l…
171 + /* perform tag-specific max length sanity checking */
172 + else if (length > PPI_BTLE_MAXTAGLEN ) {
174 + proto_item_append_text(ti, "Invalid PPI-BTLE length (got %d, %d max)", length, PPI_BT…