Commit Graph

77785 Commits

Author SHA1 Message Date
Vadim Yanitskiy 514706b1f8 GSM/SMS: clarify 'no error' values of TP-Status IE
In case of successfull delivery, TP-Status IE looks as follows:

  TP-Status
      0... .... = Definition of bits 0-6: as follows
      .00. .... = Error: Short message transaction completed (0)
      ...0 0000 = Reason: Short message received by the SME (0)

in particular, "Error: Short message transaction completed" looks
confusing. Let's make it a bit cleaner:

  TP-Status
      0... .... = Definition of bits 0-6: as follows
      .00. .... = Error: No error, short message transaction completed (0)
      ...0 0000 = Reason: Short message received by the SME (0)

Change-Id: I95830877c1ff2f45e3c68a40febcf357abda597d
Reviewed-on: https://code.wireshark.org/review/36829
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-13 19:31:54 +00:00
Vadim Yanitskiy fd19f39bf2 GSM/SMS: decouple error and reason fields in TP-Status IE
According to 3GPP TS 23.040, section 9.2.3.15, the TP-Status IE
indicates the status of a previously submitted SMS-SUBMIT and
certain SMS COMMANDS for which a Status-Report has been requested.

Currently Wireshark dissects this IE as follows:

  TP-Status
      0... .... = Definition of bits 0-6: as follows
      .000 0000 = Error: Short message transaction completed (0)
      .000 0000 = Reason: Short message received by the SME (0)

so it's not clear how exactly both Error and Reason are derived
from 7 less-significant bits of the first (and the last) octet.

As can be seen from the section 9.2.3.15, two less-significant
bits of those 7 define the Error, while the remaining 5 bits
define the Reason.

With this change applied, dissected TP-Status IE looks as follows:

  TP-Status
      0... .... = Definition of bits 0-6: as follows
      .00. .... = Error: Short message transaction completed (0)
      ...0 0000 = Reason: Short message received by the SME (0)

To achieve this, type of the 'dis_field_st_error_rvals' was changed
from 'range_string' to 'value_string', and the range / string array
'dis_field_st_reason_rvals' was split into 4 arrays corresponding
to 4 possible Error values.

Change-Id: I8418ae3532c5e4b0ad2c956c5cd8cd90767d2fd6
Reviewed-on: https://code.wireshark.org/review/36828
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-13 19:31:46 +00:00
Vadim Yanitskiy 37c8671141 GSUP: cosmetic: use upper case in short protocol name
Change-Id: I2aa38f7d134128c129142a68ce7da48bb7588704
Reviewed-on: https://code.wireshark.org/review/36831
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-13 18:38:33 +00:00
Joakim Andersson f5622e81eb Bluetooth: nordic: Add support for protocol version 3
Add protocol for the nRF Sniffer for BLE version 3 of the UART protocol.
These changes provides support for giving different packet IDs for advertising
physical channel and data physical channel.
The flags for advertising physical changes are intepreted differently,
the direction, encryption and MIC valid flags are always zero and are therefore
marked as reserved for future use instead.
The time_delta field is changed to be a firmware timestamp instead. This is to
allow better timestamping of the packets as the timestamp earlies was provided
by the extcap python code, which does not provide accurate timestamps.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc634531c
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36786
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 18:00:46 +00:00
Joakim Andersson 10469dff01 bluetooth: Provide auxiliary PDU types name from capture context
Provide a mechanism for the capture context to provide the auxiliary PDU type
name since this value cannot be inferred from the bytestream and must be taken
from context instead.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345319
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36783
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 17:59:54 +00:00
Dr. Lars Völker 05e8a30fda SOMEIP: Bug fix for ignored length field config on struct
The length field of a struct can be configured to 0, 8, 16, or 32 bits.
Independent of the config, it will always be ignored as set to 0 bits.
This patch repairs this.

Bug: 16490
Change-Id: Idde3616ec06067363e767bd52bb5f443439c9aca
Signed-off-by: Dr. Lars Völker <lars.voelker@technica-engineering.de>
Reviewed-on: https://code.wireshark.org/review/36770
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-13 17:14:19 +00:00
Martin Mathieson d70a4a9321 Standardise IETF RFC and Draft URLs in dissectors.
Prefer:
- html (rather than txt)
- https

Also includes the script check_dissector_urls.py,
that can be used to find links in code and test them.

Change-Id: Iafd8bb8948674a38ad5232bf5b5432ffb2b1251b
Reviewed-on: https://code.wireshark.org/review/36821
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-04-13 14:58:48 +00:00
Uli Heilmeier 58ba81ec09 OSPFv2: Add RFC 8770 Host Router Support
Added support for RFC 8770 Host Router Support.
As LSA flags are independent of set options fix flags handling also.

Change-Id: Ib74cae55fb9a3b26f27084168d0e15e4f3d2d6b8
Reviewed-on: https://code.wireshark.org/review/36824
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 13:53:50 +00:00
Stig Bjørlykke 1f6449c05d Qt: Fix a memory leak in ByteViewTab
FieldInformation::parentField() allocated a new FieldInformation,
so ensure to delete this when done.

Change-Id: Id0f538cc696551ec47169103be823eb1e55d1777
Reviewed-on: https://code.wireshark.org/review/36823
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2020-04-13 13:29:15 +00:00
Stig Bjørlykke 55920e64e5 extcap: Fix a memory leak
Change-Id: I3a7e5d10d0007972c18ccbb49f40114c700a88e2
Reviewed-on: https://code.wireshark.org/review/36822
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2020-04-13 12:43:30 +00:00
Joakim Andersson 560d9188c7 Bluetooth: nordic: Document that the payload excludes the preamble
Document that the payload of the BLE_EVENT packet is excluding the preamble
that is sent on air.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc634531b
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36785
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-04-13 11:10:54 +00:00
Joakim Andersson 8b5236d470 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>
2020-04-13 11:09:41 +00:00
Joakim Andersson 8a0673a578 Bluetooth: nordic: Document RSSI sample result in the nordic_ble dissector
Document the RSSI sample result in the nordic_ble dissector. This value is
directly from the RSSISAMPLE register which is a positive number. It must
be converted to negative value.
Change to using INT8 because the RSSISAMPLE is only 7 bits value, and will
always be a positive number.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc634531a
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36784
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-04-13 11:05:38 +00:00
Joakim Andersson b6e4b38f25 Bluetooth: Dissect the common extendend advertising payload header
Dissect the common extendend advertising payload header which is common for
the following advertising PDUs:
 - ADV_EXT_IND
 - AUX_ADV_IND
 - AUX_SYNC_IND
 - AUX_CHAIN_IND
 - AUX_SCAN_RSP
 - AUX_CONNECT_RSP

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345317
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36781
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 10:22:15 +00:00
Joakim Andersson a6ea26a131 Bluetooth: Add handling of ADV_EXT_IND and setting valid adv header flags
Add handling of ADV_EXT_IND and setting valid adv header flags.
Advertising Extension assumes channel selection #2, and both TX and RX address
type bits must be checked if present in the extended advertising header by
reading the extended advertising header flags.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345315
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36780
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 10:21:12 +00:00
Martin Kaiser abcb95ffe2 PacketList: ignoreFrame: remove write-only variable
Like in markFrame, the integer list of selected rows is not used in
ignoreFrame. Remove it.

Change-Id: Ic2bf4b1d2d330767370a2e831e321e285cb00e91
Reviewed-on: https://code.wireshark.org/review/36805
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 10:20:24 +00:00
Martin Kaiser 7044c6101d PacketList: markFrame: remove write-only variable
The "rows" variable is populated with the indices of all selected rows.
It seems that rows is never read and can be removed.

(In parallel, there's QModelIndexList frames. This list is used
when it comes to actually marking the selected packets.)

Change-Id: If2b97a2f5d87fe24717b9ad56444e2a779e0b3fc
Reviewed-on: https://code.wireshark.org/review/36804
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-13 10:20:06 +00:00
Dario Lombardo 71f6d9411a Qt: don't use a widget if not set.
Bug: 16489
Change-Id: I9585120fb07f3c41ac2ddc7fb9eeb9b17542f5e8
Reviewed-on: https://code.wireshark.org/review/36789
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-04-13 01:10:24 +00:00
Guy Harris ada1a5c770 Add record length checks.
Make sure the summary record is large enough; if not, report it as a bad
file.

If it's *too* large, skip the added data.

Clean up the length check for the header records - use sizeof, as we
later use sizeof when subtracting the fixed length portion's length.

Change-Id: I70697804eaa0cbbb1fb074eadf6457d237f26876
Reviewed-on: https://code.wireshark.org/review/36814
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-12 22:44:12 +00:00
Guy Harris 1070d7b376 Fix a comment.
Change-Id: I91ba743029247c7fcfac11bdfe7fc15680ab4137
Reviewed-on: https://code.wireshark.org/review/36810
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-12 21:37:37 +00:00
Guy Harris e80592b5ce Fix previous change.
Get rid of leftover duplicate code setting up the wtap structure and
private data before we've found a summary record.

If we find no data records, break out of the loop, so we fall into the
code that sets up the wtap structure and private data.

Change-Id: I00652bb7f3cb52b6c7c2088c6dd5fe5ec9a012a7
Reviewed-on: https://code.wireshark.org/review/36806
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-12 21:05:52 +00:00
Uli Heilmeier bb352dc0db BGP: Update/Fix Extended Communities
Changed and updated BGP extended communities according to:

* https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml
* RFC 7674
* RFC 8317
* RFC 7796
* draft-ietf-bess-evpn-inter-subnet-forwarding-08

Bug: 16449
Change-Id: Idaf1026ac4e3162ba54c163782261379931803e0
Reviewed-on: https://code.wireshark.org/review/36803
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-12 19:02:47 +00:00
Martin Kaiser ac97bca592 lanforge: timestamp and len field are not generated
A generated item is not derived from the bytes in the packet.

The components of the length field and the timestamp are fields in the
packet. They should not be marked as generated.

Change-Id: Ic2e74f7db50b2ea65bc0e48883e6562992114296
Reviewed-on: https://code.wireshark.org/review/36766
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-12 18:52:42 +00:00
Martin Kaiser 5df5f8efe3 lanforge: clean up the dissector a bit
Use proto_tree_add_item() for the timestamp, there's no need to extract
the time manually.

Remove the unnecessary if (tree) check.

Call proto_tree_add_item_ret_uint() to read the value and add it to the
tree in one go.

Change-Id: Ibce3a5c83c260e46c4bd6ebf957e300fd345ed8a
Reviewed-on: https://code.wireshark.org/review/36765
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-12 18:52:36 +00:00
Stig Bjørlykke 55b8b5627c mqtt: Improve message decoding when using v5.0
Use content-type property to decode message.

Lookup Topic using topic-alias property mapping from the first Publish
message if this is used by the sender. Add an expert info note when
a lookup fails.

MQTT-4.7.3-1 defines that all Topic Names and Topic Filters MUST be
at least one character long. Add an expert info warning for this.

Change-Id: I5b27a72462a7c80b200ec065e5aed167cf36a3a8
Reviewed-on: https://code.wireshark.org/review/36748
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-12 16:23:21 +00:00
Jaap Keuter bd701147df SIP: Differentiate the Display Info items
Currently every URI that carries display information has that presented
as the same field. This makes specific filtering difficult.
This change introduces seperate fields for every URI type, while
preserving the common display info field as hidden item.
A display field has been introduced for every URI handled, whether or
not the field is described in an RFC. Practice learns that it may be
done anyway.

Bug: 16488
Change-Id: I15bf10e3fbdcce581a62182c205976a751c98c69
Reviewed-on: https://code.wireshark.org/review/36773
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-12 16:20:54 +00:00
Joakim Andersson 1f802975f2 Bluetooth: Handle reserved bits in LE channel map
Handle the reserved bits in the LE channel map. The bits do not
represent the advertising channels, but are simply reserved.
Allow the dissector to set these bits as non-channel map related, which
is the case for Extended Advertising Sync Info.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345314
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36779
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-12 16:16:39 +00:00
Martin Mathieson 88923604b2 Fix up some broken links to specs from dissectors.
check_dissector_urls.py was written and used to
find URLs within epan/dissectors/*.c and try to
fetch them using 'requests'. Will be commmitted
separately.

Most of the changes were to adapt to reorganisation
of IETF or 3gpp2 links, but many of the broken links
are for websites or companies that no longer exist.

Change-Id: Ie9afdb95099218402a61626a0cd5193c6f781b96
Reviewed-on: https://code.wireshark.org/review/36769
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-12 15:03:14 +00:00
Joakim Andersson 52400c9869 Bluetooth: Set correct name of target address in ADV_DIRECT_IND PDU
The initiator address field of the directed advertising PDU has been renamed
to target address in newer versions of the Bluetooth specification.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345313
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36778
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-12 10:53:29 +00:00
Joakim Andersson 21b4b3c83e Bluetooth: Add channel to bluetooth dissector context
Add channel index to the bluetooth dissector context.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345312
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36777
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-12 10:52:10 +00:00
Gerald Combs 151de46c0b [Automatic update for 2020-04-12]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I3fa5cef5ed48f8fea3f7919872ea30a65d476fad
Reviewed-on: https://code.wireshark.org/review/36799
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-04-12 08:16:54 +00:00
Guy Harris d8615d27b4 Fix the heuristic for checking whether it's a CAM Inspector file.
wtap_read_bytes() returns TRUE on *success*, so if we're in the loop,
the last read succeeded, and no error code was supplied.  When we *exit*
the loop, the read didn't succeed; check for the status then.  If we got
a short read, we ran out of file data, so check the heuristics (even if
it's not an integral number of 2-byte blocks, treat it as a CAM
Inspector file - it might have gotten cut short); if we got a real read
error, report that to our caller.

Bug: 16458
Change-Id: Ia1e838006744dadbc2883459aec16d0d11b732e1
Reviewed-on: https://code.wireshark.org/review/36795
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-12 04:13:25 +00:00
Guy Harris edf694393b lanalyzer: Make sure a LANalyzer file has exactly one summary record.
If it has none, we don't know what link-layer header type it has, nor do
we have a start time to use for time stamps.

If it has more than one, we don't know which one to believe.

Bug: 16459
Change-Id: I306ec45171f9de4643699a53a4d837f4f7750c69
Reviewed-on: https://code.wireshark.org/review/36791
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-12 03:17:58 +00:00
Joakim Andersson 88bc0082bc Bluetooth: Fix spelling mistake
Fix spelling mistake.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345311
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36776
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-11 18:44:25 +00:00
Joakim Andersson 3c2d080dee Bluetooth: Rename packet names that has changed from REQ to IND in the spec
Rename packets names that has changed in the bluetooth core specification.
Requests have responses, indications have no response.

Change-Id: I7f0ad74b3e30ffecade59b6d0c5965bfc6345310
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
Reviewed-on: https://code.wireshark.org/review/36775
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-11 18:44:14 +00:00
Peter Wu 6308451f8f test: fix invalid escape sequence warnings
pytest and `pycodestyle test/suite_*.py --select=W605` warned about it.

Change-Id: I015351d1c00d17aa9f04ab17abed00586ee09e89
Reviewed-on: https://code.wireshark.org/review/36771
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-04-11 13:57:10 +00:00
Guy Harris ee9d9ddc1b Stylistic consistency.
Don't give the first argument to CATCH7() a space after its comma; none
of the other CATCHn() arguments do.

Change-Id: I752d3329080b3bfba362adfff0cb2b0e2034be8b
Reviewed-on: https://code.wireshark.org/review/36768
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-09 22:16:02 +00:00
Gerald Combs fcd51deb99 Docbook: Fix an unterminated tag, other updates.
Remove nested example tags from the dissection chapter, including and
unbalanced one. Mark our source blocks with [source,c].

Enable syntax highlighting in the Developer's and User's guides. This
isn't supported in the DocBook backend (which we use to generate the
HTML guides), but it is in the PDF backend.

Add a comment about failing on warnings when we generate our guides.

Change-Id: Ieee29fe75364ca23769aa997f90126e31b72cc8b
Reviewed-on: https://code.wireshark.org/review/36767
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-04-09 22:07:57 +00:00
Anders Broman ee61578682 decode_as: Update the documentation a bit.
Change-Id: I725e4cb0b075c5c763cf47fb6c7531f01139d54c
Reviewed-on: https://code.wireshark.org/review/36763
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-09 09:40:04 +00:00
Peter Wu a0600e02a9 tshark: fix use-after-free while closing a live capture file
wtap_cleanup() clears options which are still in use by the time
cf_close calls wtap_close. Be sure to close the capture file first.

Bug: 16487
Change-Id: Id9ef1c0321865e9574b69439870a842efb2b209b
Fixes: v3.3.0rc0-853-g3662a69036 ("Maintain cf->state, because file cleanup depends on it.")
Reviewed-on: https://code.wireshark.org/review/36755
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-08 21:58:21 +00:00
Dario Lombardo f71a5e0f02 github: add cmake options workflow.
This workflow will test the several options available in cmake,
by not using the default value.

The workflow runs once a day, instead on push, to spot problems
that unlikely happen.

The compilation without pcap has been removed from other CIs,
since it is included in this one and that will spare CI cycles.

Change-Id: I796a1ac1879fe85c66d9518207c7053531204c11
Reviewed-on: https://code.wireshark.org/review/36608
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-04-08 21:42:51 +00:00
Pascal Quantin 43c4e88625 SBcAP: use short protocol name in protocol column
Change-Id: I2f6a732a1f5bd368e3a15857bad722dc2d371f6a
Reviewed-on: https://code.wireshark.org/review/36750
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-08 20:22:44 +00:00
Joerg Mayer 4e909f2b65 packet-dhcp.c: Signed vs. unsigned warning fixes
Also some more whitespace fixes.

Change-Id: I53bc7c4073ed495b14580d59798456b17851cda2
Reviewed-on: https://code.wireshark.org/review/36749
Petri-Dish: Jörg Mayer <jmayer@loplof.de>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2020-04-08 13:49:59 +00:00
Joerg Mayer f74bd40eac packet-dhcp.c: Small whitespace fixes
Change-Id: I6c6bad7986f77f0d7456e29c794d95d4fc055add
Reviewed-on: https://code.wireshark.org/review/36747
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2020-04-08 11:03:05 +00:00
Guy Harris 0d2e6033ec Add additional checks, clean up some stuff.
Add checks for bad block lengths - either too short or not a multiple of
4.  (Yes, the pcapng spec requires it to be a multiple of 4.  And there
is at least one implementation that requires it.)

For various structures with a length field, create the top-level tree
field for the item with a "run to the end of the packet" length and,
once we're finished dissecting it, set the length to its actual value.

Fetch various field values using proto_tree_item_add_uint.  Fix some
incorrect field types based on errors reported by that.

If an end-of-options option has a non-zero length, 1) don't treat it as
not an end-of-options option and 2) report an error on its length.

Change-Id: I72b2c065f3e3c76d5b71a1cd2ef3c1f497623266
Reviewed-on: https://code.wireshark.org/review/36746
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-08 08:52:23 +00:00
Stig Bjørlykke 41ebec37cd lwm2mtlv: Handle 8 bytes Float
In LwM2M TLV format a Float can be a 4 or 8 bytes floating point value.
Allocate a separate FT_DOUBLE header field to handle this.

Refactor common code between OMA and UAT defined resources.

Bug: 16485
Change-Id: I45fe782a32444215959951f0b202de360a3b24b8
Reviewed-on: https://code.wireshark.org/review/36724
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-04-07 21:13:59 +00:00
Guy Harris a543cdd350 Use spaces, not tabs, for indentation.
There were a bunch of 4-space tab characters in the file, which is 1)
not the way UN*Xes work and 2) not what the modelines say; replace them
with 4 spaces, and further adjust some indentation.

Change the modelines to turn tab-to-space expansion on.

Change-Id: I7e22294e928ef95ab9f5d61f5d0e8abfe18cfb4e
Reviewed-on: https://code.wireshark.org/review/36738
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-07 19:04:44 +00:00
Pascal Quantin 94a9eeda2d NAS EPS: display remote UE context IPv6 prefix as IPv6 address
Change-Id: Ia116f2537e4ecec49013ffa4e3243b682fa9475f
Reviewed-on: https://code.wireshark.org/review/36737
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-07 17:55:55 +00:00
Jaap Keuter ecebc071ad FPP: Make dissector directionally aware
The IEEE 802.3br dissector does good work figuring out when a frame is
preempted by another, in the same direction, and reassemble the continuation
into a proper Ethernet frame. But when, at the same time, a frame appears in
the other direction, not unheard of in a full duplex link, the reassembly is
thrown in turmoil.
This change makes the reassembly directionally aware, so that preemptions,
either way and even simultanious, can be distinguised as long as the
direction of the frame is known.

Bug: 16470
Change-Id: Ic99353c1b95238e0d63c4cd14cd454d09e3675cc
Reviewed-on: https://code.wireshark.org/review/36731
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-07 14:11:44 +00:00
Anders Broman a4d4cb1409 nas-eps: Display interface identifier for the IPv6 lla as IPv6
Change-Id: Ia82085f94a1de7eeea4cecdbc8f060302ae18ed5
Reviewed-on: https://code.wireshark.org/review/36732
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-07 14:10:40 +00:00