aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wisun.c
AgeCommit message (Collapse)AuthorFilesLines
2023-03-06Add id-kp-wisun-fan-device object identifierMathis Marion1-0/+3
Defined in the Wi-SUN FAN specification as: id-kp-wisun-fan-device ::= { iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) Wi-SUN (45605) FieldAreaNetwork(1) }
2023-02-22Fix Wi-SUN LBS-IE dissectorMathis Marion1-1/+1
2022-10-26wisun: Rename field name with common abbreviationsJames Ko1-50/+50
Rename some HF field names [FIELDNAME] with common abbreviations and add move Full name to blurb [FIELDDESCR].
2022-08-23Update Wi-SUN FAN dissector with LBC-IEJérôme Pouiller1-0/+35
The last specification of the Wi-SUN FAN (I have not checked when it appeared, but it is present in 1.1v04) introduce LBC-IE (see "6.3.2.3.1.17 LFN Broadcast Configuration Information Element (LBC-IE)").
2022-08-23Update Wi-SUN FAN dissector with last LBS-IE specificationJérôme Pouiller1-0/+7
The last specification of the Wi-SUN FAN (I have not checked when it appeared, but it is present in 1.1v04) introduce the field broadcast_sync_period in LBS-IE (see "6.3.2.3.1.13 LFN Broadcast Schedule Information Element (LBS-IE)").
2022-04-26Update Wi-SUN FAN dissector to the last version of the specificationPedro Jose Marron1-55/+912
- The latest version of the Wi-SUN FAN specification has added a number of Information Elements that need to be supported by the dissector. - Following changes and additions have been included: - New Header IEs: LUTT, LBT, NR, LUS, FLUS, LBS, LND, LTO, PANID and RT. - New Payload IEs: POM, LCP, LFNVER and LGTKHASH - New frame types: LFN PAN Advertisements, Solicits and time synchronization frame types. - Update to the channel spacing names to incorporate the new ones defined in FAN 1.1
2022-02-15Tools: Fix fix-encoding-args.pl ASCII string validationJoão Valverde1-1/+1
Do not require a useless ENC_NA parameter for string encodings. FT_STRING and FT_STRINGZ types don't have any ndianness. Follow-up to 6ec429622c9258eefd388caf21ce92ab5b9f54b4.
2021-12-03epan: Remove STR_ASCII and STR_UNICODEJoão Valverde1-1/+1
These display bases work to replace unprintable characters so the name is a misnomer. In addition they are the same option and this display behaviour is not something that is configurable. This does not affect encodings because all our internal text strings need to be valid UTF-8 and the source encoding is specified using ENC_*. Remove the assertion for valid UTF-8 in proto.c because tvb_get_*_string() must return a valid UTF-8 string, always, and we don't need to assert that, it is expensive.
2021-07-21First pass pinfo->pool conversionEvan Huus1-1/+1
Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure. I also tweaked a few of the docs which got caught up.
2020-06-19Fix the type of arrays of pointers to hf_ values for bitfield routines.Guy Harris1-6/+6
The static arrays are supposed to be arrays of const pointers to int, not arrays of non-const pointers to const int. Fixing that means some bugs (scribbling on what's *supposed* to be a const array) will be caught (see packet-ieee80211-radiotap.c for examples, the first of which inspired this change and the second of which was discovered while testing compiles with this change), and removes the need for some annoying casts. Also make some of those arrays static while we're at it. Update documentation and dissector-generator tools. Change-Id: I789da5fc60aadc15797cefecfd9a9fbe9a130ccc Reviewed-on: https://code.wireshark.org/review/37517 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-06-09wisun: fix swapping between Channel Spacing and Reserved fieldsAlexis La Goutte1-4/+4
Issue reported by Gene Falendysz Bug: 15821 Change-Id: I272061a1cabdae905a89d7b568eb3be51dabd293 Reviewed-on: https://code.wireshark.org/review/33501 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-04epan: Convert our PROTO_ITEM_ macros to inline functions.Gerald Combs1-3/+3
Convert our various PROTO_ITEM_ macros to inline functions and document them. Change-Id: I070b15d4f70d2189217a177ee8ba2740be36327c Reviewed-on: https://code.wireshark.org/review/32706 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-27Fix the FCS handling.Guy Harris1-2/+0
All the complicated stuff to see whether the captured data includes all of, some of, or none of the FCS is necessary, and should not have been removed. The previous code would sometimes dissect packet data at the end as both payload *and* FCS. This also means that the decryption code doesn't have to worry about the FCS, and expects the payload handed to it *not* to have the FCS. Update callers to handle that. This puts back the changes from e4d3916530aed332fcb39d4017e633bd51c4277c, for which the comment was: Clean up the way we handle the FCS. For the "802.15.4 with FCS" link-layer type, strip what FCS we find, if any, off and use that new tvbuff for all dissection except for checking and dissection of the FCS itself. For the "802.15.4 without FCS" link-layer type, don't fake an uncaptured FCS by increasing the reported length, just use the tvbuff as is. This means we handle 802.15.4 the same way we handle other link-layer types where the FCS might, or might not, appear as part of the captured data. "Handling stuff at the ends of packets is hard, let's go shopping!" Change-Id: Iaf3e8392efec9d1c35f73966e22f2a3ae91317a1 Reviewed-on: https://code.wireshark.org/review/32254 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-02-27Add support for IEEE 802.15.4 32-bit FCSJames Ko1-1/+1
Make FCS length a variable. Modify protocol configuration to include FCS type option. Change-Id: I1e08f5b6b43907833464c20d798163343ce67a76 Reviewed-on: https://code.wireshark.org/review/32139 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-29Fix: WiSUN Explicit Channel Plan parsingJames Ko1-12/+42
The Unicast Schedule IE (US-IE) and Broadcast Schedule IE (BS-IS) may define an explicit channel plan with the following fields in the channel information fields: 24-bits - channel 0 frequency in kHz (little endian byte-order), 4-bits - channel spacing enumeration, 4-bits - reserved (must be set to 0), and 2-bytes - number of channels Bug: 15451 Change-Id: If6923faca777343e17b0cb9012bb07d98b9bc194 Reviewed-on: https://code.wireshark.org/review/31745 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-10-24wisun: fix display of Netricity LQI-IERobert Sauter1-4/+4
The LQI is defined as a unit-less index derived from the SNR. Change-Id: I40627b34130a93fa0464cd478ab50cd487c59e22 Reviewed-on: https://code.wireshark.org/review/30348 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-07-05wisun: fix remove EAPOL-ready field; add Routing Cost to infoRobert Sauter1-8/+5
The EAPOL-ready field has not been part of the specification since before this dissector has been created. Change-Id: I7bd25a44ad3ee61e7a2a3b105f7bbffb1e28b31f Reviewed-on: https://code.wireshark.org/review/28602 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-06-12wisun: fix name of Netricity Frame Type IERobert Sauter1-1/+1
Change-Id: I8cafb3b6475991b223146dbe6fc59bfb915b1bf2 Reviewed-on: https://code.wireshark.org/review/28220 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-03-11tfs: Add high_normal and low_normalRobert Sauter1-2/+1
Change-Id: Ie56e3546fc1bc5da61f95456e15544a2880c819d Reviewed-on: https://code.wireshark.org/review/26418 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
2018-03-08wisun: Netricity segment control and reassembly supportRobert Sauter1-1/+231
While based on IEEE 802.15.4, the protocol breaks the standard by having frames where the FCF Security Enabled flag is set but no Auxiliary Security Header is present. Add handling of this special case to the IEEE 802.15.4 dissector. Change-Id: I0e678d5fc999ead740c0c27f51a699559c6cb21a Reviewed-on: https://code.wireshark.org/review/26336 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-03-05wisun: fix, improve, and refactor Wi-SUN IEsRobert Sauter1-98/+104
Change-Id: I6e67d01c06536da5b41f9cf5b09b5f44393e6956 Reviewed-on: https://code.wireshark.org/review/26266 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-03-05wisun: dissect Wi-SUN Netricity IEsRobert Sauter1-0/+75
Change-Id: Icae32b9934549891fab0683fa055fe16d01fdd90 Reviewed-on: https://code.wireshark.org/review/26258 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-02-27wisun: extend EDFE display; fix Authenticator EUI-64 field nameRobert Sauter1-4/+24
Change-Id: Ia0ef5d4f982a39c8addf5208481378f50d0f8bcf Reviewed-on: https://code.wireshark.org/review/26094 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-02-26wisun: support EAPOL Relay (1v21 format)Robert Sauter1-1/+71
Change-Id: I6b4644f7ad8061e8f9fc11238e17e6d01596cb39 Reviewed-on: https://code.wireshark.org/review/26095 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-25wisun: wisun remove unused ei_wisun_wsie_short_formatRobert Sauter1-3/+0
Change-Id: I8dfee4f222236892585295e6b1d1e53bb2237238 Reviewed-on: https://code.wireshark.org/review/26103 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-02-21wisun: Small comment fixStig Bjørlykke1-1/+1
Change-Id: I6d30cbd602aba4677e9205759f2f416ecaf4c157 Reviewed-on: https://code.wireshark.org/review/25958 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-02-21Updated Wi-SUN dissector to latest specification.Ed Beroset1-56/+113
Change-Id: Iaa3dc73fecf0a5e323fe6306b049514bfd09399d Reviewed-on: https://code.wireshark.org/review/25956 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-02-17wisun: Add EDFE supportRobert Sauter1-4/+80
During an EDFE exchange the source addresses are omitted after the first frame. Restore the information to enable decryption and 6LoWPAN reassembly. Change-Id: I9660c81e0536cea56caf104a16e41eaf6c123e09 Reviewed-on: https://code.wireshark.org/review/25819 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-11-23wisun: fix no previous prototype for function ↵Alexis La Goutte1-0/+3
'proto_register_wisun/proto_reg_handoff_wisun' [-Wmissing-prototypes] Change-Id: I44751363b2e1f16a2463d7e798bedb6f59995e13 Reviewed-on: https://code.wireshark.org/review/24538 Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-11-11Wi-SUN Protocol dissection and IEEE 802.15.4 IE cleanup.Owen Kirby1-0/+1102
This patch adds dissection for the Wi-SUN Field Area Network standard. Wi-SUN packets are encoded as a collection of IEEE 802.15.4 information elements. This required a bit of refactoring in how the IE dissector table is handled so that external protocols could supply their own dissectors. While I was working with the IEs, I also added support for the TSCH Timeslot and Global Time IEs from the IEEE 802.15.4 standard in addition to some general cleanup. Change-Id: I2858e4ab577756568e33b86adfe282967899abd5 Reviewed-on: https://code.wireshark.org/review/24331 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>