OSDN Git Service

hcidump: Add ATT parsing for the ATT fixed CID
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 7 Jun 2011 07:23:28 +0000 (10:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 17 Dec 2012 22:53:03 +0000 (23:53 +0100)
tools/parser/l2cap.c

index 673c6b5..bc41a53 100644 (file)
@@ -803,6 +803,11 @@ static void l2cap_parse(int level, struct frame *frm)
                p_indent(level, frm);
                printf("L2CAP(c): len %d psm %d\n", dlen, psm);
                raw_dump(level, frm);
+       } else if (cid == 0x04) {
+               if (!p_filter(FILT_ATT))
+                       att_dump(level, frm);
+               else
+                       raw_dump(level + 1, frm);
        } else {
                /* Connection oriented channel */