Lines Matching refs:offset
256 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()
308 col_append_fstr(pinfo->cinfo, COL_INFO, ", Client Rx MTU: %u", tvb_get_letohs(tvb, offset)); in dissect_btatt()
309 proto_tree_add_item(st, hf_btatt_client_rx_mtu, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
310 offset += 2; in dissect_btatt()
314 col_append_fstr(pinfo->cinfo, COL_INFO, ", Server Rx MTU: %u", tvb_get_letohs(tvb, offset)); in dissect_btatt()
315 proto_tree_add_item(st, hf_btatt_server_rx_mtu, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
316 offset += 2; in dissect_btatt()
321 tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
322 proto_tree_add_item(st, hf_btatt_starting_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
323 offset += 2; in dissect_btatt()
324 proto_tree_add_item(st, hf_btatt_ending_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
325 offset += 2; in dissect_btatt()
330 guint8 format = tvb_get_guint8(tvb, offset); in dissect_btatt()
332 item = proto_tree_add_item(st, hf_btatt_uuid_format, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
333 offset++; in dissect_btatt()
336 while( tvb_length_remaining(tvb, offset) > 0) { in dissect_btatt()
337 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
338 offset += 2; in dissect_btatt()
339 proto_tree_add_item(st, hf_btatt_uuid16, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
340 offset += 2; in dissect_btatt()
344 while( tvb_length_remaining(tvb, offset) > 0) { in dissect_btatt()
345 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
346 offset += 2; in dissect_btatt()
347 proto_tree_add_item(st, hf_btatt_uuid128, tvb, offset, 16, ENC_NA); in dissect_btatt()
348 offset += 16; in dissect_btatt()
359 … val_to_str_ext_const(tvb_get_letohs(tvb, offset+4), &uuid_vals_ext, "<unknown>"), in dissect_btatt()
360 tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
362 proto_tree_add_item(st, hf_btatt_starting_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
363 offset += 2; in dissect_btatt()
364 proto_tree_add_item(st, hf_btatt_ending_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
365 offset += 2; in dissect_btatt()
366 proto_tree_add_item(st, hf_btatt_uuid16, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
367 offset += 2; in dissect_btatt()
368 if( tvb_length_remaining(tvb, offset) > 0) in dissect_btatt()
369 proto_tree_add_item(st, hf_btatt_value, tvb, offset, -1, ENC_NA); in dissect_btatt()
373 while( tvb_length_remaining(tvb, offset) > 0 ) { in dissect_btatt()
374 item = proto_tree_add_text(st, tvb, offset, 4, in dissect_btatt()
376 … tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
380 proto_tree_add_item(ltree, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
381 offset += 2; in dissect_btatt()
382 … proto_tree_add_item(ltree, hf_btatt_group_end_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
383 offset += 2; in dissect_btatt()
390 … val_to_str_ext_const(tvb_get_letohs(tvb, offset+4), &uuid_vals_ext, "<unknown>"), in dissect_btatt()
391 tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
393 proto_tree_add_item(st, hf_btatt_starting_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
394 offset += 2; in dissect_btatt()
395 proto_tree_add_item(st, hf_btatt_ending_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
396 offset += 2; in dissect_btatt()
398 if (tvb_length_remaining(tvb, offset) == 2) { in dissect_btatt()
399 proto_tree_add_item(st, hf_btatt_uuid16, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
400 offset += 2; in dissect_btatt()
402 else if (tvb_length_remaining(tvb, offset) == 16) { in dissect_btatt()
403 item = proto_tree_add_item(st, hf_btatt_uuid128, tvb, offset, 16, ENC_NA); in dissect_btatt()
404 proto_item_append_text(item, " (%s)", val_to_str_ext_const(tvb_get_letohs(tvb, offset), in dissect_btatt()
406 offset += 16; in dissect_btatt()
412 guint8 length = tvb_get_guint8(tvb, offset); in dissect_btatt()
414 proto_tree_add_item(st, hf_btatt_length, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
415 offset++; 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()
424 tvb_get_letohs(tvb, offset)); in dissect_btatt()
428 proto_tree_add_item(ltree, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
429 offset += 2; 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()
438 col_append_fstr(pinfo->cinfo, COL_INFO, ", Handle: 0x%04x", tvb_get_letohs(tvb, offset)); in dissect_btatt()
439 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
440 offset += 2; in dissect_btatt()
446 proto_tree_add_item(st, hf_btatt_value, tvb, offset, -1, ENC_NA); in dissect_btatt()
451 tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
452 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
453 offset += 2; in dissect_btatt()
454 proto_tree_add_item(st, hf_btatt_offset, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
455 offset += 2; in dissect_btatt()
459 if(tvb_length_remaining(tvb, offset) < 4) { in dissect_btatt()
466 while (tvb_length_remaining(tvb, offset) >= 2) { in dissect_btatt()
467 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
468 col_append_fstr(pinfo->cinfo, COL_INFO, "0x%04x ", tvb_get_letohs(tvb, offset)); in dissect_btatt()
469 offset += 2; in dissect_btatt()
475 guint8 length = tvb_get_guint8(tvb, offset); in dissect_btatt()
477 proto_tree_add_item(st, hf_btatt_length, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
478 offset++; in dissect_btatt()
481 …r(pinfo->cinfo, COL_INFO, ", Attribute List Length: %u", tvb_length_remaining(tvb, offset)/length); in dissect_btatt()
483 while (tvb_length_remaining(tvb, offset) >= length) { in dissect_btatt()
484 item = proto_tree_add_text(st, tvb, offset, length, in dissect_btatt()
486 … tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
490 proto_tree_add_item(ltree, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
491 offset += 2; in dissect_btatt()
492 … proto_tree_add_item(ltree, hf_btatt_group_end_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
493 offset += 2; in dissect_btatt()
494 … proto_tree_add_item(ltree, hf_btatt_value, tvb, offset, length-4, ENC_LITTLE_ENDIAN); in dissect_btatt()
495 offset += (length-4); in dissect_btatt()
505 col_append_fstr(pinfo->cinfo, COL_INFO, ", Handle: 0x%04x", tvb_get_letohs(tvb, offset)); in dissect_btatt()
506 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
507 offset += 2; in dissect_btatt()
508 proto_tree_add_item(st, hf_btatt_value, tvb, offset, -1, ENC_NA); in dissect_btatt()
514 tvb_get_letohs(tvb, offset), tvb_get_letohs(tvb, offset+2)); in dissect_btatt()
515 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
516 offset += 2; in dissect_btatt()
517 proto_tree_add_item(st, hf_btatt_offset, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
518 offset += 2; in dissect_btatt()
519 proto_tree_add_item(st, hf_btatt_value, tvb, offset, -1, ENC_NA); in dissect_btatt()
524 val_to_str(tvb_get_guint8(tvb, offset), flags_vals, "<unknown>")); in dissect_btatt()
525 proto_tree_add_item(st, hf_btatt_flags, tvb, offset, 1, ENC_LITTLE_ENDIAN); in dissect_btatt()
526 offset++; in dissect_btatt()
533 … col_append_fstr(pinfo->cinfo, COL_INFO, ", Handle: 0x%04x", tvb_get_letohs(tvb, offset)); in dissect_btatt()
534 proto_tree_add_item(st, hf_btatt_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN); in dissect_btatt()
535 offset += 2; in dissect_btatt()
536 length = tvb_length_remaining(tvb, offset); in dissect_btatt()
538 proto_tree_add_item(st, hf_btatt_value, tvb, offset, length-12, ENC_NA); in dissect_btatt()
539 offset+=length-12; in dissect_btatt()
542 proto_tree_add_item(st, hf_btatt_sign_counter, tvb, offset, 4, ENC_LITTLE_ENDIAN); in dissect_btatt()
543 offset+=4; in dissect_btatt()
544 proto_tree_add_item(st, hf_btatt_signature, tvb, offset, 8, ENC_NA); in dissect_btatt()
545 offset+=8; in dissect_btatt()