Commit Graph

77571 Commits

Author SHA1 Message Date
Martin Kaiser 55d3d32239 proto: remove a temporary variable
In proto_tree_add_item_ret_time_string, we should return the result of
proto_tree_add_node directly like other similar functions.

Change-Id: I5f0cdc32ee3e69ecf3c62f1d56cb8278c91c9c45
Reviewed-on: https://code.wireshark.org/review/36716
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-05 18:22:35 +00:00
Martin Mathieson ec781e9749 proto: Add a debug check to sanity-check range_string
Check is enabled by #ifdef ENABLE_CHECK_FILTER
Remaining issues found by this check are fixed here,
along with a documentation note that the entries
are checked in order and the first match is used.

The only issue not yet fixed is in packet-isup.c,
where the spec was not available to me.

Change-Id: Ife747cda9b91a265bc2b81ce0a53f55f3389919e
Reviewed-on: https://code.wireshark.org/review/36708
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-05 17:40:21 +00:00
Pascal Quantin 361f82fe5a XnAP: upgrade dissector to v15.7.0
Change-Id: I85e9b8e704e96511777f12607ba645014271a98d
Reviewed-on: https://code.wireshark.org/review/36715
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-05 15:11:09 +00:00
Pascal Quantin b72e53731d NR RRC: upgrade dissector to v15.9.0
Change-Id: I1f12cacd94bbd857824267a9c01ed7ab61f3ef9b
Reviewed-on: https://code.wireshark.org/review/36713
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-05 11:30:45 +00:00
Jaap Keuter f627f850b5 Dumpcap manual: remove duplicate '-i' in synopsis
Commit 3398c2898d duplicated the '-i'
option in the synopsis. Remove this again.

Change-Id: I85fb78515910b11e9dff9b3aa876746b2ff11fa4
Reviewed-on: https://code.wireshark.org/review/36678
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 09:19:34 +00:00
Dmitriy Eliseev c5d77e474f synphasor: refactor display according latest version of standart
Updated the displayed protocol information according the latest version
of the standard - IEEE Std C37.118.2-2011
Refactored phasors dissection for a more complete display of information

Change-Id: I03c477b02236d667401c9e883947de47ad776278
Reviewed-on: https://code.wireshark.org/review/36675
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 09:18:04 +00:00
Mikael Kanstrup e4bfd8b19e dot11decrypt: Silent Coverity Scan out-of-bounds access error
Coverity Scan reports an out-of-bounds acccess on memcopy from addr1
of 802.11 mac header. This out-of-bounds access is a controlled access
knowing that addr2 and addr3 is located in memory right after addr1.
Type cast to a guint8 pointer to indicate that there's no fix length.
This should silent the Coverity Scan error reported.

Coverity CID 1460754

Change-Id: Ief2280f1b686deebf3aba74f19a5730c66d4d313
Reviewed-on: https://code.wireshark.org/review/36706
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:30:35 +00:00
Mikael Kanstrup 9bd47b765d dot11decrypt: Fix a resource leak on error path
Coverity CID 1450217

Change-Id: I51a3c3cca5c3850a2f8e9de5b4cca9f0efaca4a8
Reviewed-on: https://code.wireshark.org/review/36705
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:30:30 +00:00
Martin Kaiser 3f51380b3b bmp: remove _U_ for a parameter which is used
This fixes a -Wused-but-marked-unused compiler warning.

Change-Id: I44a04e60020b392d4d2c700e157617938a6164db
Reviewed-on: https://code.wireshark.org/review/36704
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:29:59 +00:00
Martin Kaiser 1fab12081d at: remove _U_ for a parameter which is used
This fixes a -Wused-but-marked-unused compiler warning.

Change-Id: I85d92954821feda80f1189a0e1b2c2071a25610a
Reviewed-on: https://code.wireshark.org/review/36702
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:29:50 +00:00
Martin Kaiser 1702b922d0 mp4: remove _U_ for a parameter which is used
This fixes a -Wused-but-marked-unused compiler warning.

Change-Id: I6a4b5a98237bdb1573bb893eeea2b510d7780f06
Reviewed-on: https://code.wireshark.org/review/36701
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:29:42 +00:00
Martin Kaiser cea9793437 afs: remove dead code
Remove some if and switch statements that do nothing.

Change-Id: I3de6aaa5a67c96864d6d532e44841bf7d20ec038
Reviewed-on: https://code.wireshark.org/review/36700
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:29:29 +00:00
Martin Kaiser 366daf37a0 acn: remove _U_ for parameters which are used
This fixes -Wused-but-marked-unused compiler warnings.

Change-Id: I7edaf1a0da62d8534718a66c7c5ad8ab8112ccec
Reviewed-on: https://code.wireshark.org/review/36699
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 08:29:20 +00:00
Gerald Combs d28520a7e3 [Automatic update for 2020-04-05]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: Iceb3f6c0575ae29b6991023288177a633eaf050a
Reviewed-on: https://code.wireshark.org/review/36709
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-04-05 08:17:03 +00:00
Pascal Quantin f48a62f4ef CMake: fix some warnings reported by CMake 3.17
Newer version of CMake complains with warnings like the one below:

The package name passed to `find_package_handle_standard_args` (MINIZIP)
does not match the name of the calling package (Minizip).  This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.

Change the capitalization of the variables to match the filename.

Change-Id: Ic3c88f33f5a2bfeba3fa3479df60210e67d25ff0
Reviewed-on: https://code.wireshark.org/review/36695
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 07:56:57 +00:00
Gerald Combs 8bf6c7b3bf WSDG: Migrate the asn2wrs content from the wiki.
Asn2wrs generates quite a bit of our dissector code, so convert some of
our asn2wrs wiki pages to a WSDG chapter. Conversion was done using the
script below and editing as needed.

----
OUT_ADOC="docbook/wsdg_src/WSDG_chapter_asn2wrs.adoc"

cp /dev/null "$OUT_ADOC"

PAGES="
    Asn2wrs
    Asn2wrs_Handmassaging_the_ASN_file
    ASN1_sample
    Asn2wrsAuxiliary
    #.END
    #.EXPORTS
    #.FN_BODY
    #.INCLUDE
    #.MODULE_IMPORT
    #.NO_EMIT
    #.PDU
    #.PDU_NEW
    #.REGISTER
    #.REGISTER_NEW
    #.USER_DEFINED
"

for PAGE in $PAGES ; do
    PAGE=${PAGE/\#/%23}
    curl "https://wiki.wireshark.org/$PAGE" \
        | xmllint --html --format --xpath '//div[@id="content"]' - \
        | pandoc -f html -t asciidoctor \
        | sed -e 's/\[\#[^ ][^ ]* .anchor\]##*//g' -e 's/\[content\]//g' \
        | cat -s \
        >> "$OUT_ADOC"
done
----

Change-Id: Ibc02b7b463dfc37abf5c2fd0a4e66f6161d290f6
Reviewed-on: https://code.wireshark.org/review/36707
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-05 07:02:42 +00:00
Pascal Quantin a3cf955113 X2AP: upgrade dissector to v15.9.0
Change-Id: I3a3c73eac9a576f4c494986b19332330523a9883
Reviewed-on: https://code.wireshark.org/review/36698
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-04 17:30:10 +00:00
Pascal Quantin 64daf0136c LTE RRC: upgrade dissector to v15.9.0
Change-Id: I214a985e5d421070d931eb90d5f0848998dfdca2
Reviewed-on: https://code.wireshark.org/review/36697
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-04 17:29:53 +00:00
Pascal Quantin 7fb4ae4c34 NAS 5GS: add dissection og multiple payloads container
Change-Id: If2fb7916e757cdbba445a7cd3a41208cab208c9f
Reviewed-on: https://code.wireshark.org/review/36696
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-04 16:16:50 +00:00
Alexis La Goutte 6b87ea0562 zbee_se: fix typ found by range_string checking
Notification Scheme (zbee_zcl_se.met.mirror_report_attribute_response.notification_scheme) hidden by earlier entry (prev="For MSP Requirements":  129 -> 255)  (this="Reserved":  255 -> 255)
Notification Scheme (zbee_zcl_se.met.configure_mirror.notification_scheme) hidden by earlier entry (prev="For MSP Requirements":  129 -> 255)  (this="Reserved":  255 -> 255)
Notification Scheme (zbee_zcl_se.met.configure_notification_scheme.notification_scheme) hidden by earlier entry (prev="For MSP Requirements":  129 -> 255)  (this="Reserved":  255 -> 255)
Notification Scheme (zbee_zcl_se.met.configure_notification_flags.notification_scheme) hidden by earlier entry (prev="For MSP Requirements":  129 -> 255)  (this="Reserved":  255 -> 255)
Notification Scheme (zbee_zcl_se.met.get_notified_msg.notification_scheme) hidden by earlier entry (prev="For MSP Requirements":  129 -> 255)  (this="Reserved":  255 -> 255)

Change-Id: If288052e7d02f6c4360f458e0496d9c05a245916
Reviewed-on: https://code.wireshark.org/review/36690
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Kenneth Soerensen <knnthsrnsn@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-04 11:54:07 +00:00
Martin Mathieson d9c5c59f50 EISS: Fix a typo in range_string (Application Id)
Change-Id: If0f7052067e5ad6932360ce29d584d997ee87c91
Reviewed-on: https://code.wireshark.org/review/36693
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-04 10:34:27 +00:00
Martin Mathieson 6c7583fc93 WiFi NAN: Fix range_string typos (ranging setup type)
Change-Id: I5999cbb964e75309c7c310014a2064626cf562f2
Reviewed-on: https://code.wireshark.org/review/36692
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-04 10:04:41 +00:00
Martin Mathieson e97ba4b489 TN5250: Fix issue with range_string entry hiding those below.
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PIP See Through On":  520093697 0x1f000001 -> 520093697 0x1f000001)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PIP SeeThrough Off":  520093696 0x1f000000 -> 520093696 0x1f000000)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Freeze PIP":  536870913 0x20000001 -> 536870913 0x20000001)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Resume After Freeze":  536870912 0x20000000 -> 536870912 0x20000000)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PC/TV Channel":  301989888 0x12000000 -> 301989988 0x12000064)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set Antenna Tuner Source":  285212672 0x11000000 -> 285212672 0x11000000)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set Cable Tuner Source":  285212673 0x11000001 -> 285212673 0x11000001)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Disable Internal Speaker":  553648129 0x21000001 -> 553648129 0x21000001)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Enable Internal  Speaker":  553648128 0x21000000 -> 553648128 0x21000000)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Keyboard Disable":  385875969 0x17000001 -> 385875969 0x17000001)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Keyboard Enable":  385875968 0x17000000 -> 385875968 0x17000000)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PC/TV Brightness":  218103808 0xd000000 -> 218103908 0xd000064)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PC/TV Color":  251658240 0xf000000 -> 251658340 0xf000064)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PC/TV Contrast":  234881024 0xe000000 -> 234881124 0xe000064)
value_range_string error:  Video/Audio Control Data (tn5250.vac_data) hidden by earlier entry (prev="Set PIP Location and Size":  0 0x0 -> 4294967295 0xffffffff)  (this="Set PC/TV Tint":  268435456 0x10000000 -> 268461156 0x10006464)
value_range_string error:  Data Field (tn5250.dfdpck_data_field) hidden by earlier entry (prev="Invalid Data Field Type":  0 0x0 -> 64 0x40)  (this="Top Row Command Key Functions":  64 0x40 -> 64 0x40)

Change-Id: I3596fa1a62c6f0e7c115551be137162ddb6679a6
Reviewed-on: https://code.wireshark.org/review/36683
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-04 09:32:47 +00:00
Dario Lombardo c474b70f8b github: move pip installations upwards.
python ssl has some conflict with installed packages. Installing pip
stuff before other packages fixes it.

Bug: 16478
Change-Id: Iba5a5eceb5e27a435544aa65e0fad683f798f3f3
Reviewed-on: https://code.wireshark.org/review/36669
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-04-03 22:33:34 +00:00
Guy Harris e285c7c1da Eliminate duplicate code.
If we're not going to distinguish between "Loading" and "Reloading" in
the progress bar here, we don't need to check, when creating the
progress bar, whether we're loading or reloading.

Should fix Coverity CID 1461194.

Change-Id: Ib58799c3a43a7ff549006034e2a47cce1ea87a98
Reviewed-on: https://code.wireshark.org/review/36689
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 18:48:40 +00:00
Guy Harris 5a9c86f5a7 OICQ: Add command 0x03f7 as "Withdraw message"
Taken from pull request

	https://github.com/boundary/wireshark/pull/2

by ShieLan, from the boundary/wireshark repository.

Change-Id: Ib93a888de543eb74bf11483120afc240c5519eab
Reviewed-on: https://code.wireshark.org/review/36688
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 17:52:30 +00:00
Dario Lombardo 2f514106ea github: don't install ruby twice.
Change-Id: Id6edfca6f98ecfd5c30b5973f81980a8e8d935d4
Reviewed-on: https://code.wireshark.org/review/36668
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-04-03 16:27:55 +00:00
Dario Lombardo 65bcd03ce8 github: install ruby via action v1.1.1.
Action v1 is buggy and has been fixed in v1.1.1.
Error:
sudo ln -sf /Users/runner/hostedtoolcache/Ruby/2.6.5/x64/bin/ruby /usr/bin/ruby
ln: /usr/bin/ruby: Operation not permitted
(node:1010) UnhandledPromiseRejectionWarning: Error: The process 'sudo' failed with exit code 1
    at ExecState._setResult (/Users/runner/runners/2.165.2/work/_actions/actions/setup-ruby/v1/node_modules/@actions/exec/lib/toolrunner.js:547:25)
    at ExecState.CheckComplete (/Users/runner/runners/2.165.2/work/_actions/actions/setup-ruby/v1/node_modules/@actions/exec/lib/toolrunner.js:530:18)
    at ChildProcess.<anonymous> (/Users/runner/runners/2.165.2/work/_actions/actions/setup-ruby/v1/node_modules/@actions/exec/lib/toolrunner.js:430:27)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Change-Id: I2b715291265d4675b46850006bd3fbecaaf9f4be
Reviewed-on: https://code.wireshark.org/review/36667
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-04-03 16:27:42 +00:00
Guy Harris 764b4d3bb3 netflow: decode RTT
From

    commit 07eade8124fd1d5386161591b52e177ee6ea849f
    Author: Brent Cook <brent@boundary.com>
    Date:   Fri Apr 19 12:59:45 2013 -0500

    decode RTT

in https://github.com/boundary/wireshark, with some fixes made.

Change-Id: Ib0393fc201f59cfec566d4fe5309a1e06b641e8a
Reviewed-on: https://code.wireshark.org/review/36682
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 16:03:26 +00:00
Guy Harris c0186ba7f1 netflow: nic IE decode
From

    commit 3affdac9d2de60a848b299d6bbb0bb94e6b6042b
    Author: Brent Cook <brent@boundary.com>
    Date:   Fri Apr 19 11:12:19 2013 -0500

        nic IE decode

in https://github.com/boundary/wireshark, with some fixes made.

Change-Id: I006d118c5dfa4f716aa185b71b2bcc80b7c0cb7e
Reviewed-on: https://code.wireshark.org/review/36679
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 09:25:22 +00:00
Alexis La Goutte b94260d0f6 zbee_aps: fix typo found by range_string checking
Profile (zbee_aps.profile) hidden by earlier entry (prev='IEEE_1451_5':  48896 -> 48896)  (this='IEEE_1451_5':  48896 -> 48896)
Profile (zbee_aps.profile) hidden by earlier entry (prev='Unallocated Manufacturer-Specific':  48896 -> 49151)  (this='IEEE_1451_5':  48896 -> 48896)

Change-Id: I352d63a447d209472005221a0276f7c681db8bb5
Reviewed-on: https://code.wireshark.org/review/36681
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-03 08:56:27 +00:00
Alexis La Goutte 18781916da isakmp: fix typo found by range_string checking
Notify Message Type (isakmp.notify.msgtype) hidden by earlier entry (prev=RESERVED:  15 -> 16)  (this=RESERVED:  15 -> 16)

Change-Id: I3a371587f203ff845ff3f0c9c52a4e6feb714f92
Reviewed-on: https://code.wireshark.org/review/36680
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-03 08:49:10 +00:00
Guy Harris 324ec99d6d netflow: decode Boundary bprobe meter ID IEs
From
    commit 9df4aaea9dc3005682527cedef14520a9df1a981
    Author: Brent Cook <brent@boundary.com>
    Date:   Fri Apr 19 10:02:39 2013 -0500

        decode Boundary bprobe meter ID IEs

in https://github.com/boundary/wireshark, with some fixes made.

Change-Id: Ia77c28807ac7165e0e1e590442129fe67a942e07
Reviewed-on: https://code.wireshark.org/review/36674
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 08:17:11 +00:00
Pascal Quantin 37831185f0 GSM SMS: fix gsm_sms_tp_failure_cause_values array definition
Change-Id: I3622e824592b66144fe4e1be3c82bf5e207aaf43
Reviewed-on: https://code.wireshark.org/review/36677
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-03 07:51:29 +00:00
Pascal Quantin 6d471c9a22 Diameter 3GPP: fix diameter_3gpp_qos_delay_cls_vals array definition
Change-Id: Id8df6889f177e203380a7cc98d15d8cb7514bb03
Reviewed-on: https://code.wireshark.org/review/36676
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-04-03 07:51:10 +00:00
Guy Harris 024e6cf1e7 added fastip (Boundary) enterprise ID
From

    commit f8e7530fbef3b969facca42929f0fe6c8e1fd6bd
    Author: Brent Cook <brent@boundary.com>
    Date:   Fri Apr 19 10:02:09 2013 -0500

        added fastip (Boundary) enterprise ID

in https://github.com/boundary/wireshark.

Change-Id: I8afdb1ce1d96e194140175c63d66dcc7df46bbdf
Reviewed-on: https://code.wireshark.org/review/36673
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 06:50:15 +00:00
Jiří Engelthaler a4220efead IEC104: Add dissection of parameters P_ME_NA_1, P_ME_NB_1, P_ME_NC_1
Fix subtree ett for COI

Change-Id: I3050a2fe797318947253efcdd4b310f98b691a14
Reviewed-on: https://code.wireshark.org/review/36670
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2020-04-03 06:28:52 +00:00
Guy Harris ec2ca11c9c Clean up a number of things.
Pass to the routines that handle particular ISIS PDU types a tvbuff for
the *full* PDU; some PDU types may have a checksum CLV type that
checksums the *entire* PDU.

Pass an isis_data_t * around to various routines, rather than passing
some individual bits of information around.

Add to that structure:

	the PDU length from the common-to-all-PDU-types part of the ISIS
	header;

	a proto_item * for the header length field;

	an expert_field * for a "the header length is bad" error.

Use the PDU length from that structure when handling the aforementioned
checksum CLV.

When dissecting the PDU-type-specific part of the ISIS header, check to
make sure we're not going past the header length and, if we are, report
it with an expert info, using the header length field proto_item * and
expert_field * from that structure.

Show the type field in sub-TLVs of the Group Address TLV (RFC 7176
section 2.1) and, if the type is unknown, add a top-level item with the
type and length fields under it.

This fixes some bugs.

Bug: 16477
Change-Id: I875306d9d4fd8f65a60b7a6d3be7e356afabe851
Reviewed-on: https://code.wireshark.org/review/36671
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-03 00:21:37 +00:00
Alexis La Goutte a2b3b0d49f usbll: fix no previous prototype for function
packet-usbll.c:557:1: warning: no previous prototype for function 'proto_register_usbll' [-Wmissing-prototypes]
packet-usbll.c:678:1: warning: no previous prototype for function 'proto_reg_handoff_usbll' [-Wmissing-prototypes]

Change-Id: I407397ebaa4f60674d52ccd066e1e79d00371d6d
Reviewed-on: https://code.wireshark.org/review/36656
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 14:47:43 +00:00
Alexis La Goutte 1467f6e57d rtps: fix no previous prototype for function
packet-rtps.c:1878:6: warning: no previous prototype for ‘rtps_util_add_coherent_set_general_cases_case’ [-Wmissing-prototypes]
packet-rtps.c:1969:6: warning: no previous prototype for ‘rtps_util_detect_coherent_set_end_empty_data_case’ [-Wmissing-prototypes]

Change-Id: If9c559f4ee341d0268e34cad51f11e8a9115961e
Reviewed-on: https://code.wireshark.org/review/36655
Reviewed-by: Juan Jose Martin Carrascosa <juanjo@rti.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 14:47:32 +00:00
Alexis La Goutte 2346ad87c0 cfdp: fix no previous prototype for function
packet-cfdp.c:1404:1: warning: no previous prototype for ‘dissect_cfdp_as_subtree’ [-Wmissing-prototypes]

Change-Id: I671c94bf1557ceef8a87d6da859c1e6ee76b2fca
Reviewed-on: https://code.wireshark.org/review/36654
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 14:47:18 +00:00
Martin Mathieson acc6a61ddb RTCP: Fix wrong value in rtcp_mcpt_field_id_vals (Queued User ID)
Change-Id: Ia076582c30a1763a531f8fc3bc13ebd88d7aa728
Reviewed-on: https://code.wireshark.org/review/36666
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-04-02 09:55:22 +00:00
Dario Lombardo 772813fcc7 pluginifdemo: fix compilation when it's enabled.
Enable the plugin with ENABLE_PLUGIN_IFDEMO=1.

Change-Id: I8ebc076d3b4ea66443d58e57dce0d235a214a2bb
Reviewed-on: https://code.wireshark.org/review/36606
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-04-02 08:50:06 +00:00
Gerald Combs e37a7abf56 Remove duplicate status messages.
Adding back progress titles in g3069129fe5 revealed the fact that we had
duplicate messages in the Qt UI and in file.c. Remove the ones in file.c
in favor of the Qt UI, since the latter are translated.

Change-Id: I5ff8f1bd34e963e9e66c01420ad8c5fe9c2f0caa
Reviewed-on: https://code.wireshark.org/review/36646
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 08:13:06 +00:00
Dario Lombardo 3885912cca proto: fix invalid types in hf check routine.
The conditional code compiles with ENABLE_CHECKHF_CONFLICT=1.
The mix of string_value and string_value64 requires to split
up the code, and a macro seems to be the most suitable solution
since types are involved.

The error raises on Ubuntu 18.04:

FAILED: epan/CMakeFiles/epan.dir/proto.c.o
/usr/bin/cc -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DWS_BUILD_DLL -Depan_EXPORTS -I. -I../ -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/lua5.2 -I/usr/include/libxml2 -Iepan -I../epan -fvisibility=hidden  -fexcess-precision=fast -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wframe-larger-than=32768 -Wc++-compat -Wunused-const-variable -Wshadow -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -Wno-pointer-sign -std=gnu99  -O2 -g -DNDEBUG -fPIC   -isystem /usr/include/mit-krb5 -Werror -MD -MT epan/CMakeFiles/epan.dir/proto.c.o -MF epan/CMakeFiles/epan.dir/proto.c.o.d -o epan/CMakeFiles/epan.dir/proto.c.o   -c ../epan/proto.c
../epan/proto.c: In function ‘tmp_fld_check_assert’:
../epan/proto.c:8013:18: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
     start_values = VAL64_STRING_EXT_VS_P(((const val64_string_ext*)hfinfo->strings));
                  ^
cc1: all warnings being treated as errors
[27/388] Building CXX object ui/qt/CMakeFiles/qtui.dir/coloring_rules_dialog.cpp.o
ninja: build stopped: subcommand failed.

Change-Id: I77c424bac96a1bbe81c0826faef66df7cc476ec4
Reviewed-on: https://code.wireshark.org/review/36604
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 07:47:23 +00:00
Cedric Izoard e07f75f795 ieee80211: Beacon Radio Measurement request/report update
- Complete list of possible sub elements for beacon measurement
  request/report (as of IEEE P802.11REVmd/D3.2)

  For sub elements that are also regular elements (request, extended
  request, AP channel report and wide bandwidth channel switch) use
  the "regular" dissect function instead of duplicating the code.

- Create a sub-tree for each sub element

- Just like request part, add warning for unknown sub elements in
  report and properly skip them.

- Correct offset used to read fixed size fields in 'reported frame
  body' and skip those fields if the frame is reported with several
  fragment

- Used already defined "display functions" for RCPI and RSNI fields in
  beacon report (slightly update RSNI function).

- Update TIM element parsing to allow a size of 2 as TIM might be
  truncated in frame reported body.

Bug: 16469
Change-Id: If339cf4990b2bf8ec049ce23aa9461c8a9d85be2
Reviewed-on: https://code.wireshark.org/review/36643
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 07:45:47 +00:00
Alexis La Goutte 52ae96e360 dot11decrypt_util.c: fix no previous prototype for function
dot11decrypt_util.c:34:6: warning: no previous prototype for ‘dot11decrypt_construct_aad’ [-Wmissing-prototypes]

Change-Id: Ideda2d18de88aed9d3fd045a02ead6446b0dbfce
Reviewed-on: https://code.wireshark.org/review/36653
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-02 07:43:49 +00:00
Martin Mathieson c68b7cb74a DTN: Fix dissection of the Bundle Refusal Reason.
Spotted by ENABLE_CHECK_FILTER check.

                               0 1 2 3 4 5 6 7
                              +-+-+-+-+-+-+-+-+
                              |  0x3  | RCode |
                              +-+-+-+-+-+-+-+-+

Change-Id: I6bf66b13ee3c8e7b59c4c463c7ccebf6db27f497
Reviewed-on: https://code.wireshark.org/review/36664
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-04-02 04:37:32 +00:00
Guy Harris 3398c2898d Document the -k option.
Change-Id: Ia695e3edcf673495eb8e61edfa72709fda2f99af
Reviewed-on: https://code.wireshark.org/review/36663
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-01 21:55:32 +00:00
Guy Harris 0975bf792a Handle -k better on platforms that don't support it.
Have ws80211_init() return an indication that channel setting isn't
supported on those platforms.

In dumpcap, try to set up ws80211 before checking the channel argument
and, if it fails, report the failure, rather than failing because the
"convert channel name to channel code" routine fails.

See

    https://ask.wireshark.org/question/15535/dumpcap-k-is-not-accepting-channel-type-values/

for an example of confusion caused by the previous behavior.

Change-Id: I303f560704700bbcd4f0ecea041f8632744212f3
Reviewed-on: https://code.wireshark.org/review/36659
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-01 20:31:14 +00:00