Commit Graph

70894 Commits

Author SHA1 Message Date
Gerald Combs a7edc4f25f Qt: Remove a redundant include.
Change-Id: I0f5e4227bebc98678344b28e835e1c7b26b57502
Reviewed-on: https://code.wireshark.org/review/26607
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-03-23 19:59:27 +00:00
Peter Wu 0b49342156 Qt: ensure that taps are invoked on reload/rescan
Invoke the tap draw callback immediately after reloading a capture (or
changing a display filter) rather than waiting for a timer to expire.

Change-Id: I3d1549d1a18c8e173cd29d45f31ce7586e0d70fe
Reviewed-on: https://code.wireshark.org/review/26600
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-23 19:41:39 +00:00
Peter Wu e804376612 docs: improve Lua Listener example
Ensure the dialog is populated when the dialog is opened after a capture
file has already been loaded.

Change-Id: I9ba1b4a1eb7a8b21ce7dac4a820eadf10daa9845
Reviewed-on: https://code.wireshark.org/review/26601
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-23 19:41:21 +00:00
Joerg Mayer cf5f77aca2 packet-ieee80211.c: Fix runtime warning "field wlan.trigger.he.common_info is not of type FT_CHAR or an FT_{U}INTn type"
Change-Id: I4796abc440f386e4326067dff825486dedb9d07b
Reviewed-on: https://code.wireshark.org/review/26597
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-23 19:40:49 +00:00
Guy Harris a0f0b3789c Update a comment.
Change-Id: Id5fc4ca97212c5d4c91ff89806b9e6b826114b17
Reviewed-on: https://code.wireshark.org/review/26608
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-23 18:53:40 +00:00
Guy Harris 8e42d810d1 Use $(INSTALL_DATA) rather than $(INSTALL) -m 644.
Change-Id: Ic9a867dad615f9d7ed8f8f22eb47ee24e57d5130
Ping-Bug: 14555
Reviewed-on: https://code.wireshark.org/review/26606
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-23 18:14:12 +00:00
Guy Harris 4f37a3e015 Add -Wp,-H200000 with HP's C compiler.
Bug: 14554
Change-Id: Ieef015daf852049744a5dd9d3d0dfd566f3ce8fc
Reviewed-on: https://code.wireshark.org/review/26603
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-23 17:43:33 +00:00
Gerald Combs 9b83aaeccc Skip hidden columns when we export packets.
Skip hidden columns when we export to CSV, EK, and PSML.

Change-Id: Id1dc0f4d3cf34e74ce52893d0f0a30f4b4d61aed
Reviewed-on: https://code.wireshark.org/review/26588
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-03-23 00:06:07 +00:00
Martin Mathieson 380396e5e6 mac-nr: Minor changes
Minor display issues, and show in context tree 2
recently-introduced fields.

Change-Id: I14ecde0059d17abd17767d4d0c34ba093fa1987f
Reviewed-on: https://code.wireshark.org/review/26596
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2018-03-22 22:27:08 +00:00
Guy Harris 1ea82e4ff7 Don't crash for ERSPAN packets in Linux cooked captures.
Sadly, "cooked" means the GRE header isn't available; the extra data
pointer is null, so we can't dereference it.

Bug: 14548
Change-Id: I51ae67dcc144b7f5ab3c82dd9adf09b342b29ced
Reviewed-on: https://code.wireshark.org/review/26595
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-22 21:16:40 +00:00
Nikhil AP c55d15783c Add Arista Vendor Specific Protocol (Ethertype) dissector
Bug: 14550
Change-Id: I08d54825eb054255167eb28469b7fb854507e4ed
Reviewed-on: https://code.wireshark.org/review/26492
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 20:15:12 +00:00
Pascal Quantin 2e02b438cc NR-RRC: remove a redundant declaration
Change-Id: Iddc49443ea4534314ef39bae749ddafb135143ff
Reviewed-on: https://code.wireshark.org/review/26591
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-22 13:38:58 +00:00
Martin Mathieson 92a015a523 mac-nr: fix some wrongly named field names
Fix some wrongly named fields names related to
multiple entry PHRs.

Change-Id: I87b8b53ddfb86255d4840a73cdf4e570b7f9b9f0
Reviewed-on: https://code.wireshark.org/review/26590
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2018-03-22 10:41:49 +00:00
Martin Mathieson f71645045f nr-mac: Add Multiple Entry PHR CE to nr-mac
This will likely change in the future as we:
- add support for 32-bits of flags for when there are
higher SCellIndex
- possibly add different filters for each type of ph measurement
- possibly add separate filters for the pcmax_c fields

Change-Id: Icb9b242910a41b1b9e448ae2cd1dbd54a418fd36
Reviewed-on: https://code.wireshark.org/review/26507
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2018-03-22 09:23:50 +00:00
Pascal Quantin 997b63102d ZigBee ZCL Occupancy Sensing: remove unused defines and value_string
Change-Id: Ifa5209fb0c64034eb85356d1bc336487ff43a9c2
Reviewed-on: https://code.wireshark.org/review/26589
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-22 08:48:34 +00:00
Gizem Yurdagul fd69d893ff PROFINET: Am_location dissection was wrong byte order.
Dissection is updated according to spec.

Unnecessary tab and spaces are removed.

Change-Id: Ia9b3252f5e9dcdc3617286a802fffeef250888c2
Reviewed-on: https://code.wireshark.org/review/26542
Reviewed-by: Birol Capa <birol.capa@siemens.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 07:02:21 +00:00
Paul Zander 79d6dc31ff Update and extend the ZigBee ZCL color control cluster.
Change-Id: Ife7c15797e2167acf248a09718fe2ad87ec638e7
Reviewed-on: https://code.wireshark.org/review/26552
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:21:52 +00:00
Paul Zander 782377327f Fix dissector bug in ZCL Occupancy Sensing Cluster.
Change-Id: I6b8e3639653f00d7d31c20cd3080d946eed5ec65
Reviewed-on: https://code.wireshark.org/review/26580
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:20:06 +00:00
Dario Lombardo 5077890e0a dns: fix indentation.
Change-Id: I25894fd4e28002f75e43b7a6fd7bec58889e0590
Reviewed-on: https://code.wireshark.org/review/26538
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:19:11 +00:00
Dario Lombardo a055e3c299 dns: skip stats if packet is within icmp.
Change-Id: I0f1866361ce60713535b1875fc9b75fe049f1790
Reviewed-on: https://code.wireshark.org/review/26537
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:18:43 +00:00
Dario Lombardo 6cff9f0720 dns: add filters for retransmitted and unsolicited packets.
Change-Id: I1af293a9dc53869858dafc5921792aa3fbbfe766
Reviewed-on: https://code.wireshark.org/review/26536
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:18:21 +00:00
Dario Lombardo 9a864b6e64 dns: add service-level stats.
They include:
- request-response time
- unsolicited response count
- retransmissions count

Change-Id: I01398bf1a88a23fb7850715f256b178c66d933a4
Reviewed-on: https://code.wireshark.org/review/26535
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:17:53 +00:00
Yasuyuki Tanaka 9be139cae0 ieee802154: support 6top protocol (6P) draft-10
- remove GEN field, that is obsoleted
- add SIGNAL command
- update return codes following the draft

Bug: 14542
Change-Id: I7eeb6f832d23688d5dc50f68224da9a7612429ff
Reviewed-on: https://code.wireshark.org/review/26553
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-22 06:17:09 +00:00
Peter Wu eea63ae2a7 TLS: allow cipher information to be retrieved
In preparation for QUIC packet decryption, add a method to retrieve the
cipher used in a TLS session. (QUIC embeds the TLS handshake.)

Change-Id: If58e16bd0a01808dafa455ddc6c67ad23f33d7da
Reviewed-on: https://code.wireshark.org/review/26558
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-03-21 18:12:43 +00:00
Peter Wu 184b943fbd QUIC: fully fix random access decryption, improve error messages
When a conversation contains two Initial Packet messages or payloads
spanning key updates, then the cipher might be unusable when trying to
decrypt an earlier packet. To solve this, perform decryption on the
first pass only and store the result (error message and plaintext).

Display an error message when payload decryption is not possible due to
missing keys (currently, TLS Exporter secrets from the TLS key log).

Refactor code for adding decrypted results/expert info to reduce code
duplication and have less ifdef's.

Bug: 13881
Change-Id: I932069b09840e14c7ccc6a235f62b8830f1b85aa
Reviewed-on: https://code.wireshark.org/review/26577
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-21 16:57:31 +00:00
Peter Wu 746410f70f QUIC: fix decryption and PKN dissection with random access
Packet number (PKN) reconstruction must happen sequentially or the wrong
value can be derived. A wrong packet number will also result in
decryption value. Fix this by storing the full packet number per packet.

Always display the full PKN field for use in a column. Improve tracking
of the client and server side.

Bug: 13881
Change-Id: Ia386893e719411c21793aca509a6d07a06823e2e
Reviewed-on: https://code.wireshark.org/review/26574
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-21 16:57:18 +00:00
Peter Wu 8ca1e35c9a QUIC: Add 1-RTT packet decryption (draft -09)
Use the exporter secrets as written by NSS or boringssl to derive packet
protection keys.

Test: tshark -r ngtcp2-09.pcap -ossl.keylog_file:ngtcp2-09.keys -V

Known issue: random access dissection of handshake and packet protection
data sometimes fails because packet number reconstruction requires a
sequential pass. This will be fixed later.

Bug: 13881
Change-Id: I58b2379d6bc2a6274b154b26054fa6cbbfa8e8fb
Reviewed-on: https://code.wireshark.org/review/26559
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-21 16:56:56 +00:00
Peter Wu 0484f95963 TLS13: TLS-Exporter interface for QUIC decryption
Add support for "EXPORTER_SECRET" (NSS 3.34, boringssl 1c58471cc9f4) and
"EARLY_EXPORTER_SECRET" (NSS 3.35) key log lines. These secrets can be
used with the TLS-Exporter interface to derive QUIC 0-RTT/1-RTT keys.

Ping-Bug: 13881
Change-Id: I7ff3e51ce0bd868353aacb2e3a52b28f144af341
Reviewed-on: https://code.wireshark.org/review/24981
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-21 16:56:46 +00:00
Peter Wu 7c0c8189a6 Qt: fix "Follow stream" in Conversations dialog
If no stream is given to FollowStreamDialog::follow(), then it
overwrites the display filter with a conversation filter for the first
packet in the capture file.

Pass an explicit stream number and the "Follow stream" button will set a
correct display filter.

Test: open pcap with three TCP streams. Statistics -> Conversations.
Select last TCP conversation (expect "tcp.stream eq 2"). Select the
second conversation (expect "tcp.stream eq 1") and activate "Filter Out"
button (expect "!(tcp.stream eq 1)" and not "!(tcp.stream eq 2) and
!(tcp.stream eq 1)").

Bug: 14254
Change-Id: I28744d7f76f5034b07ea5660b45399566e3a7d2c
Reviewed-on: https://code.wireshark.org/review/26520
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-21 16:56:21 +00:00
Joakim Karlsson 83d028792a GPRSCDR: fix bitrates in EPCQoSInformation
Changed type for the bitrate fields, from signed32 to unsigned32.
This fixes the problem of getting "-1" values at G_MAXUINT32.

TS 32.298 refers to TS 29.212 regarding bitrates, in TS 29.212 the
corresponding AVPs are defined as Unsigned32.

Change-Id: I6e0083bf034c7254ab48ca3c2c405cc20f5d6394
Reviewed-on: https://code.wireshark.org/review/26585
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-21 10:44:54 +00:00
Peter Wu ca9976bec9 rsa: fix memleak and accept keys from certain PKCS#12 files
The "bag" was not deallocated when the key is successfully loaded.
Parse all bag elements rather than clearing the bag after the first
iteration (this restores previous behavior).

Change-Id: Ib52da6586f7435d18fa5b0660e7771436544b634
Fixes: v2.5.0rc0-613-gf63b68f707 ("Further cleanups.")
Reviewed-on: https://code.wireshark.org/review/26481
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-03-21 10:36:23 +00:00
Peter Wu af8ac43a1f tcp: preserve data source if a PDU uses it
If the previous TCP segments already form one or more PDUs, then the
data source of these segments must not be removed. Otherwise
get_field_data (epan/print.c) will fail to find the data source which
correspond to the fields within these PDUs.

Also tested with the capture referenced in v1.11.3-rc1-1525-g21e0a63b29
(bug 9169), the "tshark -Vr mem-leak.pcap" output remains unchanged.

Bug: 14472
Change-Id: Ia448a6b84dd2eb84b00e56d3fcde04f7bec05b9d
Reviewed-on: https://code.wireshark.org/review/26397
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-03-21 10:35:20 +00:00
Ivan Secerin 10c508ebf8 packet-wsp: fixed incorrect invalid header handling
In function 'add_header' coгple of if-statements didn't corespond
to comments above.

Change-Id: Idd846cebf7e17d0e2f49c7c7d3de466b899c73c6
Reviewed-on: https://code.wireshark.org/review/26573
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: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-21 09:14:59 +00:00
Alexis La Goutte 979808091d l16 (plugins/codecs): fix no previous prototype for ‘codec_register_l16’ [-Wmissing-prototypes]
Change-Id: I5f3bd624f2c5b327e40194fc29f34a11cfd48267
Reviewed-on: https://code.wireshark.org/review/26568
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2018-03-21 06:39:16 +00:00
Guy Harris 67416033b0 Fix case.
Change-Id: I328aae5396cdd071f2c87cded46b8eb747e61dec
Reviewed-on: https://code.wireshark.org/review/26582
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-21 05:35:17 +00:00
Joerg Mayer de18eff51b Add new dot3MauTypes from RFC 4836
Change-Id: I998efdfd065c17fce20eb1596d9a247015327ecb
Reviewed-on: https://code.wireshark.org/review/26578
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2018-03-20 19:12:08 +00:00
Guy Harris 032554fe3f Note that exit_application() has UI-specific implementations.
Change-Id: I79d51dd4301451d4158d172d0b05094cb3d5d61b
Reviewed-on: https://code.wireshark.org/review/26576
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-20 18:09:10 +00:00
Guy Harris ed3a9eb41c Remove redundant declaration of exit_application().
Change-Id: I60c9236a53083f14d1f7b94c7db66172944d17bf
Reviewed-on: https://code.wireshark.org/review/26575
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-20 17:57:54 +00:00
Alexis La Goutte f2ada50351 gui_utils(.c): fix no previous prototype for ‘exit_application’ [-Wmissing-prototypes]
Change-Id: I975fdc9ce7aa53208fc13cc76dcf0bb7a4a58bcd
Reviewed-on: https://code.wireshark.org/review/26569
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-20 17:50:44 +00:00
Gerald Combs 4bff0e6dd1 html2text: Wrap at 72 characters.
Change-Id: Id8c9d74b71cabce6bbfb25fd857f71c4b2a4e8ea
Reviewed-on: https://code.wireshark.org/review/26556
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-03-20 15:46:08 +00:00
Yuri Chislov 9c30b80f46 WCCP : fix mask assignment
Bug: 14538
Change-Id: I87afe01064e8940140d6fa8de3df778aad4e4dd7
Reviewed-on: https://code.wireshark.org/review/26550
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: Peter Wu <peter@lekensteyn.nl>
2018-03-20 13:40:45 +00:00
Peter Wu 3c1f26653d TLS13: fix decryption with KeyUpdate after draft -20
Draft -20 shortened the label used by Key Update, adjust accordingly.

Change-Id: I3761b94933165a65fd810eff7bef4373290346cd
Ping-Bug: 12779
Reviewed-on: https://code.wireshark.org/review/26554
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-20 12:34:48 +00:00
Jim Walker bd8df9eb88 Update to couchbase dissector for 'flexible framing extras' on errors
The flexible framing extras can be on success and error packets, so
move the call to dissect out of the success path.

See:
https://github.com/couchbase/kv_engine/blob/master/docs/BinaryProtocol.md#response-header-with-flexible-framing-extras

Change-Id: I6fdadf4a90bd1e9c2b1e6e37793cc7a105fad3a6
Reviewed-on: https://code.wireshark.org/review/26566
Reviewed-by: Dave Rigby <daver@couchbase.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-20 12:14:52 +00:00
Pascal Quantin c75d49719f X2AP: include packet-x2ap.h
This should solve the missing prototypes warnings

Change-Id: Iaf2ac6c0a151cfb614f76c4a6bb103e0210d3808
Reviewed-on: https://code.wireshark.org/review/26567
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-03-20 10:48:25 +00:00
Guy Harris 5f739fb837 Handle Clang/C2.
Microsoft have a C/C++ compiler with a Clang front end and their code
generator:

	https://blogs.msdn.microsoft.com/vcblog/tag/clang/

Try to detect it.  (It's not too late.)

Change-Id: I574e3f985f376727df77081b429cad7f3d1f5d70
Reviewed-on: https://code.wireshark.org/review/26563
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-20 07:32:41 +00:00
Guy Harris 6401440932 Don't register the link-layer 802.11 dissector in the gre.proto table.
That dissector expects to be handed an 802.11 pseudoheader; the GRE
dissector passes the flags and version from the GRE header to
subdissectors registered in the gre.proto table, so they'd better either
expect the flags-and-version structure or ignore the pseudoheader.  (For
802.11, the pseudoheader has radio information, but that's not available
from GRE.)

Use the no-FCS 802.11 frame dissector instead.

Bug: 14544
Change-Id: I6515901dc3674eb36ec768fa4f9a7a4040a78365
Reviewed-on: https://code.wireshark.org/review/26560
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-20 06:48:54 +00:00
Peter Wu ff4a7a6e84 QUIC: ensure Initial Packet decryption at first pass
Change-Id: Ie17397feb646ae1dc7a53c1386c568ee11c29154
Ping-Bug: 13881
Reviewed-on: https://code.wireshark.org/review/26557
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-03-20 06:21:33 +00:00
Sake Blok 10b63fa684 Fix and update the vagrant build system
Fix a dependency issue for the vagrant build system and update
it to the latest Ubuntu LTS release (16.04 LTS). Also give it
more vCPU's and RAM by default.

Change-Id: I058e6a05356dba57a55ada7fe84f959e227a04b4
Reviewed-on: https://code.wireshark.org/review/26541
Reviewed-by: Sake Blok <sake.blok@SYN-bit.nl>
2018-03-19 22:22:55 +00:00
Peter Wu acba178546 wmem: ensure wmem_memdup(..., NULL, 0) returns NULL
Rather than requiring all callers to pass a non-null source argument,
explicitly allow a NULL source when the size is zero. This is consistent
with g_memdup behavior.

While at it, fix a memleak and avoid memset(0,0,0) in tests.

Change-Id: I86a092625a508544d180da959e4afdd0366539f4
Reviewed-on: https://code.wireshark.org/review/26496
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Mališa Vučinić <malishav@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Evan Huus <eapache@gmail.com>
2018-03-19 16:15:35 +00:00
Peter Wu 859c5bf836 wmem: fix random test failure due to key collision
Fixes sporadic test failure in buildbot:

    ERROR:epan/wmem/wmem_test.c:1170:wmem_test_tree: assertion failed: (wmem_tree_count(tree) == CONTAINER_ITERS)

Change-Id: Ia33b54d8f0a7afc37fa9356aa868c4a7b896e7da
Test: wmem_test --seed R02S674cddedb75a1db84fb9698ac51213c0
Reviewed-on: https://code.wireshark.org/review/26501
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Evan Huus <eapache@gmail.com>
2018-03-19 16:14:27 +00:00