aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btmesh.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-18BTMesh: Add support for manufacturer-specific opcodesPedro Malagon1-3/+10
Access Layer: add support for manufacturer-specific opcodes (customizable) of 3-octets when bits 7 and 6 of the first opcode octet are set, as specified in Table 3.43: Opcode formats of document Mesh Profile v1.0.1, Bluetooth Specification Change-Id: I3edf8f86bf58d28f15cc2a8f72618cc577a75a44 Reviewed-on: https://code.wireshark.org/review/34787 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-06-04btmesh: fix indentation.Dario Lombardo1-19/+19
Change-Id: I34dd4c34668fab717e7fdec0ceaee8ef2359c339 Reviewed-on: https://code.wireshark.org/review/33462 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-06-04btmesh: fix compilation with older gcrypt version.Dario Lombardo1-0/+49
Fix compilation on Centos. Change-Id: Id51b6681d01e65e6a46ca4a62663c3b4e01669da Reviewed-on: https://code.wireshark.org/review/33463 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-06-03BTMESH: Add dissector for Foundation modelsPiotr Winiarczyk1-3/+2994
Add dissector for all messages of Bluetooth Mesh Foundation models. Bug: 15797 Change-Id: Ife831fe24bbbcaf2e99c9bff69b24c0d4fe2d1de Reviewed-on: https://code.wireshark.org/review/33361 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Jonas Jonsson <jonas@ludd.ltu.se> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-21BTMESH: fix unused compile error without/older GCryptJoakim Karlsson1-4/+0
Change-Id: Ic9f9e323420bf6add83c7a8f7b56a6206eeb2c67 Reviewed-on: https://code.wireshark.org/review/33295 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-08BT Mesh: Mark a couple of unused parameters.Gerald Combs1-2/+2
Change-Id: I4a6204bc7fef6ab2dccc06d2df334daa710c5c52 Reviewed-on: https://code.wireshark.org/review/33115 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-05-08BTMESH: Fix for compilation without GCryptPiotr Winiarczyk1-2/+13
Fix for compilation on platforms without GCrypt library. Change-Id: I049f7d60f3b65f713ee3e43f62361790901982a6 Reviewed-on: https://code.wireshark.org/review/33113 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-08btmesh: fix compilation with older gcrypt versions.Dario Lombardo1-0/+4
Fix compilation on Centos: epan/dissectors/packet-btmesh.c: In function 'uat_btmesh_record_update_cb': epan/dissectors/packet-btmesh.c:2057:9: error: implicit declaration of function 'k4' [-Werror=implicit-function-declaration] if (k4(rec)) { ^ epan/dissectors/packet-btmesh.c: In function 'uat_btmesh_label_uuid_record_update_cb': epan/dissectors/packet-btmesh.c:2198:9: error: implicit declaration of function 'label_uuid_hash' [-Werror=implicit-function-declaration] if (label_uuid_hash(rec)) { ^ cc1: some warnings being treated as errors [224/2387] Building C object epan/dissectors/CMakeFiles/dissectors.dir/packet-btmesh-pbadv.c.o ninja: build stopped: subcommand failed. Change-Id: I0ffbce46285c7883f3ef604d06fad3a94b2197cd Reviewed-on: https://code.wireshark.org/review/33108 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-07BTMESH: Add access layer decryptionPiotr Winiarczyk1-76/+1057
Add access layer Application Key decryption Add access layer Device Key decryption Add Label UUID authentication Add list of all opcodes Bug: 15761 Change-Id: I290c6a4f2f990ccfa58701b7183a41afcc6e92c8 Reviewed-on: https://code.wireshark.org/review/33093 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-25BTMESH: Adding defragmentation of messagesPiotr Winiarczyk1-97/+576
Adding defragmentation of control and access layer messages. Adding dissection of Friend Update and Heartbeat control messages. Bug: 15722 Change-Id: Ib6d8899a2d089dfa3b3eee6cd3e5248b8dc26aff Reviewed-on: https://code.wireshark.org/review/32948 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-13Stub version of dissect_btmesh_msg() missing _U_.Jim Young1-1/+1
Change-Id: I4d7cb901c657df8d351305ba4f411d4776b2dc6a Reviewed-on: https://code.wireshark.org/review/32393 Petri-Dish: Jim Young <jim.young.ws@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-12btmesh: Adding support Proxy Protocol control messagesPiotr Winiarczyk1-133/+133
Added support for Bluetooth Mesh Proxy protocol control messages Refactoring and fixing Bluetooth Mesh network decryption so it can be reused to decrypt proxy control messages Link to Bluetooth Mesh Profile specification https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=457092 Bug: 15583 Change-Id: I04ca16dc91ce43d27416ee2eb18ac81ef4aef1c6 Reviewed-on: https://code.wireshark.org/review/32368 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-20Expanding Bluetooth Mesh Profile dissectorPiotr Winiarczyk1-3/+5
Added support for Bluetooth Mesh beacons Added support for Bluetooth Mesh Provisioning protocol Added support for Bluetooth Mesh Proxy protocol Added support for Bluetooth Mesh PB-ADV provisioning bearer Added support for Bluetooth Mesh PB-GATT provisioning bearer Link to Bluetooth Mesh Profile specification https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=457092 Bug: 15523 Change-Id: I408726c0bc7e1d81077539d451c2047f540dd865 Reviewed-on: https://code.wireshark.org/review/32076 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-29btmesh: Fix memleaks in UAT handlingStig Bjørlykke1-1/+19
Free allocated strings before allocating new and in free callback. Change-Id: If7bd0ee8455cf3c3e0c6300ce79e20557256eb8e Reviewed-on: https://code.wireshark.org/review/31773 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-09-19Try to discourage the use of APIs via counting.Gerald Combs1-5/+4
Add the ability to specify maximum function counts for each group to checkAPIs. Add maximum counts for the "termoutput" and "abort" groups where needed. Show summaries in various checkAPI targets. Switch uses of ws_g_warning back to plain g_warning. Change-Id: I5cbddc8c671729e424eed8551f69116d16491976 Reviewed-on: https://code.wireshark.org/review/29721 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-02-08replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.Dario Lombardo1-1/+1
The first is deprecated, as per https://spdx.org/licenses/. Change-Id: I8e21e1d32d09b8b94b93a2dc9fbdde5ffeba6bed Reviewed-on: https://code.wireshark.org/review/25661 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-06bluetooth: Group Bluetooth dissector preferencesStig Bjørlykke1-1/+1
Change-Id: Ib5360fcbfd8f6b2aee6b33ec7d9dc77362feb50e Reviewed-on: https://code.wireshark.org/review/25162 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-03[BTMESH] Dissect more of Upper transport Layer.Anders1-15/+79
Change-Id: I5d33c64a57689939c9915336701accba8b893415 Reviewed-on: https://code.wireshark.org/review/25115 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-12-31btmesh: replace\convert g_warningGraham Bloice1-4/+8
Replace g_warning with ws_g_warning, add expert info. Change-Id: I54ae5959f89ee85bdd821f07af8cf4ec3172748e Reviewed-on: https://code.wireshark.org/review/25090 Petri-Dish: Graham Bloice <graham.bloice@trihedral.com> Tested-by: Petri Dish Buildbot Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
2017-11-20Remove unused dissector registration prototypes, fix typoJoão Valverde1-1/+0
Change-Id: Ide5d7f2241db4ac87ed516f91f0bcaca347bb546 Reviewed-on: https://code.wireshark.org/review/24496 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-11-11btmesh: Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-3/+1
Change-Id: I7218d74e1dc4d014dadd86f55b7805ba1581f9c3 Reviewed-on: https://code.wireshark.org/review/24346 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-11-08btmesh: Remove a debug g_warningStig Bjørlykke1-1/+0
Change-Id: Ifc822efccfff5de32a54ca1f148a09ac3be4d0e3 Reviewed-on: https://code.wireshark.org/review/24308 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2017-11-08btmesh: Fix building without gcryptStig Bjørlykke1-0/+6
Change-Id: If77b36d764c07acd87a553134cebff246b8368fe Reviewed-on: https://code.wireshark.org/review/24296 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2017-11-06[BT Mesh] Add Bluetooth Mesh dissector.Anders1-0/+1241
Bug: 14161 Change-Id: Ia76d283c6c8e00526948a0ee9cda9e35b4ca0e2a Reviewed-on: https://code.wireshark.org/review/24216 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>