Commit Graph

37221 Commits

Author SHA1 Message Date
Martin Mathieson 81d1e2b55b DT2000: Call RRC dissector from newer primitives.
Change-Id: I7293771e96b029e2710a98e955bc40a16df2627a
Reviewed-on: https://code.wireshark.org/review/28429
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-25 16:51:24 +00:00
Lars Christensen dbba573f4d USB: Fall back to transfer type from descriptor
When dissecting USBIP packets, the transfer type is not known for every
packet like when dissecting usbmon captures. This patch lifs the
transfer type for the endpoint in the device descriptor and stores it in
the conversation. If the per-packet transfer type is unknown for a
transfer, it tries the one from the descriptor instead. This enables
bulk/iso payload dissectors to work on USBIP packets too.

Change-Id: If0a3e4f3b9598f586fa460d0d07032d22e203122
Reviewed-on: https://code.wireshark.org/review/28412
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>
2018-06-25 14:19:31 +00:00
Ivan Nardi 59c0b48d0a gtpv2: extend msgs supported in request/reply matching algorithm
Change-Id: Iff01f427738faccbf02401760b608dfdd4729f25
Reviewed-on: https://code.wireshark.org/review/28413
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-24 15:14:21 +00:00
Ivan Nardi 707ca32614 gtpv2: all teid header fields should have the same type (like in gtp)
Change-Id: Ia793d66c00ee8fdfe2d51da5b569658fd5966e8e
Reviewed-on: https://code.wireshark.org/review/28414
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-24 15:14:05 +00:00
Lars Christensen 4c26988e72 USB: Dissect URB transfer flags
Change-Id: I52cbafe519bbdb46961748a84db4f2db0bbe3c2d
Reviewed-on: https://code.wireshark.org/review/28411
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-24 14:19:01 +00:00
Joerg Mayer c778dec6f8 Add support for Cisco ACI
Experiment with a generic way of adding values to the parent tree

Change-Id: I50dc44da3cafac79a0ac100121c83f8d0ff28457
Reviewed-on: https://code.wireshark.org/review/28395
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2018-06-24 14:13:05 +00:00
Pascal Quantin 86d1664272 F1AP: upgrade dissector to v15.2.0
Change-Id: Ic2aaf834f702a8d754909d3eff376b71df721093
Reviewed-on: https://code.wireshark.org/review/28405
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-24 04:41:58 +00:00
Guy Harris f56b504067 Don't pass an un-initialized dummy structure to dissect_cip_io_generic().
If we know the information that belongs there, we should fill it in.
Otherwise, we should just pass a null pointer, meaning "we don't know
what this information is", and we should check for the null pointer and
not check the information in question.

Bug: 14894
Change-Id: I4f5249855330db65242d8b6eb6b5bda3af3a1925
Reviewed-on: https://code.wireshark.org/review/28404
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-23 23:10:29 +00:00
Alexis La Goutte db4fb82555 enip: fix no previous prototype for ‘dissect_item_sequenced_address/dissect_item_connected_address’ [-Wmissing-prototypes]
Change-Id: Ie0b46e49122197a51a916cc70324c1d80936cac9
Reviewed-on: https://code.wireshark.org/review/28384
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-06-22 19:57:24 +00:00
Pascal Quantin d2f1d48ecf NR RRC: register dissectors for UE-NR-Capability and UE-MRDC-Capability IEs
Change-Id: I99864ac7aae5e868d8827eb2ac851b22f7c516a6
Reviewed-on: https://code.wireshark.org/review/28392
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 18:31:58 +00:00
Dario Lombardo d5055d9846 NAS EPS: fix wrong operator.
Change-Id: I50f9c1762338f081ff75b2981e8f49010948580c
Reviewed-on: https://code.wireshark.org/review/28391
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 18:25:57 +00:00
Alexis La Goutte a33d27a19b drb: fix no previous prototype for ‘proto_register_drb/proto_reg_handoff_drb’ [-Wmissing-prototypes]
Change-Id: Ib42c8cc9fa04bace49905c7f6cbc49b673376bdf
Reviewed-on: https://code.wireshark.org/review/28385
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-06-22 16:30:10 +00:00
Pascal Quantin 024259bd73 NAS EPS: upgrade dissector to v15.3.0
Change-Id: I85c3defb81eb65622e0bd124fc4aef4bdbc89822
Reviewed-on: https://code.wireshark.org/review/28390
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 15:39:42 +00:00
Pascal Quantin e2f161adff NGAP: add dissection of DataCodingScheme and WarningMessageContents IEs
Change-Id: I68346ef9988f5fe2dfe0961debf1c359269e7d32
Reviewed-on: https://code.wireshark.org/review/28387
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 13:02:41 +00:00
Pascal Quantin ff3b7c9a93 S1AP: fix a copy/paste error in a field name
Change-Id: I3c602deaaeffa6738f325df5e4abda7b8214f560
Reviewed-on: https://code.wireshark.org/review/28386
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 12:11:51 +00:00
Joerg Mayer e7ac2e4e92 Try to make sure we don't overrun sub-tlvs
Change-Id: Idde2861ecdd1edc8f84488361695dc8d5b38d51d
Reviewed-on: https://code.wireshark.org/review/28383
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2018-06-22 09:41:03 +00:00
Pascal Quantin 651336f3e8 S1AP: update version info in header
Change-Id: I8bd5021786006e08391d885137e7aa5778c9118f
Reviewed-on: https://code.wireshark.org/review/28382
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 08:45:36 +00:00
Pascal Quantin 3909f8a8b9 S1AP: upgrade dissector to v15.2.0
Change-Id: I53feb77f91ac72f4e5f18c56453f2974b8b426be
Reviewed-on: https://code.wireshark.org/review/28376
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-22 08:29:03 +00:00
Pascal Quantin 8ef62a83f4 PER: fix decoding of bit strings with an upper bound >= 64K
Change-Id: Ibe10f172a9758afd5d38a78e2613f97b04d9c8ee
Reviewed-on: https://code.wireshark.org/review/28371
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-22 05:36:16 +00:00
Bruno Verstuyft eee4f44e9d XRA: HCS check for docsis segments
Change-Id: Iff44a3b13c13ba43442f3c3e6b186be6cd9fdcb5
Reviewed-on: https://code.wireshark.org/review/28364
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-06-21 18:42:12 +00:00
Guy Harris 9c2bb3d005 Indicate why we ahve to check the address type.
Change-Id: I223eba466680e7ef6003e3412084eb1009d8d38d
Reviewed-on: https://code.wireshark.org/review/28369
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-21 18:28:51 +00:00
Ismael Mendez Matamoros 67fe4265e4 rtps: Fixed min_length in rtps_data dissection
Change-Id: I46402f714d70466cafbe736baf570149c78c6dbf
Reviewed-on: https://code.wireshark.org/review/28363
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 13:35:28 +00:00
Stig Bjørlykke 5f45709d95 lwm2mtlv: Show object name in a generated item
Change-Id: I38e044abd3fee94be0903131b9847af27b31c516
Reviewed-on: https://code.wireshark.org/review/28365
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-06-21 13:33:18 +00:00
Dhiru Kholia 013675c9ad DHCPv4: Fix dissection of packets using HMAC-MD5 authentication
See https://tools.ietf.org/html/rfc3118#section-5.2 (Authentication for
DHCP Messages) for more details.

Sample DHCPv4 authentication .pcap file can be found at,
https://wiki.wireshark.org/SampleCaptures

Without this patch, Wireshark shows "Expert Info (Error/Protocol):
length isn't >= 31" error message in the Authentication section of the
packet dissection.

Change-Id: I2af5c7d18f0497a131b1d2dc50ee6e4708c34e28
Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
Reviewed-on: https://code.wireshark.org/review/28360
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 13:30:15 +00:00
Ka-Shu Wong 9190cd1f89 Add dissector for Exablaze timestamping trailers
Change-Id: I2953b7441b5f55f653e93e066f1c23fdcb5be7c5
Reviewed-on: https://code.wireshark.org/review/28265
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 13:29:47 +00:00
Erika Szelleova 2bac238efb Fix in CRC checker for FPP
fix in the computation of CRC + little change in the dissector - now it
 shows the fields SMD and FRAG_COUNT in the tree correctly

Bug: 14610
Change-Id: I74982ff836f02803843f6b44a0955a4b20f48e43
Reviewed-on: https://code.wireshark.org/review/28286
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 04:08:34 +00:00
Dhiru Kholia c678cf8a6a DHCPv6: Improve dissection of packets using HMAC-MD5 authentication
See https://tools.ietf.org/html/rfc3315#section-21.4.1 (Use of the
Authentication Option in the Delayed Authentication Protocol) for
more details.

Sample DHCPv6 authentication .pcap files can be found at,
https://github.com/kholia/my-pcaps

Change-Id: Ife252c4e3c114c865324df26313c6b7d57988e5a
Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
Reviewed-on: https://code.wireshark.org/review/28334
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 03:35:50 +00:00
David Kreitschmann 11ba10dd4b Fix build paths for cmake's Xcode project generator on macOS.
Multi-configuration generators (such as Xcode or VS) append the current build configuration to most paths (eg. Debug/Release). Currently this results in inconsistent paths for the application bundle and the included command line tools. This commit sets the correct path information for multi-configuration generators for macOS application bundles. The standard Makefile behaviour is untouched.

One Windows specific configuration was changed, as it was conflicting with these changes. This needs to be checked before merging.

Additionally the wrapper scripts are omitted for Xcode, as the path to the binaries depends on the configuration chosen in Xcode. Therefore it is not viable to create these scripts in the cmake run.

Bug: 11816

Change-Id: Ib43d82eb04600a0e2f2b020afb44b579ffc7a7c9
Reviewed-on: https://code.wireshark.org/review/28291
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 03:33:03 +00:00
Pascal Quantin 7f77259e55 NR RRC: upgrade dissector to v15.2.0
Change-Id: Ie7509984d17bf761e96a1d0d079720e91a6a75cf
Reviewed-on: https://code.wireshark.org/review/28355
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-21 03:31:31 +00:00
Erika Szelleova 69fc3d8f3a HTTP: fix in desegmentation of HEAD requests and responses
Previously HTTP message bodies following a HEAD request in the same conversation
were not desegmented, resulting in spurious "Continuation" messages and failure
to reassemble HTTP bodies. Fix this by properly taking the current HTTP message
type (request or response) into account.

Bug: 14793
Change-Id: I1ffb052468cf414b73243447138466aca47db3e6
Reviewed-on: https://code.wireshark.org/review/28312
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-06-20 21:59:35 +00:00
Guy Harris 1600a7d9f8 Check the address type, not the address length, in multicast/broadcast tests.
The tests assume an IPv4 address; check for IPv4 addresses.  They're
always 4 octets long, so no need to check the length.

Change the XXX comment to ask whether the check for an IPv4 address is
even necessary.

Change-Id: Ic55d2c208d5472ec995aa0c150b09a2118f04a76
Reviewed-on: https://code.wireshark.org/review/28353
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-20 20:49:50 +00:00
Pascal Quantin 50c1900141 MAC NR: upgrade dissector to v15.2.0
Change-Id: Id7e7bf6b06f029d162666928a39362e685a8b747
Reviewed-on: https://code.wireshark.org/review/28350
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-20 20:31:24 +00:00
Stig Bjørlykke 832b4e16d4 lwm2mtlv: Add Object name tables
Change-Id: I719194743dad0af12ba2e7c722eeddc3ca46b318
Reviewed-on: https://code.wireshark.org/review/28349
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-06-20 18:28:44 +00:00
Pascal Quantin f99c1c4513 PDCP NR: upgrade SDAP dissection to v15.0.0
Change-Id: I590ff86fd0964715ece691adbb7f475ff6662d81
Reviewed-on: https://code.wireshark.org/review/28348
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-20 13:08:05 +00:00
Pascal Quantin 590d8c091e LTE RRC: upgrade dissector to v15.2.0
Change-Id: I89f3a3e3f2020d68ea1b165c0ed9d731256fbe94
Reviewed-on: https://code.wireshark.org/review/28346
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-20 13:07:57 +00:00
AndersBroman 01de57bef6 nas5gs: Fix bitmask for NAS key set identifier.
Change-Id: Ic92b6f9ccfe8fe95e84443d840185bcfe0cf1b78
Reviewed-on: https://code.wireshark.org/review/28342
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-20 07:59:49 +00:00
AndersBroman 7d2002f6f1 NAS-5GS: Fix dissection of security header.
Change-Id: If023a4afd4dcc84dd5ad2bb27b8ef5ccc73a1775
Reviewed-on: https://code.wireshark.org/review/28336
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-19 11:45:58 +00:00
Erika Szelleova 31c1cd95cf DNS: changed maximum length of dns names from 1025 to 255
According to RFC1035 there are limitations on the maximum length of DNS
names. The maximum length in the code was defined as 1025, this commit
changes it to 255. Also a new macro is introduced which holds the
minimum length of a DNS name.

Bug: 14041
Change-Id: Ic63b332b2a357e33728df183c05ab0e222faf13f
Reviewed-on: https://code.wireshark.org/review/28309
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-19 08:40:45 +00:00
Pascal Quantin bf829007b4 PDCP NR: fix IP tvbuff creation when MAC-I is present
Change-Id: I5241af9068937bdeefe1d0ea6caaa49959cf2a44
Reviewed-on: https://code.wireshark.org/review/28335
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-06-19 05:12:42 +00:00
Alfred Koebler f2ece6c051 CheckPoint FW-1 New encrypt check point added
Change-Id: I7c0a92eaa914a48a2ccdf77ba867f6673767a671
Reviewed-on: https://code.wireshark.org/review/28333
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>
2018-06-19 04:59:38 +00:00
Javier Cardona 9ce3036037 802.11: Dissect locally originated mesh frames
Mesh frames that are originated at the host where traffic is captured
may have no QoS header, as it is typically added by the wlan firmware.
The dissector was using a bit on that header to indicate the presence of
a Mesh Control Header, and so locally originated mesh frames were
incorrectly dissected.

When QoS header is missing, look ahead into the next header to determine
if a mesh control header is present.

Tested on mesh traffic captured on a monitor interface on ath10k.

Bug: 14629
Change-Id: I64169f9dea79518c8af802f045168180861e9081
Reviewed-on: https://code.wireshark.org/review/27156
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2018-06-18 14:32:53 +00:00
Dario Lombardo 8e270f854e rbm: remove unused ei field.
Change-Id: I007d26f93e6c69d219200d743e1a1a3f8a32cd9d
Reviewed-on: https://code.wireshark.org/review/28324
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-18 14:23:01 +00:00
Dario Lombardo 7fca68fb7c rbm: fix no previous prototype.
Change-Id: If2af62e7284b53acd6a3258f1d60ee547f887b5f
Reviewed-on: https://code.wireshark.org/review/28323
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>
2018-06-18 14:22:46 +00:00
Alexis La Goutte 654ab0d96b expert: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ib38b37223bb7fe134bb2022668287ddc4c9bacbe
Reviewed-on: https://code.wireshark.org/review/28214
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-18 08:30:59 +00:00
Allan Møller Madsen 5f67f27424 Bluetooth HCI update
Add dissection of commands:
- LE Periodic Advertising Create Sync
- LE Periodic Advertising Terminate Sync
- LE Add Device To Periodic Advertiser List
- LE Remove Device From Periodic Advertiser List
- LE Write RF Path Compensation
- LE Set Privacy Mode

Add dissection of command complete events:
- LE Read Periodic Advertiser List Size
- LE Read Transmit Power
- LE Read RF Path Compensation

Misc:
- Corrected identity address type decoding in privacy
  related commands
- Corrected PHY decoding in LE Set Ext Scan Parameter
  and LE Ext Create Connection commands
- Added decoding of missing LE scan filter policy values
- Units added for time parameters where missing

Change-Id: I8d3fa4571f511df2e128877078609c8d112821dd
Signed-off-by: Allan Møller Madsen <almomadk@gmail.com>
Reviewed-on: https://code.wireshark.org/review/28302
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-18 04:09:36 +00:00
Dylan Ulis bef062e56e CIP: Improve I/O handling
1. Add new dissector table that allows for registration of CIP Class 0/1 I/O
   against CIP Class that was used in the Forward Open. CIP Safety is still
   a special case that gets checked before this table. The default handling is
   generic CIP Class 0/1 I/O.
2. Changed most I/O items labelled "ENIP" to "CIP I/O". ENIP is a separate
   protocol/layer, and all the I/O traffic is actually CIP. It was very
   confusing explaining to people they had to look at the wrong protocol
   layer in Wireshark before.
3. Add the generic Class 0/1 I/O as a separate tree layer. CIP Motion and
   CIP Safety I/O were already doing this.
4. Update CIP conversation filtering naming to be more accurate.
5. Clean up some offset handling

Change-Id: I1c226fe1bd8974ed0e90640c875bef21f15f3095
Reviewed-on: https://code.wireshark.org/review/28290
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-18 04:07:02 +00:00
Guy Harris 333e915cff Better name for the routine.
It doesn't necessarily produce an FT_BYTES value any more.

Change-Id: I7bad1e328394a829400bd139c48a9538c4892818
Reviewed-on: https://code.wireshark.org/review/28318
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-18 00:30:37 +00:00
Guy Harris 078a53f994 For the contains operator, both sides have to have the same type.
Have charconst_to_bytes() take the desired type as an argument, and pass
it to dfilter_fvalue_from_unparsed().

Bug: 14084
Change-Id: I11db417311b9681b18c4a3fca2862b35837194d7
Reviewed-on: https://code.wireshark.org/review/28315
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-17 22:02:47 +00:00
Erika Szelleova df9cd64550 character constant in dfilter now must fit into one byte
The value of a string in single quotes in dfilter must fit into one
  byte. The parser correctly parsed the beginning of the string,
  however it didn't check whether there are more characters to parse.

Bug: 14084
Change-Id: Ifa2d7a31052b2c1020d84c42637b9b7afc57d8c0
Reviewed-on: https://code.wireshark.org/review/28298
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-06-17 21:16:13 +00:00
Darien Spencer 479c2ba38b FP: Decode more fields and show units
Change-Id: I6743441b892eec6f2879a21822f582e5965a250d
Reviewed-on: https://code.wireshark.org/review/28300
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-17 05:19:28 +00:00