Commit graph

31550 commits

Author SHA1 Message Date
Pascal Quantin
5d80fb8f74 NAS EPS: get rid of a global variable
Change-Id: Ib2d4c5d7b8e2c754c946829843174a83e11fdd6d
Reviewed-on: https://code.wireshark.org/review/31917
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-02-06 19:32:42 +00:00
Kenneth Soerensen
1ff7f8dd19 GBCS: Show field names for empty fields
Change-Id: I5d46ce66d8467c1cd7f45665661eea9c704d582d
Reviewed-on: https://code.wireshark.org/review/31911
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-06 15:51:51 +00:00
nbertin
bfa0520f15 noe: add new identifiers in evt-local-application message
Change-Id: I3b56a1601f237e4c454b2e433233cd445c9c0706
Reviewed-on: https://code.wireshark.org/review/31905
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-06 14:28:08 +00:00
Kenneth Soerensen
6f1a60d2c5 ZigBee: Be consistent and use ENC_NA for all 1 byte fields
Change-Id: Ibd4ec7bef40e5e9a9ed87f1044dfff0f044a7d1f
Reviewed-on: https://code.wireshark.org/review/31904
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-06 13:45:49 +00:00
Shudong Zhou
c8690b5980 Handle sflow vendor elements properly
Change-Id: Icc676f686eb70fe02214541246e1f808c615f883
Reviewed-on: https://code.wireshark.org/review/31899
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-06 13:45:37 +00:00
Pascal Quantin
6d04390505 GNW: always fully initialize hashgeonw_t structure
Bug: 15484
Change-Id: I082bc578f46958675d32db725014a0b230373cba
Reviewed-on: https://code.wireshark.org/review/31906
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-02-06 10:12:15 +00:00
Kenneth Soerensen
bf820d14eb ZigBee: Dissect Metering cluster Request Fast Poll Mode Response
Change-Id: I7a9ec5f992c0856469021e93db22bf3a68ca9c6d
Reviewed-on: https://code.wireshark.org/review/31867
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-05 11:29:55 +00:00
Anders Broman
a308b751da NAS-5GS: Uptade SM messages to v15.2.1
Change-Id: Id07ffa1d5a417b09b409fb357db34e100532bda2
Reviewed-on: https://code.wireshark.org/review/31877
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-05 09:50:56 +00:00
Kenneth Soerensen
83385fbe1d ZigBee: Dissect Metering cluster Schedule Snapshot Response
Change-Id: Idde270ed14b3b874be08e24d9cad5a1473b7dec9
Reviewed-on: https://code.wireshark.org/review/31866
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-05 09:24:51 +00:00
Pantar Ana
8176b492d8 ebhscr: add ebhscr dissector
ElektroBit High Speed Capture and Replay protocol is produced by a
PCIe Card for interfacing high speed automotive interfaces.

Bug: 15474
Change-Id: Ibb3ea36d9281b2779e2cc13d29b66dc382782ca3
Reviewed-on: https://code.wireshark.org/review/31847
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-05 05:02:44 +00:00
nbertin
bfceb99f93 ua3g: add support for decoding of set-appl-param (id, enable, url) message
Change-Id: I57e3b3e6048c5279875c35d772eb7e6f72c2ecbf
Reviewed-on: https://code.wireshark.org/review/31850
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 21:09:41 +00:00
Pascal Quantin
6aaae113d5 SMB2: follow-up of g14d5ab01c0
Put back some code removed in g14d5ab01c0 but that is still required.

Change-Id: I5a2f52a5056e41b3907479dbae55acbc07080ef1
Reviewed-on: https://code.wireshark.org/review/31880
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 21:08:51 +00:00
Rickard Holmberg
d2c541af31 Update packet-dcm.h using DICOM 2019a definitions
Change-Id: Icb737b4201198deac01518904b53dd5764bc2f76
Reviewed-on: https://code.wireshark.org/review/31879
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 21:08:06 +00:00
Martin Mathieson
d6879b6c24 For ASN.1-based protocols, make sure protocol filter will match.
This is optional, and enabled by setting PROTO_ROOT_NAME to the name
of the item in the OPT section of the .cnf file.  For now, setting
only in nr-rrc.

Change-Id: Ibe96c7de982af0346af90bc0e095f20d1a7ac506
Reviewed-on: https://code.wireshark.org/review/31876
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2019-02-04 18:17:25 +00:00
Kenneth Soerensen
e71715de06 ZigBee: Dissect Metering cluster Get Profile Response
Change-Id: Idb06af3cc350c2cf7000b7cbb1535c4102a23eb6
Reviewed-on: https://code.wireshark.org/review/31868
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 11:23:22 +00:00
Anders Broman
19e4cb7f7e NAS-5GS: Align enums and functions.
Change-Id: I9a500f58be913e389880044f5e2068d7b3f535f6
Reviewed-on: https://code.wireshark.org/review/31875
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 11:22:47 +00:00
Kenneth Soerensen
71d1740579 ZigBee: Fix spelling
Change-Id: Ia419438262ccc869d1b5771c76a73b5a6b0cf5df
Reviewed-on: https://code.wireshark.org/review/31865
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-02-04 09:48:45 +00:00
Michail Koreshkov
81e8356f30 AMQP: Try to dissect Content-Body
Try to find dissector for Content-Body based on Content-Type

Change-Id: I2d4b4bd2de92e7e0d1282afdae1976ce00b962a6
Reviewed-on: https://code.wireshark.org/review/31807
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-04 05:12:58 +00:00
Luis Rosa
5acc257d1c pcomtcp: PCOM/Binary command to descritions
PCOM/Binary command translation to meaningful descriptions.
Add a few more PCOM/ASCII codes. Minor fixes.

Change-Id: I74da9cd2b220a0ab9e37ee06f5ef1f2563847c24
Reviewed-on: https://code.wireshark.org/review/31858
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-02-03 17:17:47 +00:00
Graham Bloice
235d46241d dnp3: Update Read Objects list
Add Binary Output Change to the Read Objects list

Change-Id: I0e5a67fdba5d8b2412c05bc416feaa0fe81ace15
Reviewed-on: https://code.wireshark.org/review/31862
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
2019-02-03 15:55:01 +00:00
nbertin
7bd486ca06 ua3g: updated vta strings (added 8008G and 8058S)
Change-Id: I1a0c44053f82488b2a1efe1700919dba16dae52b
Reviewed-on: https://code.wireshark.org/review/31849
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-02-03 11:52:13 +00:00
nbertin
bd924e03c8 ua3g: updated skins name
Change-Id: I63a4c7777c8b08d154fd5577c84e1123b1b890a6
Reviewed-on: https://code.wireshark.org/review/31848
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-02-03 11:51:25 +00:00
João Valverde
c2eddffb84 CMake: Fix DOCDIR on Unix
User guides are installed to doc/Wireshark. Use doc/wireshark instead.

Remove leftover variable CPACK_PACKAGE_NAME.

Change-Id: I9a1d6bdc7d8f0b48c61e43679285d5ba83904a63
Reviewed-on: https://code.wireshark.org/review/31851
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
2019-02-02 16:53:49 +00:00
Pascal Quantin
16e20ccec7 Switch my contact address
Change-Id: Iec5e4951873d6a2f1cacd655b490643c55e4f17e
Reviewed-on: https://code.wireshark.org/review/31853
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-02-01 21:16:19 +00:00
Luis Rosa
961d8bfc5d pcomtcp: dissection of additional PCOM/ASCII fields
PCOM/ASCII command codes translation to meaningful descriptions.
Additional dissect of PCOM/ASCII fields used in read and write
operations. Some pcap files for testing here [0].

[0] https://github.com/lmrosa/pcom-misc/tree/master/pcaps

Change-Id: I006de518d3de41c6a4b66eb2387cb546054c955d
Reviewed-on: https://code.wireshark.org/review/31467
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-02-01 15:42:45 +00:00
Goldman, Adam
21565b9bc4 opa-mad: Fixed when ClassDataDetails is zero length
Change-Id: Ia64089516bd83e1441b55c23f88c967e396ee70d
Signed-off-by: Goldman, Adam <adam.goldman@intel.com>
(cherry picked from commit 9e95627f71cbdaf3a29cca24f7219d05d5d8f4c2)
Reviewed-on: https://code.wireshark.org/review/31774
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-01 05:47:17 +00:00
Dario Lombardo
34873a20eb tcap: check p_tcap_private before dereferencing.
This caused a NULL pointer dereference on ASAN builds with
malformed packets.

AddressSanitizer:DEADLYSIGNAL
=================================================================
==15485==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7ff49a4281fa bp 0x7ffe5257a4d0 sp 0x7ffe5257a2c0 T0)
==15485==The signal is caused by a WRITE memory access.
==15485==Hint: address points to the zero page.
    #0 0x7ff49a4281f9 in dissect_tcap_AARQ_application_context_name wireshark/epan/dissectors/./asn1/tcap/tcap.cnf
    #1 0x7ff498e7bab1 in dissect_ber_sequence wireshark/epan/dissectors/packet-ber.c:2425:17

Bug: 15464
Change-Id: I8fd4f09a1356211acb180e4598a33fce96d98e94
Reviewed-on: https://code.wireshark.org/review/31840
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-31 15:37:53 +00:00
Anders Broman
afeec6d646 NAS-5GS: Dissect more IEs
- 9.11.3.50A   SMS indication
- 9.11.3.51    SOR transparent container

Change-Id: I12bcb1ab1a94eb4fff1673979ff2862a2ec62654
Reviewed-on: https://code.wireshark.org/review/31839
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-31 14:39:49 +00:00
Peter Wu
7b04a4f797 QUIC: put coalesced packets in separate trees
Make the output of "tshark -Tjson --no-duplicate-keys" more useful.
Note: connection information is only available under the first QUIC item
to avoid duplication of information.

Bug: 13881
Change-Id: I5e25b1f3936e259d621002151f4d76a3538c9aa4
Reviewed-on: https://code.wireshark.org/review/31817
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-31 11:22:40 +00:00
Stig Bjørlykke
74f18bd005 bluetooth: Update Assigned Numbers
Change-Id: I88d063b5e41bedee746ebb4a6d5df2bc0424ef23
Reviewed-on: https://code.wireshark.org/review/31831
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2019-01-31 10:16:07 +00:00
Stig Bjørlykke
8cfad3fd56 btle: Add Version 5.1 to ll_version_number_vals
Change-Id: I777dcaa6bd7f161ecbdc7411c3f816480c76834d
Reviewed-on: https://code.wireshark.org/review/31827
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2019-01-31 08:17:37 +00:00
Guy Harris
2a675c0d5b Use tvb_reported_length_remaining() to get the remaining data length.
Change-Id: If2930b772338a3a69fecb42102db2041df606e98
Reviewed-on: https://code.wireshark.org/review/31823
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-31 07:04:30 +00:00
Guy Harris
660e63aaf3 Rpcap authentication replies now have an optional payload.
Change-Id: Id1ac1e12feb69573bed9bc419c819235da053867
Reviewed-on: https://code.wireshark.org/review/31820
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-31 07:00:11 +00:00
Anders Broman
08debda4fc NAS-5GS: Dissect more V15.2.1 IEs
Change-Id: I9084ad99748a9d53bdae238f29b4a9750ca08a92
Reviewed-on: https://code.wireshark.org/review/31816
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-30 16:17:00 +00:00
Joakim Karlsson
1a52ab9417 GTP: fix PDU Session Container
Change-Id: Iebe07b60cb03b2b149f8ce596333730558586fca
Reviewed-on: https://code.wireshark.org/review/31815
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-30 12:21:01 +00:00
Anders Broman
03e1efd6fe NAS-5GS: Dissect more V15.2 IE's
Change-Id: I654b537b22776a599e4f2b2260c028d76ba5dfc2
Reviewed-on: https://code.wireshark.org/review/31805
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-30 09:13:48 +00:00
Dario Lombardo
8d599e1952 dissectors: use '/' when stacking protocols in COL_PROTOCOL.
A commoly used convention when adding more then 1 protocols in
COL_PROTOCOL (using col_set_fence) is to separate them using the
'/' character. Some dissectors use ' ', others use '|'. Make them
all use '/'.

Change-Id: Ibcddd7500f637d96313b264122d48ac6bff1e96c
Reviewed-on: https://code.wireshark.org/review/31804
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-29 21:49:09 +00:00
Pascal Quantin
dbf436b67e MAC NR: add dissection of NR PHR and PCMAX,f,c fields
Change-Id: I86734442de4fcc4781fbee4517d6dccd87f8da30
Reviewed-on: https://code.wireshark.org/review/31806
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-29 21:47:15 +00:00
Guy Harris
d58a3ffe4f Once we've identified a TCP segment as rpcap, use rpcap for the connection.
One reason to use Wireshark is to diagnose protocol errors, so don't,
for example, treat too-short packets, in a TCP connection where we've
already seen rpcap packets, as not being rpcap packets.  (Yes, that *is*
a bug, in the libpcap master, that I found and fixed.)

Change-Id: I9a81e5b9a2910331574164395302247a446e805b
Reviewed-on: https://code.wireshark.org/review/31809
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-29 20:02:43 +00:00
Stig Bjørlykke
ab13515315 lwm2mtlv: Fix memleaks in UAT subtree array handling
No need to allocate pointers for subtree indexes.

Change-Id: Ia1214e42d8220341454e1126878c217835788797
Reviewed-on: https://code.wireshark.org/review/31776
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-29 14:32:36 +00:00
Marko Hrastovec
187b587589 ASTERIX Category 020 Ed. 1.9 and Reserved Expansion Field Ed. 1.3
ASTERIX dissector now supports Category 020 Edition 1.9, which is used for
Multilateration Target Reports, and Reserved Expansion Field for
Category 020 Edition 1.3.

Specifications for Category 020 are:
https://www.eurocontrol.int/publications/cat020-multilateration-mlt-messages-part-14
https://www.eurocontrol.int/publications/cat020-coding-rule-reserved-expansion-field-part14-appendix

Change-Id: I867f48c3d4299c22f68edf1e3f9cdbcfabc47eb4
Reviewed-on: https://code.wireshark.org/review/31766
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-29 08:10:34 +00:00
Stig Bjørlykke
469d7bf9d9 btmesh: Fix memleaks in UAT handling
Free allocated strings before allocating new and in free callback.

Change-Id: If7bd0ee8455cf3c3e0c6300ce79e20557256eb8e
Reviewed-on: https://code.wireshark.org/review/31773
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2019-01-29 07:40:51 +00:00
James Ko
7592c1dd98 Fix: WiSUN Explicit Channel Plan parsing
The Unicast Schedule IE (US-IE) and Broadcast Schedule IE (BS-IS) may
define an explicit channel plan with the following fields in the channel
information fields:
    24-bits - channel 0 frequency in kHz (little endian byte-order),
     4-bits - channel spacing enumeration,
     4-bits - reserved (must be set to 0), and
    2-bytes - number of channels

Bug: 15451
Change-Id: If6923faca777343e17b0cb9012bb07d98b9bc194
Reviewed-on: https://code.wireshark.org/review/31745
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-29 06:11:59 +00:00
Guy Harris
90cf075016 Update a column to reflect the underlying issue.
See

    https://code.wireshark.org/review/c/31755/#message-d73e5c7c_eed569dc

for the details.

Change-Id: Ib4f28d843a96ec30daa263f49ac2620bfecba718
Reviewed-on: https://code.wireshark.org/review/31780
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-28 18:50:13 +00:00
Anders Broman
d90806a9b4 IEEE1609dot2: Use GUINT_TO_POINTER/GPOINTER_TO_UINT to store a guint32
This should be changed so that ieee1609dot2 is called with a struct as
data containing the psid. If needed it can be stored in actx->private
data.

Change-Id: Iccef08a93fd090eb586401b2999684eee2afb382
Reviewed-on: https://code.wireshark.org/review/31775
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-28 15:24:54 +00:00
Dario Lombardo
3cd5ac36e2 BER: don't use invalid time offsets.
4 digits values could overflow the destination buffer. Skip them
since they're invalid and can only from tainted data.

Bug: 15447
Change-Id: Ice6d4f144597499483160ecaa63702025ab86f61
Reviewed-on: https://code.wireshark.org/review/31751
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-28 15:00:33 +00:00
Sergey Avseyev
7a06a66eb8 couchbase: update list of HELLO features
Change-Id: I323c54faaeaf951e284fa3b64c19e9e6671d36ec
Reviewed-on: https://code.wireshark.org/review/31767
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-28 14:12:55 +00:00
Dario Lombardo
5b226240c6 rpc: don't set fence on COL_PROTOCOL.
That would prevent subsequent protocols to clear it, resulting in multiple
definitions in that column.

An example is NFS as next protocol. When contains multiple NFS operations,
COL_PROTOCOL contains NFSNFSNFS...

Bug: 15443
Change-Id: Idf9469873164160dc4795589c61c342ce019521b
Reviewed-on: https://code.wireshark.org/review/31755
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-28 09:32:57 +00:00
Martin Boye Petersen
4dbb26fdb8 GBCS: Increment offset before subtracting length
Fixed issue with incorrect item end being set for the
grouping header if it includes a KA certificate.
Length was subtracted first (set to 0) and therefor the
offset would remain unchanged.

Change-Id: I23ab1620613af821ee5a41fc29b83e6d4b08430e
Reviewed-on: https://code.wireshark.org/review/31764
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-28 06:14:00 +00:00
Craig Jackson
58861b07ee TDS: Fix colmetadata handling of Text and Image types
The Colmetadata handling for TEXT, NTEXT, and IMAGE types was incorrect for
TDS 7 versions before TDS 7.2. In addition, the macros using for testing
versions were incorrect.

Clean up max length display to agree with Microsoft specification (as best
as I can understand it).

Bug: 3098
Change-Id: I8254649fd3de97c103078ceaac1557fde3569ded
Reviewed-on: https://code.wireshark.org/review/31734
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-28 05:01:08 +00:00
Goldman, Adam
09ea924a6a opa-mad: Fixed bfrctrl and portinfo multiblock padding
Moved FabricInfoRecord ett to right location.

Change-Id: I97dd540e9929126648a0c690f54f2caa88838365
Signed-off-by: Goldman, Adam <adam.goldman@intel.com>
Reviewed-on: https://code.wireshark.org/review/31716
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-27 13:50:10 +00:00
Peter Wu
1527177cb9 TCP: pass data after a ZeroWindowProbe to subdissectors
If the single byte within a ZeroWindowProbe triggers reassembly within a
subdissector, a new MSP will be created with just a single byte. Be sure
not to mark subsequent segments that contain the full segment data as
retransmission as this prevents the subdissector from seeing the data.

Bug: 15427
Change-Id: I36ae2622689c6606c99cdff70b6beba4b9d25ca7
Reviewed-on: https://code.wireshark.org/review/31732
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jasper Bongertz <jasper@packet-foo.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-27 09:47:54 +00:00
Peter Wu
596f538b5b TCP: do not mark data following a ZeroWindowProbe as retransmission
The single byte within the ZWP could be retransmitted with the next
segment, this is perfectly acceptable behavior. Do not flag these new
segments as retransmissions or Out-Of-Order.

Bug: 15427
Change-Id: I76db2b7a2b684c8c78fa24c9c4b457e1833d12b7
Reviewed-on: https://code.wireshark.org/review/31731
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jasper Bongertz <jasper@packet-foo.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-27 09:47:44 +00:00
Pascal Quantin
14d5ab01c0 SMB2: ensure that preauth_hash_current pointer is always initialized
Bug: 15446
Change-Id: I9c233ee327dd40d1ae2dd076a2e236c6f23ae5e2
Reviewed-on: https://code.wireshark.org/review/31741
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-26 10:51:39 +00:00
Peter Wu
ae6b585d51 ISAKMP: fix memory leaks for IKEv1 decryption
Fixes leaks of allocations from dissect_key_exch as detected by ASAN
while running the following tests:

    test_ikev1_simultaneous
    test_ikev1_unencrypted
    test_text2pcap_ikev1_certs_pcap
    test_ikev1_certs

Change-Id: Ifc102539efadd33d1b9d9921bcdbb35dfd31927f
Fixes: acfe071eb6 ("Add decryption support.")
Reviewed-on: https://code.wireshark.org/review/31740
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-26 07:43:10 +00:00
Anders Broman
3ee9c0facf GTP: Dissect PDU Session Container.
Change-Id: I4022d1d47aeaaa4a4d3d51c365bd8fad138a8e97
Reviewed-on: https://code.wireshark.org/review/31735
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-25 20:41:21 +00:00
Pascal Quantin
75484b106d ETSI CAT: do not call tvb_bytes_to_str() with a 0 length
Change-Id: Ibd8ebe801a7bb0196e9d0f8e1c19cc16050a4f60
Reviewed-on: https://code.wireshark.org/review/31733
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-25 15:55:05 +00:00
Anders Broman
38ee25b3f5 nas5gs: v15.2.1 Updates and corrections
- Update the IE paragraph references
- Don't dissect encrypted messages
- Introuduce preference to force dissection of encrypted messages a
s plain.
- Fix idssection of Tracing area.
- Dissect Replayed S1 UE security capabilities.

Change-Id: If3dce4c34cbd72b1d8afd0079b81c719a7e94598
Reviewed-on: https://code.wireshark.org/review/31730
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-25 13:02:03 +00:00
Peter Wu
0b9b531726 tcp: fix reporting of "Reassembled in" for OoO initial segment
When the initial segment is OoO, it was recognized as retransmitted. Fix
this by remembering which frame actually contains the initial segment.

Bug: 15420
Change-Id: If63e2ff581775ff9d396a612839f1bfab30f111f
Reviewed-on: https://code.wireshark.org/review/31720
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-25 12:01:32 +00:00
Joakim Karlsson
394e39117f pfcp: Improved printout on some IEs
Change-Id: I98599f3c990a3b446b8080a24002371b5cf1a98b
Reviewed-on: https://code.wireshark.org/review/31718
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-25 11:18:16 +00:00
Aurelien Aptel
d3f1e2fa19 smb2: cleanup
* remove _U_ unused attribute for used args
* no need for gcry_err_code() for success

Change-Id: I4c629657328506255da066671b69a98d0f088a3b
Reviewed-on: https://code.wireshark.org/review/31729
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-24 22:16:21 +00:00
Uli Heilmeier
7ef8ddcad4 CoAP: Add RFC8516 response code
RFC8516 adds new response code 4.29

Change-Id: I4a1d57a0632939d0b59a7f625720d07be3cdb866
Reviewed-on: https://code.wireshark.org/review/31719
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-24 22:14:27 +00:00
Martin Boye Petersen
f51821af86 ZigBee: Changed file offset from BASE_HEX to BASE_DEC
The change aligns this field with the image size and data size fields,
which are also shown as decimal.

Change-Id: I0e34a2742ae3d18c7b2501e895406f4b416a9ca6
Reviewed-on: https://code.wireshark.org/review/31717
Reviewed-by: Kenneth Soerensen <knnthsrnsn@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 20:05:52 +00:00
Nicolas Bertin
66819a619a ua3g: updated freeseating message decoding to handle the "do_reset" parameter
Change-Id: I66bfed59301a6f149819b345d03c534993f36948
Reviewed-on: https://code.wireshark.org/review/31711
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-24 19:30:07 +00:00
Aurelien Aptel
bf208ab000 smb2: add NULL checks
in incomplete traces, the saved packet data (ssi) might be NULL. This
would trigger segfaults.

Sample problematic capture:

https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=smb-on-windows-10.pcapng

Change-Id: I3e40efa34396d2ffe5bd75fb4250c7ccf0cb6b93
Reviewed-on: https://code.wireshark.org/review/31722
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 18:38:26 +00:00
Peter Wu
557607271a EPL: fix build with incomplete libxml2 library
HAVE_LIBXML2 can be set while PARSE_XDD is unset, resulting in missing
functions and linker errors.

Bug: 15419
Change-Id: I0aa20a80080d159bfb6eebccc503b66cc148f7f8
Reviewed-on: https://code.wireshark.org/review/31715
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2019-01-24 18:24:19 +00:00
Peter Wu
0f4161a48c tcp: mark units_64bit_version as static
Addresses a -Wmissing-variable-declarations warning from Clang.

Change-Id: I04de4b2017a61f9e605892338426b1a49042671f
Fixes: v2.3.0rc0-1774-g8efb7fece1 ("Adjust proto_tree_add_xxx_format_value calls to use unit string")
Reviewed-on: https://code.wireshark.org/review/31721
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-24 18:24:15 +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
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
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
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
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
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
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
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
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
Anders Broman
f98f8bd0f5 nas5gs: Update to v 15.2
Change-Id: I485d6f331461fdfffb87140dbf80100a525e35eb
Reviewed-on: https://code.wireshark.org/review/31652
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-21 18:12:09 +00:00
Joakim Karlsson
70d9bfbf33 QUIC: fix build error without LIBGCRYPT_AEAD
Change-Id: I37a0cd4bb6ee419873ab05a131279c36c68a8c13
Reviewed-on: https://code.wireshark.org/review/31653
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-21 16:14:25 +00:00
Anders Broman
b585a50aeb NGAP: Handle id-NASC NAS-PDU
Treat all other ids as NAS5GS-PDU

Change-Id: Id821a9eecbe7437ba7dcd215cc94d93af70426d4
Reviewed-on: https://code.wireshark.org/review/31649
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Joakim Karlsson <oakimk@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-21 14:45:09 +00:00
Peter Wu
19630453bf QUIC: rename "quic.frame_type.*" fields to "quic.*"
This results in shorter filters. Some filters (such as quic.stream)
already omitted "frame_type". Done with an automated search and replace.

Change-Id: Iad8710b3b66487e5f744e10cde3561d34f20fe99
Reviewed-on: https://code.wireshark.org/review/31648
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:35:27 +00:00
Peter Wu
252206238c QUIC: add Fixed Bit and Spin Bit (draft -17)
Also reorder fields to match the bit layout.

Bug: 13881
Change-Id: I43d3186ae0a0f871302b8a3b34fcb628b38b2306
Reviewed-on: https://code.wireshark.org/review/31644
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:31:00 +00:00
Peter Wu
63d2349a4f QUIC: remove superfluous encrypted packet number field
As all packet number fields are encrypted, it is no longer useful to
display the partial packet number. The user can infer the original
decrypted value by checking the field length and truncating the value.

Bug: 13881
Change-Id: I7926ac7439ff579b9dd5047dde87f738aefac76d
Reviewed-on: https://code.wireshark.org/review/31643
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:30:32 +00:00
Peter Wu
295b9883e5 QUIC: dissect unprotected fields in Long Header (draft -17)
Create ciphers earlier in the long header dissection process such that
the flag byte can be decrypted, dissect Reserved and Packet Number
Length fields.

Bug: 13881
Change-Id: I233ee1cab9783f00a4ed6e1e3689135f979ec820
Reviewed-on: https://code.wireshark.org/review/31642
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:30:09 +00:00
Peter Wu
7acb5caa9f QUIC: remove gQUIC Q044 support
While gQUIC Q044 is compatible with the IETF QUIC long headers format,
it is not the same. Remove gQUIC support since it is incomplete (flag
dissection is wrong, payload is not correctly dissected) and slows down
IETF QUIC dissector development. If support is restored, it should
likely be added as heuristics in packet-gquic.c

This is a manual revert of v2.9.0rc0-2173-g9fcb4af6b6 ("QUIC: gQUIC Q044
always use CHLO from gQUIC (with tag)") plus some other changes.

Change-Id: If75d81a4c38475f4e11fd8ade7252991f0ba0316
Reviewed-on: https://code.wireshark.org/review/31640
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:29:34 +00:00
Peter Wu
588c10a518 QUIC: remove unused version argument from cipher creation functions
This was necessary to support draft -12 and -13 at the same time. As the
QUIC WG seems to slow down on further changes, this can be removed.
Removing this prepares for properly dissecting the decrypted flag byte
in dissect_quic_long_header.

Change-Id: Ieb7852e2cbdb89730a80b574d04e9ca42e16c23a
Reviewed-on: https://code.wireshark.org/review/31641
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:29:28 +00:00
Peter Wu
bfcb3cb522 QUIC: update for changes in the short header flag (draft -17)
Draft -17 shifts the key phase bit and encrypts it. The old KP bit is
now always 1 which broke decryption due to selection of the wrong
payload protection cipher.

Split calculation of the header protection and payload protection
cipher such that the short header flag can be decrypted earlier. Now the
decrypted flag can be displayed and the correct pp cipher is selected.

Bug: 13881
Change-Id: Ic9468498c3d0fb3f0a456d947824b40709db4927
Reviewed-on: https://code.wireshark.org/review/31637
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-21 12:29:19 +00:00
Swapnil Roy
369c39ace8 NAS 5Gs: Updated 5Gs identity type
Change-Id: I96e788a7e65d977479a91b4bc92d0c6d4179177d
Reviewed-on: https://code.wireshark.org/review/31610
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-21 09:13:39 +00:00
Peter Wu
e953785dd2 QUIC: fix packet number spaces and verification (draft -17)
Decryption would fail after switching from Initial to the Handshake
message due to the packet number changing from 1 to 0 which would result
in the wrong reconstructed packet number. To fix this, implement three
different packet spaces and update the full packet number only if
decryption succeeds.

While at it, document all tricky interactions between packet number
spaces and different secrets / ciphers.

Bug: 13881
Change-Id: Ic88a83cdf76cb024054de8a32ea959bd1dacaca3
Reviewed-on: https://code.wireshark.org/review/31635
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-20 19:49:27 +00:00
Peter Wu
e400b78204 QUIC: fix handshake decryption (draft -17)
Packet numbers in handshake messages are protected by a cipher different
from the initial cipher.

Bug: 13881
Change-Id: Ife6524c0525df10ff3c64f4333908b189f823509
Reviewed-on: https://code.wireshark.org/review/31634
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 18:22:16 +00:00
Darien Spencer
f1b89c3602 GSM-SIM: Add file ID for DF.CDMA
Change-Id: Ib8066c14d2a8a0e4b0464cd833518c06d2eb801c
Reviewed-on: https://code.wireshark.org/review/31613
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 18:21:07 +00:00
Alexis La Goutte
39b09d66ff srt: redundant prototypes declaration
redundant redeclaration of ‘proto_register_srt’ [-Wredundant-decls]
redundant redeclaration of ‘proto_reg_handoff_srt’ [-Wredundant-decls]

Change-Id: Ifcc5dc5185f01601f2193c2596fa075885a412d6
Reviewed-on: https://code.wireshark.org/review/31633
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 18:20:39 +00:00
Darien Spencer
15f1d0775f GSM-SIM: Fix sw value for file ID not found
Change-Id: I8c4976f55c60b1d6f78ef16d7d385978d49789d4
Reviewed-on: https://code.wireshark.org/review/31617
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 15:40:48 +00:00
Peter Wu
6b6bc64924 QUIC: fix long packet type numbers (draft -17)
Swap Retry and 0-RTT Protected identifiers to fix connection tracking
and decryption. Fix detection of Retry packets.

Bug: 13881
Change-Id: I41d1b5674a5ec634b3c55bee72d6943664039dba
Reviewed-on: https://code.wireshark.org/review/31629
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 15:40:24 +00:00
Uli Heilmeier
4a41c96be1 NFS: Display ClientID in info col for Renew requests
Instead of showing the CRC16 value of the clientid, this commit
displays the real value of the clientid in the INFO column.

Bug: 15432
Change-Id: Iaeae89bf7dfe4b08746a4da9515f25f9ae6c02ac
Reviewed-on: https://code.wireshark.org/review/31628
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-20 15:39:45 +00:00
Gerald Combs
be103a4286 [Automatic update for 2019-01-20]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I18a5419a2953f5893aa76e2823c50d48e284b270
Reviewed-on: https://code.wireshark.org/review/31625
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-01-20 08:30:30 +00:00
Christophe GUERBER
77c9b21124 OpenFlow 1.5: implement version specific parts
B.18.1 Egress Tables (EXT-306):
B.18.2 Packet Type aware pipeline (EXT-112)
B.18.3 Extensible Flow Entry Statistics (EXT-334)
B.18.4 Flow Entry Statistics Trigger (EXT-335)
B.18.6 Packet Register pipeline fields (EXT-244)
B.18.11 Scheduled Bundles (EXT-340)
B.18.12 Controller connection status (EXT-454)
B.18.14 Enable setting all pipeline fields in packet-out (EXT-427)
B.18.15 Port properties for pipeline fields (EXT-388)
B.18.16 Port property for recirculation (EXT-399)
B.18.21 Rename some type for consistency (EXT-302)

Change-Id: I02d2370f6cf661e400bb8b690213589cd030a541
Reviewed-on: https://code.wireshark.org/review/31566
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-20 07:49:46 +00:00
Pascal Quantin
d89d98b66d MEGACO: fix dissection of Remote Descriptor
Display the right field name.

Bug: 15430
Change-Id: I1d7da96a351bfad275142a36975df294bfec1a50
Reviewed-on: https://code.wireshark.org/review/31608
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-19 13:59:41 +00:00
Pascal Quantin
cc3ac2a568 NGAP: dissect NASC IE
Change-Id: I35210fe4088afb69f9b03b9cfcc12e8309ccd8b3
Reviewed-on: https://code.wireshark.org/review/31607
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-19 13:30:57 +00:00
Pascal Quantin
592248c2fc LTE RRC: dissect 2 InterNode IEs
Change-Id: I17424675a7b60f468e94134f17533cd891d135f7
Reviewed-on: https://code.wireshark.org/review/31606
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-19 12:51:36 +00:00
Kenneth Soerensen
aade3fd587 ZigBee: Correct command names in Key-Establishment cluster
Change-Id: I5c6a25bfc31160c722ddefb811cc3b1beeec772b
Reviewed-on: https://code.wireshark.org/review/31594
Reviewed-by: Martin Boye Petersen <martinboyepetersen@gmail.com>
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-19 07:03:57 +00:00
Pascal Quantin
94daef786a LTE RRC: upgrade dissector to v15.4.0
Change-Id: I90b3a5afe782992eac98b37336cc9267ba73dbc0
Reviewed-on: https://code.wireshark.org/review/31595
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-18 19:30:05 +00:00
Anders Broman
d9fa91f0fd nas5gs: Add NAS 5GS media type dissection.
While at it set p2p_dir.

Change-Id: Ia63ba998db72353963eddc4baa811ce552fd617a
Reviewed-on: https://code.wireshark.org/review/31590
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Joakim Karlsson <oakimk@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-18 14:46:19 +00:00
Joakim Karlsson
658e504b96 gprscdr: Added backward compabillity addition in ChangeCondition
Adding back values existed in older relese, rel6, rel7.

Change-Id: I68de38965dc5de2ac39c04467810ce93af37fe1f
Reviewed-on: https://code.wireshark.org/review/31587
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-18 12:33:51 +00:00
Mister X
9e7276d162 IEEE 802.11 dissector: Fixed description for reason code 12
Change-Id: I5031f4ca7401be0e785502abfe871cda52388085
Reviewed-on: https://code.wireshark.org/review/31570
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2019-01-18 07:51:29 +00:00
Roger Light
10bcb40c5e MQTT v5 malformed packet fixes.
PUBACK, PUBREC, PUBREL, and PUBCOMP can all have abbreviated packets
which are not currently handled, leading to those forms being marked as
malformed.

Bug: 15428
Change-Id: I1e6e5dbbca29e7e731683d5c166f9abf978f62b2
Reviewed-on: https://code.wireshark.org/review/31580
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-18 07:49:12 +00:00
Dylan Ulis
ae394464df CIP: Improve API/RPI precision
1. Show 3 digits of precision after the decimal place for API/RPI when
displaying in ms.
2. Remove displaying the value as hex microseconds.

Change-Id: I483739c13ff0e02bd773b5207b41a5eec6c23289
Reviewed-on: https://code.wireshark.org/review/31583
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-18 06:08:11 +00:00
Peter Wu
cbe7f26a86 DTLS: add DSB support, use the key log file from the TLS dissector
The DTLS and TLS dissectors already share code for parsing the key log
file contents but the actual key material was stored separately. As
implementations (like GnuTLS) write the TLS and DTLS secrets to the same
file (specified by the SSLKEYLOGFILE environment variable), it seems
reasonable to combine them.

This also enables use of the pcapng Decryption Secrets Block for
decryption of DTLS traces. The dtls.keylog_file preference has become
obsolete and can no longer be used (this was not tested anyway).

A new test was added based on dtls12-aes128ccm8.pcap, the master secret
was extracted using the tls.debug_file preference.

Bug: 15252
Change-Id: Idfd52c251da966fe111dea37bc3fb143d968f744
Reviewed-on: https://code.wireshark.org/review/31577
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-17 21:33:25 +00:00
Anders Broman
cda1a591e9 smpp: Make it clearer that it's a heuristic dissector.
Should this be default off? I had a false positive.
While at it remove unused hf entry.

Change-Id: Ia3ec0f2e127659349226af9bc2acb0812960a0a6
Reviewed-on: https://code.wireshark.org/review/31574
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 14:52:34 +00:00
Dylan Ulis
75f9c95888 CIP: Add more objects
Add newer CIP objects

Change-Id: Ie1fcc219ee2d8abece8aaa9c4bbaade42f029ef9
Reviewed-on: https://code.wireshark.org/review/31568
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 13:09:44 +00:00
Dylan Ulis
b3fe731259 CIP Safety: Multicast Active/Idle was reversed
Corrected the Multicast Active/Idle true_false_string order

Change-Id: I1753f4cfc9e1ea138789a236976b649607d74831
Reviewed-on: https://code.wireshark.org/review/31567
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 12:05:59 +00:00
Dave Barach
abd64c9ea2 VPP: add vpp graph dispatch trace dissector
Add a dissector for http://fd.io vpp graph dispatch traces. The file
format is described in detail here:
       https://fdio-vpp.readthedocs.io/en/latest/gettingstarted\
               /developers/vnet.html#graph-dispatcher-pcap-tracing

Fuzz-tested with good results.

Bug: 15411
Change-Id: I3b040bb072ce43fb2fb646a9e473c5486654906a
Signed-off-by: Dave Barach <dave@barachs.net>
Reviewed-on: https://code.wireshark.org/review/31466
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 11:31:27 +00:00
Pascal Quantin
67783962cf LTE RRC: fix dissection of measResultSCG-r15 IE
Change-Id: I68bdc75fc1fb270f815004f2cb6eafbb7bfc2329
Reviewed-on: https://code.wireshark.org/review/31572
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-17 10:24:17 +00:00
Alexis La Goutte
45acd9864b QUIC: Reorder Frame type code
Change-Id: I2b0a7ef2d46f6266c6d96ac74e590869144a39bd
Reviewed-on: https://code.wireshark.org/review/31565
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-17 09:56:11 +00:00
Maksim Salau
7f49d0d1bb udp-nm: Extend and rename to autosar-nm
The UDP-NM dissector is actually AUTOSAR-NM and works over UDP and CAN.

The change also adds parsing of reserved bits of control bit vector and
the 'NM Coordinator Id' field which was present in revision 3.2 but now
is deprecated (bits are marked as reserved).

Since not every packet on a CAN bus is an Network Management one,
parameters were added to filter only packets with specific ids.
In order to define ids to be dissected one should define a reference id
and a mask in preferences.

Change-Id: Ica69032b7200c4c3a1f81130ebcea0dd4144cbf2
Reviewed-on: https://code.wireshark.org/review/31560
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 08:11:22 +00:00
ismaelrti
9f988b69a4 RTPS: Possible buffer overrun fixed in PID_TYPEOBJECT_LB dissection.
In PID_TYPEOBJECT_LB dissection class_id_enum_names char* array has
been replaced by a string_values so it won't cause any issue if
the read index value is out of bounds.

Bug: 15405
Change-Id: I0dc9d8d00024a2fbb03fca7238ab709b91b059aa
Reviewed-on: https://code.wireshark.org/review/31484
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 08:10:14 +00:00
Rohan Saini
c9df27552b IS-IS: support for dissecting IS-IS BIER Info Sub-TLV (RFC 8401)
Added support for dissecting IS-IS BIER Info Sub-TLV and BIER MPLS
Encapsulation Sub-sub-TLV, as per RFC 8401

Bug: 15421
Change-Id: Iec5e275f3afef7cb64d474634bd0a89b42a1b480
Reviewed-on: https://code.wireshark.org/review/31551
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Uli Heilmeier <openid@heilmeier.eu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-17 08:09:25 +00:00
Dario Lombardo
179cb6dfa1 nas_5gs: remove dead increment.
Found by scan-build.

Change-Id: I499dcc0781cddbf10e117ab91c58a3213adbbc63
Reviewed-on: https://code.wireshark.org/review/31564
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-16 16:25:06 +00:00
Emmanuel Grumbach
95934d82e2 ieee80211: calculate the number of tones for RU allocation
It can be annoying to have to manually calculate the number
of tones based on the global bandwidth and the RU allocation.
Do that in the dissector.

Change-Id: I42eb403a91ebacc4fcfaa3e8c3e793a055d2b9f8
Reviewed-on: https://code.wireshark.org/review/31559
Reviewed-by: Emmanuel Grumbach <egrumbach@gmail.com>
Petri-Dish: Jim Young <jim.young.ws@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2019-01-16 15:17:46 +00:00
Gerald Combs
6ee0dabbdc Couchbase: Fix another shadow variable.
Change-Id: Id66535f9e21a9e311cb69af2b46fa896186e8b10
Reviewed-on: https://code.wireshark.org/review/31561
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>
2019-01-16 04:29:11 +00:00
Guy Harris
52b252b04d Fix capitalization of "radiotap".
Change-Id: I9f5925be9305b72fbe4ccd98c0c77aadb629ea8f
Reviewed-on: https://code.wireshark.org/review/31563
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-15 23:17:02 +00:00
Alexis La Goutte
003a2f07b6 QUIC: Reorder line code for QUIC Transport Parameter (draft -17)
Bug: 13881
Change-Id: I3f721441a793740aaff7eae5a2bc10ec66e8e220
Reviewed-on: https://code.wireshark.org/review/31553
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-15 20:37:34 +00:00
Daniel Hirschberger
02bb9c0246 ssh: Host key tree selection, fix off by 4
When selecting the Host key tree 4 bytes of the host key are missing because
the subtree has length key_len and does not include the length of key length
field itself.

Change-Id: I1a1ca2f3a5ea651c9dab4f0edc705df2c98a7ae4
Reviewed-on: https://code.wireshark.org/review/31464
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-15 19:47:39 +00:00
Pascal Quantin
8348b7bf5b NR-RRC: upgrade dissector to v15.4.0
Change-Id: I6a50623a485796a12f01ca1352ba31caa0d96eee
Reviewed-on: https://code.wireshark.org/review/31558
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-15 18:37:39 +00:00
80ed3a5b26 GSUP: add CHECK-IMEI message decoding
Implement necessary messages for Procedure Check_IMEI_VLR (TS 23.018
Chapter 7.1.2.9). This lets the VLR ask the EIR to check if an IMEI
is valid.

Use the IMEI dissector from BSSAP by making it available as stand-alone
dissector.

For more information, please see:

https://git.osmocom.org/libosmocore/commit/?id=10db2817e5ce76eebd61dd6b607a6dfad57fa417
https://git.osmocom.org/osmo-gsm-manuals/commit/?id=0f41399d36770fb6d2069d5aea7e5315beb368e6

Change-Id: Ie66c79ace7a9448b3191bec8208805aa3bb7888e
Reviewed-on: https://code.wireshark.org/review/31445
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-15 17:45:25 +00:00
8f3f842d9a BSSAP: fix typo imesiv -> imeisv
Change-Id: If92783c2dc57d3cf35b8a2a7c2fcb72e5219c0ad
Reviewed-on: https://code.wireshark.org/review/31555
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-15 15:43:44 +00:00
Dylan Ulis
56f988b125 CIP: Correct SSN to SNN
SNN = Safety Network Number

No functional/parsing changes.

Changes:
1. Fix some display fields and filter names that previously used the
incorrect ssn naming.
2. Changed all variable names in a similar way.

Change-Id: I7bdc52a5aef31a9c6007545d5a79c99bab6cd184
Reviewed-on: https://code.wireshark.org/review/31549
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-15 05:39:01 +00:00
Christophe GUERBER
10763239c3 IMAP: Fix regression introduced by change 30876
UID prefixed commands where not dissected correctly.

Change-Id: I280e3ff7edff11fa67b4a3567b4a0614271d9f6a
Reviewed-on: https://code.wireshark.org/review/31542
Petri-Dish: Dario Lombardo <lomato@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-01-15 05:13:18 +00:00
Emmanuel Grumbach
d6f9279c5b ieee80211: print the TSF in decimal
The TSF values are "normal" numbers, not a bitmap
or anything like that.
Moreover, we often need to add or substract values
from the TSF of a beacon. Change it to be printed in
decimal to make people's life easier.

Change-Id: I01505395fb10538b204a87dd864ac04e29b821e0
Reviewed-on: https://code.wireshark.org/review/31544
Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-14 22:22:04 +00:00
Pascal Quantin
e5f7f15b1f X2AP: upgrade dissector to v15.4.0
Change-Id: I67d26dd142ffdb79bc304d44f9cfb5bc8e0acd1f
Reviewed-on: https://code.wireshark.org/review/31543
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-14 18:07:12 +00:00
Joakim Karlsson
2fee9c9726 gprscdr: Update to 3GPP TS 32.298 V15.5.1
Change-Id: I753f87080273f6d959cd75f7082c70ce62753498
Reviewed-on: https://code.wireshark.org/review/31537
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-14 13:58:00 +00:00
Alexis La Goutte
34c3d0104f QUIC: Update QUIC Transport Parameter (draft-17)
- Renumbered transport parameters (TP)
- Use varints (for integer)
- Rename initial_max_bidi_streams -> initial_max_streams_bidi (likewise for uni).

Bug: 13881
Change-Id: I1d748a756d36c73119ce6b2b72994796b89c46b1
Reviewed-on: https://code.wireshark.org/review/31534
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-14 04:54:31 +00:00
Alexis La Goutte
4e7a772765 QUIC: Initial support of draft-17
Renumber frame types, consolidate CONNECTION_CLOSE frames,

Bug: 13881
Change-Id: Id71cb5983748487947b15db625e5a8e9eea1eadc
Reviewed-on: https://code.wireshark.org/review/31405
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-14 04:54:12 +00:00
Rickard Holmberg
c43f836c17 Update packet-dcm.h using DICOM 2018e definitions
Change-Id: Icb77f0a81547655694c7bcbadcbdcde299928ae0
Reviewed-on: https://code.wireshark.org/review/31531
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 21:17:31 +00:00
Uli Heilmeier
228b4a218b MPLS Echo: Dissect additional FEC stack RFC8287
Dissect additional FEC stack segments IDs according to RFC 8287

Bug: 15413
Change-Id: I2d1782d71f0a77ef2affdeca03180acaa31bc10e
Reviewed-on: https://code.wireshark.org/review/31536
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 21:15:24 +00:00
Maksim Salau
eaee707941 dissectors: can: Handle CAN id flags
The change adds support of CAN flags stored in ids.
The flags allow dissectors to distinguish error frames,
remote transmission request frames and identify id type used (either
standard 11-bit or extended 29-bit).

Addition of bit flags allowed to add more checks whether a CAN frame may
be decoded by a particular dissector. I.e. some dissectors work only
with 11-bit ids (CANopen, DeviceNet) some only with 29-bit (J1939,
ISObus), others should be fine with bot types (OBD-II, ISO 15765).

The change also fixes 2 bugs in the DeviceNet dissector:
* removed byte swapping of CAN id (the pcap file seems to be broken;
  verified dissector operation with random traffic generated by cangen)
* fixed "Warn Dissector bug, protocol DeviceNet, in packet N":
  added a default value for fragmented message type string value lookup.

Bug: 15418
Change-Id: I70e91130789bb3367fe19e51489cd34e97d678a6
Reviewed-on: https://code.wireshark.org/review/31471
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 21:13:54 +00:00
Joakim Karlsson
eba51f9122 pfcp: Update to 3GPP TS 29.244 V15.4.0
Change-Id: I285c79b7113597f47d9c5cbfd5a99b977e4d21b2
Reviewed-on: https://code.wireshark.org/review/31530
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 21:12:58 +00:00
Pascal Quantin
4242fc9904 LPP: upgrade dissector to v15.2.0
Change-Id: If94146ac8f4a54d45c0448e236543927df438aeb
Reviewed-on: https://code.wireshark.org/review/31529
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-13 14:32:10 +00:00
Uli Heilmeier
178d81f804 MPLS Echo: Fix length for FEC stack elements
For the length we don't need to add another 4 bytes.

Change-Id: I276801ab4c5c6a1d9e37b55956f352c16b673db8
Ping-Bug: 15413
Reviewed-on: https://code.wireshark.org/review/31510
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 13:17:25 +00:00
Atli Guðmundsson
9e81fcf833 Updates and bugfixes of ASTERIX I021
I021 updates
- Added I021/RE.BPS
- Added I021/RE.SelH
- Added I021/RE.NAV
- Added I021/RE.GAO
- Added I021/RE.SGV
- Added I021/RE.STA
- Added I021/RE.MES
I021 bugfixes
- Fixed I021 Capitalisation inconsistencies
- Fixed I021/008.TC, incorrect mask
- Fixed I021/040, missing spare bits
- Fixed I021/074.TOMRP, incorrect type
- Fixed I021/076.TOMRV, incorrect type
- Fixed I021/090.SILS, incorrect name
- Fixed I021/110#2.TCP Number, incorrect name
- Fixed I021/110#2.TD, incorrect mask
- Fixed I021/146.Source, incorrect mask
- Fixed I021/160.GSPD, incorrect type
- Fixed I021/160.TA, incorrect type
- Fixed I021/165.TAR, incorrect number of bits
- Fixed I021/260.RAC, incorrect handling of 4 bits spanning 2 bytes
- Fixed I021/271, missing spare bits
I021 v2.1 bugfixes
- Fixed I021/040, missing spare bits
- Fixed I021/271, missing spare bits, incorrect field length
- Fixed I021/271.LW, incorrect mask

Change-Id: I10a7d94d76fed436e9d103dfd13c472e66d45831
Reviewed-on: https://code.wireshark.org/review/31481
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 10:02:05 +00:00
Dario Lombardo
a409f5c894 quic: fix compilation without libgcrypt aead.
When that version isn't available, we still need to have this
function available. Make it always available, then, with empty
implementation.

Change-Id: Ia827922c181676bbb2ba4a02dc09290b8cdb1a5c
Reviewed-on: https://code.wireshark.org/review/31491
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-11 16:55:36 +00:00
Anders Broman
646474306b mas5gs: Add dissection of IE 9.11.3.10 ABBA
Change-Id: Id1d0641bfbee94a62a6b7296dd7cc02680bdd5a6
Reviewed-on: https://code.wireshark.org/review/31490
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-11 16:54:23 +00:00
Pascal Quantin
34e2eec141 F1AP: upgrade dissector to v15.4.0
Change-Id: I568a5f27c8be6b172856d908da6aa4f2782136d9
Reviewed-on: https://code.wireshark.org/review/31489
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-11 16:07:51 +00:00
Pascal Quantin
d6b187e42f XnAP: upgrade dissector to v15.2.0
Change-Id: Ie26f8918aff20ade21eda611950795a320a417f2
Reviewed-on: https://code.wireshark.org/review/31483
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-11 12:02:40 +00:00
Dario Lombardo
5544d0a4da dissectors: remove unused assignments.
Found by clang-scan.

Change-Id: I46d3be9032c8d34a76ecd844287c36aff733ea2d
Reviewed-on: https://code.wireshark.org/review/31482
Reviewed-by: Kenneth Soerensen <knnthsrnsn@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-11 10:17:15 +00:00
Peter Wu
e1bd0b9399 QUIC: initial support for new header protection cipher (draft -17)
The old packet number encryption method was replaced by a new header
protection mechanism which also encrypts some bits of the first byte.
Patch the old code to support this byte. Future patch should clean up
this messy code, but at least (Initial) packet decryption works now.

Bug: 13881
Change-Id: Ia0f40614c1084ba6f7fc597b8f6dc85845ea1fbd
Reviewed-on: https://code.wireshark.org/review/31480
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-11 05:09:39 +00:00
Uli Heilmeier
2f786ac8f7 MPLS Echo: Additional downstream mappings RFC8287
Add additonal protocols as defined in RFC8287 section 6

Bug: 15410
Change-Id: I2254cda6031c85d103b85f47604265d80a54f436
Reviewed-on: https://code.wireshark.org/review/31478
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-11 05:07:30 +00:00
Alexis La Goutte
a0b9e8b652 QUIC: update flag on long packet headers (draft-17)
Bug: 13881
Change-Id: I3e92ec8cba3482ab9d13f1102425a7b9ec7ccd76
Reviewed-on: https://code.wireshark.org/review/31407
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-10 21:27:59 +00:00
Guy Harris
fd93f5490c Clarify the name and description for a link-layer encapsulation type.
What we were calling the "name" is actually a description to show to
users; what were calling the "short name" is just the name to use on the
command line.

Rename some routines and structure members, and put the name first and
description second in the table.

Expand some descriptions to give more details (e.g., to be more than
just a capitalized version of the name).

Fix the CamelCase capitalization of InfiniBand.

Change-Id: I060b8bd86573880efd0fab044401b449469563eb
Reviewed-on: https://code.wireshark.org/review/31472
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-09 21:21:56 +00:00
Pascal Quantin
c8f8720673 E1AP: upgrade dissector to v15.2.0
Change-Id: Ieafe6558e54a04ce7004c4005f646cea88ac9e5d
Reviewed-on: https://code.wireshark.org/review/31469
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-09 20:55:06 +00:00
Pascal Quantin
db0b79e5b3 NGAP: use extended value_string for CauseRadioNetwork
Change-Id: Ie32c8c63e26a31c1fd76cf8f1e7d6ef9103c5960
Reviewed-on: https://code.wireshark.org/review/31470
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-09 20:29:57 +00:00
Pascal Quantin
c9f7cbdc35 NGAP: upgrade dissector to v15.2.0
Change-Id: Id050878d8d18fda321304ce5dd2d7842e66cfa93
Reviewed-on: https://code.wireshark.org/review/31463
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-09 12:34:19 +00:00
Dana Sy
ab5bbbb2ba zbee: zbee_zdp.profile wrong data type
Fixed the data type for zbee_zdp.profile to use the proper data type
of UINT16.

Change-Id: I20bac57ec3a0a7261aeb65333d9dd4b5bdb4a85c
Reviewed-on: https://code.wireshark.org/review/31458
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-01-09 05:51:10 +00:00
Mariusz Zaborski
c608bfec74 rdp: add parsing MONITOR_DEF fields [1]
[1] https://msdn.microsoft.com/en-us/library/dd342324.aspx

Change-Id: I671ebdd5900a0cd409159388e2f72e6e5fbfd6a2
Reviewed-on: https://code.wireshark.org/review/31390
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-09 05:50:41 +00:00
Maksim Salau
85c189fdb7 dissectors: j1939: Use raw id to filter packets
Using raw CAN id allows us to drop error frames and frames with
standard ids since J1939 work only with extended ids.
Also if allows us to not to decode payload of RTR frames.

Change-Id: I06cec52176be79028f9ac5bce2017907c06aacfb
Reviewed-on: https://code.wireshark.org/review/31449
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-09 05:49:08 +00:00
Maksim Salau
9565119d6e dissectors: socketcan: Pass raw ids to dissectors
In the current implementation only masked id is provided to
subdissectors, which doesn't allow to filter packets effectively.
E.g.: J1939 should dissect only extended frames. Without EFF flag, the
subdissector is unable to filter out frames with 11-bit ids.
Also J1939 tries to dissect pyaload of RTR of ERR frames, which obviously
doesn't make sense.

The change exports raw id alongside the masked one for backwards
compatibility. Once all the CAN dissectors are updated to use the raw
variant (if necessary) the masked variant may be dropped.

Change-Id: I52df5673ecfd53d2e65790c4187ea129e67a88e9
Reviewed-on: https://code.wireshark.org/review/31448
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-09 04:25:54 +00:00
Maksim Salau
796007e0e0 dissectors: socketcan: Fix indentation
Change-Id: I4b9023a812e7f24a8980abe871f7fa28f60cefec
Reviewed-on: https://code.wireshark.org/review/31447
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-09 03:58:04 +00:00
Anders Broman
ea001cd6c1 mas5gs: Fix dissection of QoS flow descriptions and QoS rules.
Change-Id: Ie4b9fcf0afdea19ba6f2fb531e84096ac103c99b
Reviewed-on: https://code.wireshark.org/review/31443
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-08 15:58:02 +00:00
Pascal Quantin
e0d6041bcf S1AP: upgrade dissector to v15.4.0
Change-Id: Iecf02ce3858cd2cea12bc73e402ace0c558d8abc
Reviewed-on: https://code.wireshark.org/review/31444
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2019-01-08 15:25:28 +00:00
Dylan Ulis
5d30fb5d1a CIP Safety: Correct Safety Configuration ID
This was previously being parsed as a UNID, which is not correct.

Change-Id: I2f9fc17debf3ce60d35d71a28bd1d19f54a1b982
Reviewed-on: https://code.wireshark.org/review/31441
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-08 04:46:56 +00:00
Jeff Morriss
00cb1e8375 NTP: don't increment offsets that aren't used again.
This avoids warnings from Clang.  Rewriting this to use the cursor API might
be interesting.

Change-Id: I8a5459ffbee8d0907757e99eff273d7eff6d1735
Reviewed-on: https://code.wireshark.org/review/31436
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-08 04:45:40 +00:00
Alexis La Goutte
32b320ba0f ieee1609dot2: remove unused handoff function
Change-Id: I9c3a6098e2a54d281228689cdbbbbf78604b2750
Reviewed-on: https://code.wireshark.org/review/31422
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-08 01:53:17 +00:00
Alexis La Goutte
249405df33 cesoeth: declare register and handoff function
for avoid -Wmissing-prototypes warning

Change-Id: I92edf8d62c3685033c4424f9af16d4094c6599d6
Reviewed-on: https://code.wireshark.org/review/31421
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-08 01:52:49 +00:00
Alexis La Goutte
30e6775935 f5ethtrailer: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ie8f1a4a4a11370ff5d5d85f8110aec568f88877e
Reviewed-on: https://code.wireshark.org/review/31410
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-01-07 19:35:41 +00:00
Atli Guðmundsson
711eb94438 Minor bugfix of ASTERIX I023
I023 bugfixes
- Fixed I023 Capitalisation inconsistencies

Change-Id: I39eccd0b7c3a68a8b74d68cf16b988bacce92924
Reviewed-on: https://code.wireshark.org/review/31429
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-07 05:34:48 +00:00
Dylan Ulis
e313b25359 CIP: Correct DATE_AND_TIME parsing
DATE_AND_TIME struct is actually time then date. We were previously
parsing it as date then time.

Change-Id: I7367b5502318de32b7c9e7fd170ae58de4c3347f
Reviewed-on: https://code.wireshark.org/review/31431
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-07 04:40:36 +00:00
Guy Harris
a1a30cab18 Fix whitespace.
Change-Id: I87e441d3a00c00d4ec7dff5717899408a8e7ab3a
Reviewed-on: https://code.wireshark.org/review/31420
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-06 19:44:46 +00:00
Guy Harris
0168b71cfd Require that dissect_atm_pw_oam_cell() be called with a non-null data pointer.
The only place where it's currently called passes it data.

Do a DISSECTOR_ASSERT() check to make sure it's non-null.

Remove null-pointer checks that this renders no longer necessary.

Change-Id: I2fc86f9591a7126d328029379ecfe98400dd01cb
Reviewed-on: https://code.wireshark.org/review/31419
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-06 19:43:33 +00:00
Alexis La Goutte
ffb3328d1f cdma2k: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ied58cd7f969121aa51579fdd0919fdfe33e552e3
Reviewed-on: https://code.wireshark.org/review/31409
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-06 19:38:52 +00:00
Guy Harris
de71f0e16d No need to check whether atm_info is null in that code path.
All exported (via dissector tables and dissector handles) routines that
call dissect_atm_common() first do DISSECTOR_ASSERT(atm_info != NULL),
so dissect_atm_common() will never be called iwth a null data pointer.
dissect_reassembled_pdu() is called only from dissect_atm_common(), so
it also won't ever be called with a non-null data pointer.

Fixes Coverity CID 1442299.

Change-Id: I3b455ac546a6a0cd6aa8ef184c71fda2ca2a0710
Reviewed-on: https://code.wireshark.org/review/31418
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-06 19:06:40 +00:00
Alexis La Goutte
6f67da949c pgsql: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Iddbc5257108c7e77eff5e43f0421a688709680f3
Reviewed-on: https://code.wireshark.org/review/31413
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2019-01-06 18:15:41 +00:00
Alexis La Goutte
90a21c29f9 ISIS(-lsp): Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ic9851860e4b6e2f55efa5de6553c71ed84012c55
Reviewed-on: https://code.wireshark.org/review/31415
Reviewed-by: Taisuke Sasaki <taisasak@cisco.com>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2019-01-06 18:14:08 +00:00
Alexis La Goutte
f31513c274 H2Operations: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I9913b9653fedeb9cc119f10632f4c96fe54027b4
Reviewed-on: https://code.wireshark.org/review/31408
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-06 17:16:29 +00:00
Alexis La Goutte
1774aafcf1 fpp: fix this condition has identical branches [-Wduplicated-branches]
Change-Id: I09e9a2ee8a89e4784057eb50e47022a7d1e74943
Reviewed-on: https://code.wireshark.org/review/31291
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-06 17:14:42 +00:00
Alexis La Goutte
d9700b759d smpp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ifbe72c48ec401582d2df30b440e449398c71eb40
Reviewed-on: https://code.wireshark.org/review/31414
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-06 17:14:06 +00:00
Swapnil Roy
5f62774231 NAS 5Gs: PDU session establishment reject msg fix
Change-Id: Ic9774cc09ab5c7582dc85bf41e4021bddfca1ebe
Reviewed-on: https://code.wireshark.org/review/31382
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-01-06 13:38:31 +00:00