aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Dieb Martins <andre.dieb@signove.com>2011-02-09 14:28:54 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-02-09 14:02:32 -0800
commit1bf899c50046aa30df16102b9825c972b3a9b56c (patch)
treeee0f37a966bea97672293afff95e53e4e80ad100
parent8a2b87f8e95fc3982edc70361e03ee9cba7d012e (diff)
downloadbluez-hcidump-1bf899c50046aa30df16102b9825c972b3a9b56c.tar.gz
bluez-hcidump-1bf899c50046aa30df16102b9825c972b3a9b56c.tar.xz
bluez-hcidump-1bf899c50046aa30df16102b9825c972b3a9b56c.zip
Add ATT dump for read req/resp
-rw-r--r--parser/att.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/parser/att.c b/parser/att.c
index d8a10fc..887cdac 100644
--- a/parser/att.c
+++ b/parser/att.c
@@ -330,6 +330,14 @@ static void att_find_info_resp_dump(int level, struct frame *frm)
}
}
+static void att_read_req_dump(int level, struct frame *frm)
+{
+ uint16_t handle = btohs(htons(get_u16(frm)));
+
+ p_indent(level, frm);
+ printf("handle 0x%2.2x\n", handle);
+}
+
static void att_handle_notify_dump(int level, struct frame *frm)
{
uint16_t handle = btohs(htons(get_u16(frm)));
@@ -370,6 +378,12 @@ void att_dump(int level, struct frame *frm)
case ATT_OP_FIND_INFO_RESP:
att_find_info_resp_dump(level + 1, frm);
break;
+ case ATT_OP_READ_REQ:
+ att_read_req_dump(level + 1, frm);
+ break;
+ case ATT_OP_READ_RESP:
+ raw_dump(level + 1, frm);
+ break;
case ATT_OP_HANDLE_NOTIFY:
att_handle_notify_dump(level + 1, frm);
break;