diff options
author | Joakim Andersson <joakim.andersson@nordicsemi.no> | 2020-04-01 15:52:08 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2020-04-13 11:09:41 +0000 |
commit | 8b5236d4703323acd409df3e07210da7e3d27873 (patch) | |
tree | d64af48f914e0b40ef488921a46e0684442be7a4 /epan/dissectors/packet-btle_rf.c | |
parent | 8a0673a5787f886e742fbeee4b7c793eeecbf264 (diff) |
Bluetooth: Provide BTLE physical channel pdu type from capture context.
Add BTLE physical channel pdu type from capture context. The dissector uses
the access address to determine if the packet is either an Advertising physical
channel PDU or a Data physical channel PDU.
This assupmtion is not valid for Periodic Advertising where the AUX_SYNC_IND
advertising packet will be sent with a non-advertising access address.
There is also the new Isochronous physical channel PDU which can be both
broadcasted or connection-oriented.
Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345318
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36782
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/dissectors/packet-btle_rf.c')
-rw-r--r-- | epan/dissectors/packet-btle_rf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btle_rf.c b/epan/dissectors/packet-btle_rf.c index a9990beeca..f48325f61f 100644 --- a/epan/dissectors/packet-btle_rf.c +++ b/epan/dissectors/packet-btle_rf.c @@ -149,6 +149,7 @@ dissect_btle_rf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) context.crc_valid_at_capture = !!(flags & LE_CRC_VALID); context.mic_checked_at_capture = !!(flags & LE_MIC_CHECKED); context.mic_valid_at_capture = !!(flags & LE_MIC_VALID); + context.pdu_type = BTLE_PDU_TYPE_UNKNOWN; ti = proto_tree_add_item(tree, proto_btle_rf, tvb, 0, tvb_captured_length(tvb), ENC_NA); btle_rf_tree = proto_item_add_subtree(ti, ett_btle_rf); @@ -204,7 +205,6 @@ dissect_btle_rf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) proto_tree_add_item(btle_rf_tree, hf_btle_rf_word_unused, tvb, 4, 4, ENC_LITTLE_ENDIAN); } - proto_tree_add_bitmask_with_flags(btle_rf_tree, tvb, 8, hf_btle_rf_flags, ett_btle_rf_flags, hfs_btle_rf_flags, ENC_LITTLE_ENDIAN, BMT_NO_APPEND); btle_tvb = tvb_new_subset_remaining(tvb, BTLE_RF_OCTETS); |