diff options
-rw-r--r-- | epan/dissectors/packet-btl2cap.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-btl2cap.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-btl2cap.c b/epan/dissectors/packet-btl2cap.c index e8d3411170..078b7ec662 100644 --- a/epan/dissectors/packet-btl2cap.c +++ b/epan/dissectors/packet-btl2cap.c @@ -1810,7 +1810,7 @@ dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) } } } - else if (cid < BTL2CAP_FIXED_CID_MAX) { + else if (cid <= BTL2CAP_FIXED_CID_LAST) { if (cid == BTL2CAP_FIXED_CID_AMP_MAN) { control = tvb_get_letohs(tvb, offset); if (control & 0x1) { @@ -1847,7 +1847,7 @@ dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) proto_tree_add_item(btl2cap_tree, hf_btl2cap_payload, tvb, offset, length, ENC_NA); } } - else /* if (cid >= BTL2CAP_FIXED_CID_MAX) */ { /* Connection oriented channel */ + else /* if (cid > BTL2CAP_FIXED_CID_LAST) */ { /* Connection oriented channel */ wmem_tree_key_t key[6]; guint32 k_interface_id; guint32 k_adapter_id; diff --git a/epan/dissectors/packet-btl2cap.h b/epan/dissectors/packet-btl2cap.h index 4bcb3d446e..456c359bfa 100644 --- a/epan/dissectors/packet-btl2cap.h +++ b/epan/dissectors/packet-btl2cap.h @@ -49,7 +49,7 @@ #define BTL2CAP_FIXED_CID_LE_SIGNAL 0x0005 #define BTL2CAP_FIXED_CID_SMP 0x0006 #define BTL2CAP_FIXED_CID_AMP_TEST 0x003F -#define BTL2CAP_FIXED_CID_MAX 0x0040 +#define BTL2CAP_FIXED_CID_LAST 0x003F typedef struct _btl2cap_data_t { guint32 interface_id; |