Commit graph

75559 commits

Author SHA1 Message Date
Guy Harris
c591049194 Register the "missing word parameters" expert info.
Change-Id: I6dbd8af61bf8ee4e55264116c1838d7bdf1b1a67
Reviewed-on: https://code.wireshark.org/review/33468
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-06-04 19:47:13 +00:00
Guy Harris
f0c13af7d3 Don't assume an NT Create AndX request has all the word parameters.
It *should*, but a malicious or otherwise malformed packet might not
have them.  One of them is the file name length; if it's missing, we
can't dissect the file name, as we don't know how long it is.

Change-Id: Ie259e2d8ec65f5d53d466382d89889902495d2c8
Reviewed-on: https://code.wireshark.org/review/33467
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-06-04 19:44:54 +00:00
Guy Harris
7b12f11721 Reassemble PLP chunks.
Display the data in a PLP chunk as just raw bytes, and reassembled all
the chunks and extract the value from the reassembled data.

Showing the chunks as strings doesn't necessarily work - if the string
is an NVarChar string, a chunk might well have an odd number of octets,
meaning you're splitting one of the 16-bit UTF-16LE items in half.
Reassembling handles that, as well as just, in general, showing the
actual value rather than pieces of the value.

If the column is a string, append its value to the top-level item, just
as we do for non-PLP strings.

Also, if a length value was specified, report an error if it doesn't
match the total length of the reassembled chunks.

Change-Id: Iab80da052eb363ee08cd518afbe2556a5ab740b9
Reviewed-on: https://code.wireshark.org/review/33466
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-06-04 18:46:15 +00:00
Dario Lombardo
7cb77f5ca7 btmesh: fix indentation.
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-04 14:10:02 +00:00
Dario Lombardo
690f0f4d24 btmesh: fix compilation with older gcrypt version.
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-04 14:09:30 +00:00
Martin Mathieson
3bbc888798 DCT2000: Fix up the way RRC dissectors are called.
Change-Id: I61d51cfdde1ec7b358a6e1ade7d58f82aa897f04
Reviewed-on: https://code.wireshark.org/review/33455
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2019-06-04 12:24:01 +00:00
Jeffrey Goff
c504a49a37 Add Aruba ERM Type 6 Radiotap format
Starting from ArubaOS 8.6.0.0 all 11n, 11ac and 11ax APs are
expected to support type 6 ap packet captures which will be
decoded using the radiotap dissector.

Change-Id: If9e9488271965116e807adbbcf92b9c5e4fb2ac4
Reviewed-on: https://code.wireshark.org/review/33451
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: Jaap Keuter <jaap.keuter@xs4all.nl>
2019-06-04 06:19:12 +00:00
Bruno Verstuyft
4153a34d29 XRA: minislot_info, mer and power_level not exclusively for ranging
Change-Id: I417f20a9ebfada069ca13253cbd55ac37940a620
Reviewed-on: https://code.wireshark.org/review/33415
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-06-03 16:57:37 +00:00
Piotr Winiarczyk
32aeca13ec BTMESH: Add dissector for Foundation models
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-06-03 15:40:58 +00:00
Swapnil Roy
cbeb543cd6 pfcp: Outer Header Removal IE dissection fixed
Change-Id: Id44e8536a7bf1458c978e6fed506684aa56fdeb1
Reviewed-on: https://code.wireshark.org/review/33442
Reviewed-by: Joakim Karlsson <oakimk@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-06-03 15:40:39 +00:00
Guy Harris
66cfba60a6 Add an XXX item, expand another one.
Change-Id: I4f274325e2e51e3e70ef852093a17fbd01f3632e
Reviewed-on: https://code.wireshark.org/review/33450
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-06-02 23:14:29 +00:00
Martin Kaiser
5d2c355c72 iso7816: dissect the parameters of "read record"
Dissect the two parameter bytes p1 and p2 for the read record message.
Usually, p1 contains the record number and p2 defines that we want to
read exactly this record in the currently selected file.

Change-Id: I34586d6cfd4293120416507ef1613b9f3278d0df
Reviewed-on: https://code.wireshark.org/review/33448
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>
2019-06-02 20:03:23 +00:00
Martin Kaiser
c093c5ea02 iso7816: (trivial) The 0xB2 command is called "read record".
Remove the plural. The specification documents use "read record" as well.

Change-Id: Ib7a77f33e2bb0c59720be3e8e89da6be1cd9afd0
Reviewed-on: https://code.wireshark.org/review/33447
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2019-06-02 15:50:48 +00:00
Gerald Combs
49b44f55a5 [Automatic update for 2019-06-02]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I07e8df2a568dbe5d37530377ddbb505414604f67
Reviewed-on: https://code.wireshark.org/review/33443
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-06-02 08:21:58 +00:00
Jaap Keuter
5eeef4e457 PCEP: Add PATH-SETUP-TYPE-CAPABILITY TLV dissection
Complete RFC 8408 support by adding PATH-SETUP-TYPE-CAPABILITY TLV
dissection support.

Change-Id: I581b77dad8e8520e7820bdf114d47ab1028026bf
Reviewed-on: https://code.wireshark.org/review/33427
Reviewed-by: Sake Blok <sake.blok@SYN-bit.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-06-01 10:26:40 +00:00
Dario Lombardo
44c1418d7e tap-httpstat: remove spaces.
Change-Id: I2a28ac2697d95c8f298ddb6641e3c8acf65ec373
Reviewed-on: https://code.wireshark.org/review/33432
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-06-01 10:25:43 +00:00
Gerald Combs
332eeb1f88 macOS: Notarization count fix.
Change-Id: If2be00ebf08655d967273ae3a84f4345ea10f06a
Reviewed-on: https://code.wireshark.org/review/33435
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-05-31 20:58:02 +00:00
Dario Lombardo
01a30c1018 README.tapping: minor changes.
Change-Id: I0614d4c0cc8c9aada8660297b9d08f9d03129e29
Reviewed-on: https://code.wireshark.org/review/33433
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2019-05-31 17:35:59 +00:00
Gerald Combs
23ec0666c5 macOS: Notarization updates.
Increase our timeout from 10 minutes to 20. Fixup our ID formatting.

Change-Id: I143c08880de4f285bd0bc6dbf6619d565ef97b3a
Reviewed-on: https://code.wireshark.org/review/33434
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-05-31 17:29:54 +00:00
Sake Blok
237ec1349f IP: Make dissection of ip.frag_offset RFC 791 compliant
The v2.5.0rc0-478-g558fe23226, the dissection of ip.frag_offset changed
to be listed under "Flags", this is not correct. The Fragmentation
Offset is a separate field according to the RFC. This change corrects
that behavior. Also, the raw value from the header was shown instead of
the real byte offset, this is also corrected.

Change-Id: I1d6dfc4314091eb6f3eef418c5a17ed37f7a1200
Fixes: v2.5.0rc0-478-g558fe23226 ("[IP] Simplify paring of flags field by using proto_tree_add_bitmask_with_flags().")
Reviewed-on: https://code.wireshark.org/review/33422
Petri-Dish: Sake Blok <sake.blok@SYN-bit.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Sake Blok <sake.blok@SYN-bit.nl>
2019-05-30 21:47:19 +00:00
Jonas Jonsson
49b6523c6c btle: Correctly detect l2cap fragment start
The first L2CAP PDU fragment starts with the 4 octet long L2CAP header
consisting of the Length and the CID fields. The Length field doesn't
include the header itself. Thus the Length field in the BLE Data header
will be 4 octets larger than the L2CAP PDU header Length field if the
packet wouldn't be fragmented.

The current implementation doesn't correctly detect the start fragment
causing reassembly to fail as it compares the BLE Data Length with the
L2CAP Length without compensating for the header.

By increasing the L2CAP PDU Length field with the header length the
reassembly works.

Rename the variable to better reflect what length it actually
represents.

Bug: 15807
Change-Id: Idcb6bdccc4daae756a63a9bae0839fe25ae99f23
Reviewed-on: https://code.wireshark.org/review/33428
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2019-05-30 21:21:19 +00:00
Jaap Keuter
860e73c88f WSDG: Don't make hyperlinks of Gerrit git access links
The URL's used to access the repository with git should not be hyperlinks in
the documentation. These are not intended to be used by a webbrowser.

Change-Id: I2d516f823e58681474f6a2a9e2e229471fbc87f6
Reviewed-on: https://code.wireshark.org/review/33423
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-05-30 21:18:58 +00:00
Sake Blok
8f549115d5 Bump Ubuntu version to 18.04 in Vagrantfile
Ubuntu 16.04 uses an older GCC version which produces some errors in compiling. Updating
to Ubuntu 18.04 solves these issues as it is using a more recent GCC version (7.4.0).

Change-Id: Ia62bb60d3549b7e12ab82abfa5e8751e474bb701
Reviewed-on: https://code.wireshark.org/review/33424
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Sake Blok <sake.blok@SYN-bit.nl>
2019-05-30 20:29:47 +00:00
Jaap Keuter
9d8f55cb05 WSDG: refine text on cloning repository
Text smells of CVS/SVN heratige.

Change-Id: I37c3309781f49149b2603ae32087ed01363460ee
Reviewed-on: https://code.wireshark.org/review/33421
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2019-05-30 12:41:01 +00:00
Martin Kaiser
d44cb24f1f iso14443: use the correct I-block payload
When we reassemble I-blocks, we pass the payload to fragment_add_seq_next.
To do so, we use the overall iso14443 tvb, an offset and the payload length
as parameters.

We then call process_reassembled_data to do reassembly. If the I-block was
not fragmented, process_reassembled_data returns the only fragment + the
rest of the packet after this fragment.

This might be a misunderstanding on my part or something to be fixed in the
reassembly routines. For now, we work around this by defining a new tvb for
the data we submit to fragment_add_seq_next.

(I ran into a similar issue years ago for DVB-CI. Add a comment about this.
If it turns out that there's a better way to fix this, we should be fixing
both dissectors.)

Change-Id: Id83ab152529a5150669df3099df6f60be7a3a723
Reviewed-on: https://code.wireshark.org/review/33355
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2019-05-30 12:34:37 +00:00
Guy Harris
78a106dc2a Fix handling of headers in body part.
Check whether the unfolded-and-compacted header has only printable
characters, not whether the full header does - the full header may
include LWSP, which includes HT, CR, and LF, none of which are
considered "printable", so valid headers were being treated as not being
headers, causing mis-dissection of some packets.

We don't need to split the header name from the value -
is_known_multipart_header() stops comparison at the end of the header
name.

Change-Id: I96e4ac0b69df726b984ee7faeea19eda18be223c
Reviewed-on: https://code.wireshark.org/review/33417
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
2019-05-29 18:07:46 +00:00
Tomasz Moń
01d20982c3 USB: Add interface-specific setup data to setup tree
This results in GET DESCRIPTOR Request HID Report entries to be properly
grouped under the URB setup instead of being directly added to top level
tree.

Rename tree from "URB setup" to "Setup Data" to better match the
terminology used in USB specification.

Change-Id: If9ef7cea86b51c0c63680c424d7f45d7dd38249b
Reviewed-on: https://code.wireshark.org/review/33408
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>
2019-05-29 07:32:58 +00:00
Tomasz Moń
1e7db19ff9 USB: Dissect SuperSpeed Endpoint Companion descriptors
Mark undecoded data in endpoint descriptors with expert info.

Bug: 15798
Change-Id: I392da00205274fb3f5eb947a54ba424d1edb041b
Reviewed-on: https://code.wireshark.org/review/33386
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-29 07:32:48 +00:00
Gerald Combs
2eb1a0dd61 Use the HTTPS URL for our main site in a few places.
Fixup the encoding of plugins/plugin.rc.in while we're here.

Change-Id: I21b56ce68bc3d84298a846a991c72bf710b9ae8a
Reviewed-on: https://code.wireshark.org/review/33414
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-05-29 04:00:42 +00:00
Guy Harris
4997002458 Clean up indentation.
Change-Id: Idfa3e15eaa1d764f66d630878f1c44561169d8bf
Reviewed-on: https://code.wireshark.org/review/33409
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 18:04:20 +00:00
Bruno Verstuyft
c3ea14ece4 XRA: PLC can contain multiple MMM messages
Change-Id: Ic43200df5fe94818ba6fffa4bf2609213777df5f
Reviewed-on: https://code.wireshark.org/review/33330
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-28 06:49:53 +00:00
Alexander Koeppe
d0bb4e64cc cisco-fp-mim: Properly handle FabricPath header variations (.1Q VLAN)
Under some circumstances, FabricPath frames may be generated during a monitor
(capture) session, that contains a modified FabricPath header format in order
to retain the ID of the original FabricPath VLAN.

To make wireshark capable to dissect such frames, this commit amends the
heuristic logic of the dissector and make it work as a heuristic-only dissector

Change-Id: I40f6f75a629585ececbc1ce4f94fa61065110d2c
Reviewed-on: https://code.wireshark.org/review/33321
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-28 06:49:40 +00:00
Guy Harris
f72e504817 Dissect LDAP strings as UTF-8.
This requires some special hackery, including a new packet-ber.c
routine, as those strings are just OCTET STRINGs, not UTF8Strings.

Change-Id: I776ed47f7400eba366a630b60b94be3397f7b45f
Reviewed-on: https://code.wireshark.org/review/33403
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 04:11:35 +00:00
LoSmX
c79145cffe Flexray: Add heuristic subdissection
Dissector tries heuristic dissectors too. Preference was added
determining if heuristic dissectors should be tried first.

Change-Id: Ib70ddca9a33b507b8e4ea89aae5b00961b5273e5
Reviewed-on: https://code.wireshark.org/review/33128
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-28 03:40:09 +00:00
Slava Bacherikov
9fa13ff70d [packet-gelf.c] Add dissector for GELF protocol
Add dissection for Graylog Extended Log Format (GELF) over UDP.

Bug: 15776
Change-Id: Ie976a1dee8d3441532f209061aef5c804219f289
Reviewed-on: https://code.wireshark.org/review/33184
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>
2019-05-28 03:38:13 +00:00
Dario Lombardo
1f75694f14 docbook: add a link to the gerrit manual explaining change-ids.
Change-Id: I775e05bac8b0f8988d503bde6091922d2fab2583
Reviewed-on: https://code.wireshark.org/review/33381
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-28 03:33:29 +00:00
Uli Heilmeier
d4836d1efe WSUG: Update vlan resolving
Update documentation to profile aware vlans file.

Change-Id: I210964528663bdf7e3e20e623eda1d93a26f7486
Ping-Bug: 15795
Reviewed-on: https://code.wireshark.org/review/33387
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-28 03:32:35 +00:00
Guy Harris
b9c69d6ef8 Clean up some ASCII vs. EBCDIC string handling.
In at least one capture, structure IDs are in ASCII even though the code
page in the header is an EBCDIC code page.  Determine the structure ID's
character encoding based on whether it's the ASCII or EBCDIC version of
the ID value, not on the global character encoding.

We were using the *integer* encoding, not the *string* encoding, for the
"qprotect" field, which is a string; fix that.

Use STR_UNICODE for strings, as they're not guaranteed to consist of
characters that can be mapped to ASCII characters (even the common
subset of EBCDIC, not counting code page-dependent code points, has
non-ASCII printable characters in it).

Change-Id: I971dd7ae55617c27ebe88f31089b2495374593bf
Reviewed-on: https://code.wireshark.org/review/33399
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 01:28:19 +00:00
Guy Harris
3a56285ffb Note, in a comment, some weird characters that appear in wildcards.
At least some NCP operations that do file enumeration take wildcard
strings, with special codes for "special" variants of the asterisk and
question mark wildcards and the component separator period.

We should figure out how to display those "special" characters (put an
overbar above them, or something such as that?)

Change-Id: I4e455f47ae3a701004fe7989b44b64a77b26e828
Reviewed-on: https://code.wireshark.org/review/33398
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 01:16:50 +00:00
Guy Harris
0ac699d621 Strings in mDNS TXT records are UTF-8.
Change-Id: Iedde17155aae71e9bc7ad3cc5185ea33e34e209c
Reviewed-on: https://code.wireshark.org/review/33391
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 00:47:31 +00:00
Guy Harris
1d88e9b25f Strings in the CUPS browsing protocol are UTF-8.
Change-Id: I594a22acf9202f7b7ca2e4ee3c58c308c2cd7019
Reviewed-on: https://code.wireshark.org/review/33390
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-05-28 00:44:11 +00:00
Uli Heilmeier
c5fdbc5644 VLAN resolving: use existing file_exists() function
Use existsing file_exists() function to check if the profile contains
a vlans file.

Change-Id: Ibc3d32b27059edd80b7c4e88ceb48fded2334909
Reviewed-on: https://code.wireshark.org/review/33384
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2019-05-27 10:43:14 +00:00
Uli Heilmeier
26a4fb332b VLAN resolving: check profile first
If the profile directory contains a vlans file we will use it. Otherwise
fall back to normal user preferences.

Bug: 15795
Change-Id: Ie6a63a6f7a29bd83a15799875aa5883be7010039
Reviewed-on: https://code.wireshark.org/review/33378
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-27 08:34:33 +00:00
Piotr Tulpan
bc5b71c00b RANAP: Handle 7 byte NSAP address in transportLayerAddress
Handle NSAP 7 byte IPv4 address in transportLayerAddress field which aren't padded to 20 bytes.

Change-Id: Ied9a9549612fe8e9ec511419ee0d7e5ae06bcedf
Reviewed-on: https://code.wireshark.org/review/33278
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-05-27 08:34:21 +00:00
Pascal Quantin
76785a12b3 Windows: upgrade USBPcap to 1.4.0.0
Change-Id: I79b8ece52e89e4e646954e965649b0cf5ae69a6a
Reviewed-on: https://code.wireshark.org/review/33379
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-05-26 21:19:52 +00:00
Martin Kaiser
663096248c blip: fix used-but-marked-unused warnings
blip.c:195:4: error: 'offset' was marked unused but was used
                        offset,
                        ^
blip.c:200:22: error: 'blip_tree' was marked unused but was used
        proto_tree_add_item(blip_tree, hf_blip_ack_size, tvb, offset, varint_ack_size_length, ENC_VARINT_PROTOBUF);
                            ^
blip.c:200:56: error: 'offset' was marked unused but was used
        proto_tree_add_item(blip_tree, hf_blip_ack_size, tvb, offset, varint_ack_size_length, ENC_VARINT_PROTOBUF);
                                                              ^
blip.c:202:2: error: 'offset' was marked unused but was used
        offset += varint_ack_size_length;
        ^
blip.c:284:14: error: 'pinfo' was marked unused but was used
        col_set_str(pinfo->cinfo, COL_PROTOCOL, "BLIP");
                    ^
blip.c:286:12: error: 'pinfo' was marked unused but was used
        col_clear(pinfo->cinfo,COL_INFO);
                  ^
blip.c:333:14: error: 'pinfo' was marked unused but was used
        col_add_str(pinfo->cinfo, COL_INFO, col_info);
                    ^
blip.c:337:34: error: 'pinfo' was marked unused but was used
                return handle_ack_message(tvb, pinfo, blip_tree, offset, value_frame_flags);
                                               ^
blip.c:346:45: error: 'pinfo' was marked unused but was used
        conversation = find_or_create_conversation(pinfo);
                                                   ^
blip.c:361:4: error: 'pinfo' was marked unused but was used
                        pinfo,
                        ^
blip.c:380:27: error: 'pinfo' was marked unused but was used
                tvb_to_use = decompress(pinfo, tvb, offset, tvb_reported_length_remaining(tvb, offset) - BLIP_BODY_CHECKSUM_SIZE);

Change-Id: I9de1a78942469cc16011fd1a21d93b81820bee80
Reviewed-on: https://code.wireshark.org/review/33373
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-05-26 19:05:10 +00:00
Martin Kaiser
daead4e5fc dhcp: fix used-but-marked-unused warnings
dhcp.c:3087:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be >= 10");
                                       ^
dhcp.c:3119:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be 4");
                                       ^
dhcp.c:3131:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be 4");
                                       ^
dhcp.c:3143:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be 4");
                                       ^
dhcp.c:3155:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must >= 1");
                                       ^
dhcp.c:3176:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must >= 5");
                                       ^
dhcp.c:3201:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be 4");

Change-Id: If4e05284a4489e7cea75fee52733851533dacbc1
Reviewed-on: https://code.wireshark.org/review/33372
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>
2019-05-26 19:04:50 +00:00
Martin Kaiser
72cd130f01 dot11decrypt: fix a used-but-marked-unused warning
dot11decrypt.c:1686:46: error: 'group_cipher' was marked unused but was used
      &group_cipher, &cipher, &akm);

Change-Id: Ie7b9eba44eaf9bf160ca6eb6bb7373b7ba3fd8cb
Reviewed-on: https://code.wireshark.org/review/33371
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>
2019-05-26 19:04:36 +00:00
Martin Kaiser
e08937ac44 rbm: fix a bunch of used-but-marked-unused warnings
file-rbm.c:143:34: error: 'tree' was marked unused but was used
        proto_tree_add_int_format_value(tree, hf_rbm_integer, tvb, *offset, len, value, "%d", value);
                                        ^
file-rbm.c:374:23: error: 'offset' was marked unused but was used
        gint offset_start = *offset;
                             ^
file-rbm.c:375:48: error: 'tree' was marked unused but was used
        proto_tree* drb_tree = proto_tree_add_subtree(tree, tvb, *offset, 0, ett_variable, NULL, "Objects");
                                                      ^
file-rbm.c:375:54: error: 'tvb' was marked unused but was used
        proto_tree* drb_tree = proto_tree_add_subtree(tree, tvb, *offset, 0, ett_variable, NULL, "Objects");
                                                            ^
file-rbm.c:375:60: error: 'offset' was marked unused but was used
        proto_tree* drb_tree = proto_tree_add_subtree(tree, tvb, *offset, 0, ett_variable, NULL, "Objects");
                                                                  ^
file-rbm.c:376:21: error: 'tvb' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                           ^
file-rbm.c:376:26: error: 'pinfo' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                                ^
file-rbm.c:376:43: error: 'offset' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                                                 ^
file-rbm.c:377:21: error: 'tvb' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                           ^
file-rbm.c:377:26: error: 'pinfo' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                                ^
file-rbm.c:377:43: error: 'offset' was marked unused but was used
        dissect_rbm_object(tvb, pinfo, drb_tree, offset, NULL, NULL);
                                                 ^
file-rbm.c:378:32: error: 'offset' was marked unused but was used
        proto_item_set_len(drb_tree, *offset - offset_start);
                                      ^
file-rbm.c:526:26: error: 'pinfo' was marked unused but was used
                expert_add_info_format(pinfo, tree, &ei_rbm_version_unsupported, "Version %u.%u is not supported (only %u.%u)",

Change-Id: Id255df237c43c313720797a46c0e877f0f7550e0
Reviewed-on: https://code.wireshark.org/review/33370
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>
2019-05-26 19:04:08 +00:00
Martin Kaiser
01768d0264 rfc7468: fix a used-but-marked-unused warning
file-rfc7468.c:428:39: error: 'data' was marked unused but was used
    dissect_rfc7468(tvb, pinfo, tree, data);

Change-Id: I938f30edfc7cf952eadbd0cf79e4cc95bb971b2e
Reviewed-on: https://code.wireshark.org/review/33369
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>
2019-05-26 19:03:46 +00:00