Commit Graph

74301 Commits

Author SHA1 Message Date
Guy Harris 4f8b3f3d2a By default, don't stop after a read error.
For close to 10 years, we have defaulted not to stop processing on an
open error; default not to stop processing on a read error, either.  -C
causes us to stop for both.

Bug: 15433
Change-Id: I5cd239c160d0ff85eb0425ca4b172532a4659fd3
Reviewed-on: https://code.wireshark.org/review/31710
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-24 06:42:58 +00:00
Goldman, Adam 5d38999b57 opa-mad: Fix PortSelectMask parsing to common function
Added Common function to convert 256-bit Port Select Mask into a range
string (e.g. "1-3,5-8,10").

Used wmem_strbuf API to allocate range string.

Change-Id: I70d737d1a33e84c7961eaf0bf83a1bc0689380a1
Signed-off-by: Adam Goldman <adam.goldman@intel.com>
Reviewed-on: https://code.wireshark.org/review/28506
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-24 04:22:46 +00:00
Peter Wu 9d5ab21163 wiretap: fix leak of options_buf and document memory handling
Manually checked all callers of wtap_seek_read to ensure that
wtap_rec_cleanup is called. Added missing wtap_rec_cleanup to:
- Completion of sequential read: wtap_sequential_close
- Callers of wtap_seek_read:
  - users of cf_read_record_r:
    - PacketListRecord::dissect

This fixes one of the two ASAN memleak reports while running
test_tshark_z_expert_comment and test_text2pcap_sip_pcapng (the other is
about opt_comment which is still unfixed).

Vasil Velichkov also found this issue and came up with a similar fix.

Change-Id: I54a6aa70bfdb42a816d03ad4861d0ad821d0ef88
Reviewed-on: https://code.wireshark.org/review/31709
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-24 04:21:23 +00:00
Peter Wu 9175a235a8 travis: enable capture tests on Linux and macOS
Windows is excluded because installing Npcap is potentially difficult.
On macOS use ChmodBPF to create more than 4 bpf devices. This fixes
timeout issues in the case_wireshark_capture test due to an error dialog
about permissions.

Change-Id: I4cfd9618df96a3d6ae4bb2ce0229e9c2c3cccaed
Reviewed-on: https://code.wireshark.org/review/31683
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 00:26:28 +00:00
Peter Wu cbb5b78a7d test,travis: dump a screenshot for hanging GUI tests
For some reason the wireshark GUI tests hang on the Travis OS X builds,
but I could not reproduce it locally. It turns out than an error dialog
was present, but I could not know that without the screenshot.

Change-Id: Idf897d33b4fddf3c19c69ebcea60b629f1ca9368
Reviewed-on: https://code.wireshark.org/review/31682
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 00:26:22 +00:00
Peter Wu 8c698ffc99 Test: enable capture tests by default using the Loopback interface
Avoid pinging www.wireshark.org, this removes an external dependency.
Instead send small UDP datagrams to UDP port 9 (discard) every 50ms.

Enable this for all platforms (including macOS and Linux) by default.
On Windows the tests requires Npcap and will be skipped with WinPcap.
Remove the --capture-interface option since it is no longer needed.
Copy WSDG Wireshark Tests Quick Start to README.test and add a link.

Change-Id: Id4105a6b1e95407ebf69b871c785c68f9ae26368
Reviewed-on: https://code.wireshark.org/review/31677
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 00:26:17 +00:00
Martin Mathieson e351395339 DCT2000: Add other NR RRC entry points.
Some of the PDU types needed for SA
were missing in earlier RRC versions.

Change-Id: Ida3b091fe91961cf3cd8e7476692d2467211b5fd
Reviewed-on: https://code.wireshark.org/review/31703
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2019-01-23 21:45:49 +00:00
Jaap Keuter 3c1342291f text import: cleanup type usage
The glib gboolean and integer types are used interchangably,
while a proper use is easily achievable.

Change-Id: I8943bb90c9f23c0e58c296ad3b45153d0364953c
Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-on: https://code.wireshark.org/review/31708
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 21:17:14 +00:00
Swapnil Roy e774aa6044 NAS 5Gs: Updated SM cause
Change-Id: Ic09c8206fe5a35b173c16209d0bc5e10caf9c4c9
Reviewed-on: https://code.wireshark.org/review/31700
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 20:15:49 +00:00
Peter Wu d4913bd5ba SDP: fix memleak of "trace_id"
The string value is stored in the conversation, so use file-scoped
memory instead of g_strdup. Convert to union to save space.

Bug: 15440
Change-Id: Ie2dabfc67ac1db1cc8f864601b8395dcdec7caf8
Fixes: v2.9.0rc0-2719-g8bd0616621 ("SDP: Show callid from all call legs with the same RTP cpnversation.")
Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11845
Reviewed-on: https://code.wireshark.org/review/31704
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 20:15:23 +00:00
Peter Wu e8f6a90a85 SMB2: fix memleak of tids hash table
Caught by ASAN:

    Direct leak of 88 byte(s) in 1 object(s) allocated from:
        #0 0x564bccf83549 in malloc (run/tshark+0x1b0549)
        #1 0x7f8dd1d488d1 in g_malloc glib/glib/gmem.c:99:13
        #2 0x7f8dd1d29094 in g_slice_alloc glib/glib/gslice.c:1024:11
        #3 0x7f8dd1d64cde in g_hash_table_new_full glib/glib/ghash.c:717:16
        #4 0x7f8dde889de6 in smb2_get_session epan/dissectors/packet-smb2.c:1135:15
        #5 0x7f8dde89258e in dissect_smb2_session_setup_response epan/dissectors/packet-smb2.c:3356:16
        #6 0x7f8dde8867cd in dissect_smb2_command epan/dissectors/packet-smb2.c:9189:12
        #7 0x7f8dde87fb6e in dissect_smb2 epan/dissectors/packet-smb2.c:9543:27

Change-Id: I33586e8d27263a8e546efb2ee3a3054eb9a66893
Reviewed-on: https://code.wireshark.org/review/31702
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-23 18:29:21 +00:00
Peter Wu 8ce3450b24 SDP: remove unused setup_proto field to fix memleaks
Bug: 15440
Change-Id: I2a543eef23e1b006928edef353e88b0612c5cdb7
Fixes: v2.9.0rc0-2676-gd68b7bc505 ("Add sip_call_id filter to RTP stream.")
Fixes: v2.9.0rc0-2720-g228da02fda ("RTP: Restructure call id handling.")
Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11845
Reviewed-on: https://code.wireshark.org/review/31701
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 17:23:36 +00:00
Joerg Mayer ca28f41d7e Small update up LLDP sub-tlvs
Change-Id: I33ed38d4819236e2d6f6b7384650fa182233ce30
Reviewed-on: https://code.wireshark.org/review/31706
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2019-01-23 17:22:44 +00:00
Joerg Mayer 81694c8498 Update BGP capabilities list
Change-Id: I4085b4e3ed4ea587b757e64068995e155eabc543
Reviewed-on: https://code.wireshark.org/review/31705
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2019-01-23 17:20:39 +00:00
Peter Wu 064a5c90ca QUIC: correct order of Fixed bit and Packet Type in long header
Change-Id: I1ef1918ed934abdb588e2b01558597df50903830
Reviewed-on: https://code.wireshark.org/review/31694
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 16:40:40 +00:00
Peter Wu c43958cc92 QUIC: update preferred_address TP dissection (draft -18)
Draft -18 uses fixed fields to include both addresses, see
https://tools.ietf.org/html/draft-ietf-quic-transport-17#page-94
https://tools.ietf.org/html/draft-ietf-quic-transport-18#page-96

Bug: 13881
Change-Id: I267d5e6c3045996b7ab9bfc77d7cec619facff8e
Reviewed-on: https://code.wireshark.org/review/31689
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 16:40:21 +00:00
Dylan Ulis 4d8d7bca9f CIP Motion: Add more attributes
1. Add more Motion attributes
2. Pull out some copy-paste code into functions
3. Add some units to existing data

Change-Id: I82f112e2f8595eb904076ee758b2e7e034354243
Reviewed-on: https://code.wireshark.org/review/31680
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 16:40:04 +00:00
Peter Wu 1fcb321487 nettrace: fix potential buffer overflow in time parsing
sscanf can consume less than 19 characters (e.g. given time format
1-1-1T1:1:1), be sure to reject such input. Fix some dead store warning
while at it.

Change-Id: I6148599048f1e89ea7aafdbdd6450574a97b22fd
Fixes: v2.9.1rc0-372-gd38f6025b0 ("nettrace: Handle beginTime with fractions of seconds.")
Reviewed-on: https://code.wireshark.org/review/31699
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 16:38:46 +00:00
Peter Wu ccf37e3905 CMake: fix failure to locate zlib (and possibly libssh)
Include directories are no longer globally included, be explicit with
the required include directories or else function checks will fail.

Change-Id: I72d88f94854fcfe6529554f84e49d1dba696e9df
Fixes: v2.9.1rc0-436-ga3991874eb ("CMake: Replace PACKAGELIST magic")
Reviewed-on: https://code.wireshark.org/review/31693
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-23 15:43:38 +00:00
Alexis La Goutte 9681df7983 mpls: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I300792018de00d8a923b4fc0a4c364f282647bd4
Reviewed-on: https://code.wireshark.org/review/31695
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Uli Heilmeier <openid@heilmeier.eu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-23 15:24:38 +00:00
Joakim Karlsson c8dc4b691b gprscdr: Display CSGId as unsigned int
TS 32.298 reference TS 29.274 for decoding of CSGId,
which describes the CSGId as a unsigned int.

Change-Id: I79e7ae2ac2e997ba64e10a7351a04b421da1fc86
Reviewed-on: https://code.wireshark.org/review/31692
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 15:03:10 +00:00
Pascal Quantin 32c54ef846 Windows: upgrade Npcap to 0.99-r9
Change-Id: Ie2b90a448415d7b8637aac03cee07fa9e5ab217f
Reviewed-on: https://code.wireshark.org/review/31691
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-23 14:46:38 +00:00
zhongweisitu 57fd0a3be2 Add support for two more metadata fields in the tzsp header
Change-Id: I7a186a5763c74fb79a14eb5c0a5ca9a91a7934bd
Reviewed-on: https://code.wireshark.org/review/31562
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 14:15:27 +00:00
Paul Zander f3e27b8a3e Show manufacturer specific cluster
When the ZCL cluster id is in the range 0xFC00 .. 0xFFFF the cluster is a manufacturer specific cluster.
The information shown was 'Unknown' and should be 'Manufacturer Specific'.

Change-Id: Id3ae90aea65c6049c38df2029871fdcfc41ce565
Reviewed-on: https://code.wireshark.org/review/31668
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Kenneth Soerensen <knnthsrnsn@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 14:15:13 +00:00
Peter Wu f535a6318b QUIC: update ACK Frame fields and merge ECN fields (draft -18)
Rename ACK Block to ACK Range, merge the ACK(0x03) frame with the
ACK(0x02) frame by special casing the ECN Blocks addition. Update field
names and descriptions to match the current spec.

Bug: 13881
Change-Id: I9fb9d1f19d82bbd8323396627b773fd548a12a4c
Reviewed-on: https://code.wireshark.org/review/31688
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 12:42:15 +00:00
Peter Wu efe16e4cf1 QUIC: rename Final Offset to Final Size (draft -18)
Bug: 13881
Change-Id: Ic06af8de2a0df2cf16bc05b14fca017f61341ac5
Reviewed-on: https://code.wireshark.org/review/31687
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 12:37:11 +00:00
Peter Wu 2b87d0156b QUIC: add draft -18 version number (draft -18)
Bug: 13881
Change-Id: I17c58e8eb5224a1df022bd66eea9c439a9462597
Reviewed-on: https://code.wireshark.org/review/31686
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 12:36:36 +00:00
Peter Wu d486593ce3 QUIC: rename 0-RTT Protected to 0-RTT (draft -18)
Bug: 13881
Change-Id: I1ea274ffa7b741bec6c8b1d42b90daf05c6016ed
Reviewed-on: https://code.wireshark.org/review/31685
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 12:36:17 +00:00
Dario Lombardo 1e1c761842 print: fix memleak in ek output.
Memleak found & fixed by Shinya Sasaki.

Bug: 15406
Change-Id: I2d982a7876c1cd595cabe18ee0dc00db576a5837
Reviewed-on: https://code.wireshark.org/review/31669
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-23 10:14:13 +00:00
Dario Lombardo 8ab0932aa1 stats_tree: use the right modifier for int values.
Ping-Bug: 15416
Change-Id: I24593bdc9f2399085926724176b1a0a8197d7e1a
Reviewed-on: https://code.wireshark.org/review/31662
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 08:01:35 +00:00
Andrii Vladyka 5ec0c98bf9 docsis: Not only REG-REQ-MP MMM can be encrypted
Change-Id: I93e90cf409f0d4463e272d9a7f75975df34d51b0
Reviewed-on: https://code.wireshark.org/review/31663
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 08:01:21 +00:00
Christopher Farman 2352fe66e8 Update couchbase set/del_with_meta option flags
Update the flag descriptors for options inside a set_with_meta and
del_with_meta message, whilst also adding a new flag, IS_EXPIRATION,
for only del_with_meta.

Change-Id: I2f97c5aecb618e90783a39ce026ae0feba110dfd
Reviewed-on: https://code.wireshark.org/review/31675
Reviewed-by: Jim Walker <jim@couchbase.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 08:01:03 +00:00
Pascal Quantin dbb8f54cd4 ULP: upgrade dissector to OMA-TS-ULP-V2_0_4-20181213-A
Change-Id: I03e907be07d8d1117d5c7e86d2d3ac19e83d8034
Reviewed-on: https://code.wireshark.org/review/31679
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-23 06:01:25 +00:00
Pascal Quantin b78831a1a5 ILP: upgrade dissector to OMA-TS-ILP-V2_0_4-20181213-A
Change-Id: Iac1cdff29085517208ef2f94d367f05233f1f3a4
Reviewed-on: https://code.wireshark.org/review/31678
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-22 22:01:37 +00:00
Alexis La Goutte 75690ce5f7 mint: fix conflict on value_string
Field 'Src port' (mint.header.srcport) has a conflicting entry in its value_string: 133 is at indices 63 (trouble/dgram) and 64 (trouble/stream)

Change-Id: Ic0033e2fad7cc8338aafec6f4a32df0fbe4c3d9d
Reviewed-on: https://code.wireshark.org/review/31630
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-22 19:01:54 +00:00
Aurelien Aptel 3eb94b0e4f smb2: implement generation of SMB3.1.1 decryption keys
* implement preauth hashing

keep hash state in conversation object

- preauth_hash_con for connection hash state
- preauth_hash_ses for session preauth hash state
- preauth_hash_current points to either one of the above depending
  on where we are in the connection state
- store final session preauth hash in session object

store per-packet hash in the saved packet data
object (smb2_saved_info_t) and display it as generated field.

since request and responses share the same pointer, make a hash buffer
for each (preauth_hash_req, preauth_hash_res).

* implement 3.1.1 key derivation

use session preauth hash to generate the keys

* sample

Sample from https://wiki.wireshark.org/SampleCaptures#SMB3.1.1_encryption
can be loaded as follows:

    tshark -ouat:smb2_seskey_list:690000ac1c280000,b25a135fc3dc14269f20d7cbc8716b6b -r smb311-aes-128-ccm-filt.pcap

To obtain the session id and key you can compile your kernel with
CIFS_DEBUG_KEYS enabled and all the info should be printed on the
console when cifs.ko generates keys. The patch that adds this
config option merged in Linux 4.13 kernel.

Change-Id: Iee41ef9e2dd93795a0c7953fdd1f5256fe477dd2
Reviewed-on: https://code.wireshark.org/review/31659
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-22 18:57:27 +00:00
Peter Wu 0751504db7 test: enable GUI tests on Linux, headless
This will enable four tests in case_wireshark_capture on Linux, two of
them require --capture-interface to be specified.

To enable headless mode, QT_QPA_PLATFORM=minimal is set. Unfortunately
this option causes a null pointer dereference crash on macOS and it also
fails on Windows (cause not investigated). So limit it to Linux for now.

Change-Id: Id05364571b2c9da38434e611d92642a1177700df
Reviewed-on: https://code.wireshark.org/review/31664
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-22 17:45:58 +00:00
Swapnil Roy d90eab1240 NAS 5Gs: Updated MM cause, MM capability, request type
Change-Id: If77c77b859c70a19bf69ae12f5ab883451dd55cf
Reviewed-on: https://code.wireshark.org/review/31674
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-22 17:17:22 +00:00
Anders Broman c803e820cc NAS-5GS: Update IE's to v15.2.1.
Change-Id: Idcad163dbe4e1042a22ebc4d86152e353d59dedb
Reviewed-on: https://code.wireshark.org/review/31676
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-22 16:55:46 +00:00
Aurelien Aptel fa2623dd4a smb2: factor out session lookup&create
* factor out duplicated code to lookup and create sessions
* we now create (potentially dummy) session object all the time, no
  need for null checks.
* stash session key in session object in preparation of SMB3.1.1
  decryption

Change-Id: I5499c6363abc1356fd35f22b1b8bc363dd5ec347
Reviewed-on: https://code.wireshark.org/review/31658
Reviewed-by: ronnie sahlberg <ronniesahlberg@gmail.com>
2019-01-22 16:26:15 +00:00
Dario Lombardo d70bc0c40e extcap: remove dependencies from ui.
ui is required by randpkt_core, move it to its deps.

Bug: 15401
Change-Id: Ia8cfaddd220a22c1cf03ec6bf8f83f068f8d94ba
Reviewed-on: https://code.wireshark.org/review/31670
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-22 15:38:10 +00:00
Aurelien Aptel 7898405797 smb2: correct small typos
Change-Id: I140040e3bdac8b15880d8fb1b6ee8857bde6b2ce
Reviewed-on: https://code.wireshark.org/review/31671
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-22 14:45:28 +00:00
Gerald Combs 6fc342234c TLS: Fix an allocator mismatch.
secrets_rsa_decrypt returns GLib-allocated memory. Free it using g_free.

Change-Id: Icf0a3a1fc53c112511f9e7024714b6596569e737
Reviewed-on: https://code.wireshark.org/review/31665
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-22 10:04:17 +00:00
Anders Broman dcaa429a34 NGAP: Handle vnd.3gpp.ngap content-type (TS 39.502)
Change-Id: I35044ede286a2013ad04dc817892f9ff788da6a5
Reviewed-on: https://code.wireshark.org/review/31661
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-22 09:31:36 +00:00
Aurelien Aptel c2eef8f888 smb2: stash dialect in conversation stuct
in preparation for SMB3.1.1 decryption we need to know the dialect
when generating the keys.

Change-Id: I68a75bfe6f85b1941a201f8f261de16dbba3dc37
Reviewed-on: https://code.wireshark.org/review/31657
Reviewed-by: ronnie sahlberg <ronniesahlberg@gmail.com>
2019-01-22 08:40:57 +00:00
Aurelien Aptel 07ebe8325f smb2: factor out generated session info
factor out duplicated code in decrypted and plain packet to display
generated session informations.

Change-Id: Id6d1d862da753cb5dc4111ec61d1c55c6f6fd760
Reviewed-on: https://code.wireshark.org/review/31656
Reviewed-by: ronnie sahlberg <ronniesahlberg@gmail.com>
2019-01-22 08:40:29 +00:00
Guy Harris d3eb10c2c1 Fix error checking for --inject-secrets argument.
If there was no secrets type specified, say so.  Otherwise, if the
secrets type wasn't valid, report the correct string as the invalid
secrets type.

Change-Id: I3cd7d419ce3577fc176a256069456c5b49e81608
Reviewed-on: https://code.wireshark.org/review/31667
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-22 05:26:19 +00:00
Peter Wu 079fbb8b82 editcap: document --inject-secrets in --help
Change-Id: Icc027f3c53e1da580c2e49042134b1075ad65cf2
Reviewed-on: https://code.wireshark.org/review/31666
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-22 04:58:53 +00:00
Stig Bjørlykke a468623720 Qt: Include current word in filter completion list
Include the current word in the filter completion list to give the
user a more complete picture of what constitutes a valid single-token
protocol name.

Bug: 15431
Change-Id: I77cfc78f19623d9aefd4441a67ed3ae72068034e
Reviewed-on: https://code.wireshark.org/review/31654
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-22 04:27:06 +00:00
Aurelien Aptel 6513ded460 smb2: replace magic value by macro
Change-Id: I61326264f6b94b02fa2fcce21c934e41de7b1625
Reviewed-on: https://code.wireshark.org/review/31655
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>
2019-01-22 04:26:05 +00:00