Commit Graph

71366 Commits

Author SHA1 Message Date
Guy Harris ccf495a838 Fix cpu_diag_eventid_fix_names table.
For a value_string_ext, the values must be in numerical order.

Change-Id: I43063b59a8c15d7d1fcdca07d4ae9fd89917427d
Reviewed-on: https://code.wireshark.org/review/27058
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-20 16:48:06 +00:00
Pascal Quantin 4a2019846f Windows: blind attempt to fix WiX installer generation
Change-Id: I32cc4ac54dee7cd8ef9cfa4af367206eec8259cc
Reviewed-on: https://code.wireshark.org/review/27052
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-04-20 12:39:04 +00:00
Dario Lombardo 1a9f3b8f6d tvbuff: fix compilation with gcc-4.
../epan/tvbuff.c: In function 'tvb_new_octet_aligned':
../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   *rem_len = tvb->length - *offset_ptr;
                          ^
../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
  guint abs_offset, rem_length;
        ^
../epan/tvbuff.c: In function 'tvb_find_line_end':
../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   *rem_len = tvb->length - *offset_ptr;
                          ^
../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
  guint abs_offset, rem_length;
        ^
../epan/tvbuff.c: In function 'tvb_find_line_end_unquoted':
../epan/tvbuff.c:274:26: error: 'abs_offset' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   *rem_len = tvb->length - *offset_ptr;
                          ^
../epan/tvbuff.c:486:8: note: 'abs_offset' was declared here
  guint abs_offset, rem_length;

Change-Id: Iba9fe31ac5fcf604d65bbf3bceef0c09004c1b6c
Reviewed-on: https://code.wireshark.org/review/27050
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 10:48:26 +00:00
Peter Wu 89ff4070c0 QUIC: implement new header formats (draft -11)
Draft 11 swapped the Connection ID field with version in long packet.
CIDs are split into two and can now become up to 18 bytes. The column
will now display "DCID=1234" (or "SCID=1234" instead of "CID: 0x1234").

Recognize new short header flags, but maintain draft -10 dissection.
The VN and Long Header packet share much more common fields now, so pull
out some code from Long Header packets dissection.

Drop "LH", "SH" (can be inferred from other information) and
unabbreviate "VN" for columns.

Bug: 13881
Change-Id: Ifabd8f09f388f0c4c6afe78d939c1cff6b5f161b
Reviewed-on: https://code.wireshark.org/review/27009
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 10:46:46 +00:00
Pascal Quantin 4704b89aa1 Windows: add JSON-GLib library
Change-Id: I9b266bffc74779f9d28eabb5642644a2b0afa7cf
Reviewed-on: https://code.wireshark.org/review/27049
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>
2018-04-20 10:46:19 +00:00
Pascal Quantin 2b65e9e74b Windows: upgrade GLib to 2.52.2
Change-Id: If54ec9f8c62d95697a5703ea24cf3ad7c2d6112c
Reviewed-on: https://code.wireshark.org/review/27048
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 10:46:06 +00:00
Ivan Nardi d7583cb713 BFCP: fix possible infinite loop
Bug: 14608
Change-Id: I483d7e79a974b7f2d41c6ea0771be7529a187ed3
Reviewed-on: https://code.wireshark.org/review/26950
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2018-04-20 10:44:23 +00:00
Alexis La Goutte 6d7d3ae77a PDCP-NR: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ib2d5c13c4f483866ac4b07942bf14a957a99dfeb
Reviewed-on: https://code.wireshark.org/review/27046
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 08:38:19 +00:00
Alexis La Goutte 2ac3cf1500 protobuf: fix typo reponse => response
Change-Id: Idca4c721d2f6f33ac5be5cc2637303c937d639e3
Reviewed-on: https://code.wireshark.org/review/27044
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 08:37:43 +00:00
Alexis La Goutte 7124fe6715 steam-ihs-discovery.c : fix typo Reponse => Response
Change-Id: I20157ce72b33b8b957d47fe6abcffb754ce4e5a2
Reviewed-on: https://code.wireshark.org/review/27043
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 08:37:28 +00:00
Alexis La Goutte 8f3dac1739 grpc: fix typo reponse => response
Change-Id: Ib0f230881426e300a8553aac14ea4d0efe87642c
Reviewed-on: https://code.wireshark.org/review/27042
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 08:37:10 +00:00
Ivan Nardi 79014a50c3 TCP: improve handling of unknown TCP options
Create protocol sub-tree, allow filtering for unknown/unsupported TCP options.

Change-Id: I9f51e3ac83e2fa97756a9f3a43f8cd2e15949e67
Reviewed-on: https://code.wireshark.org/review/27020
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-04-20 08:23:13 +00:00
ruengeler ac7e609b9f SCTP: INIT collision
Change-Id: I283ce92048af39ff4cf54e5e401e714bf6ec308b
Reviewed-on: https://code.wireshark.org/review/27023
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-04-20 08:23:05 +00:00
Alexis La Goutte e96c3d008e PTP: found typo adress => address
Change-Id: I79badcbca5b622961e7def403be4bc87ebfa776c
Reviewed-on: https://code.wireshark.org/review/27041
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 07:50:45 +00:00
Alexis La Goutte 5e3c899bee netlink-route: fix typo found by lintian
Change-Id: If0acdea872a8c999f5635f0965a64b121beeba48
I: libwireshark0: spelling-error-in-binary usr/lib/x86_64-linux-gnu/libwireshark.so.0.0.0 Adress Address
Reviewed-on: https://code.wireshark.org/review/27040
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-20 07:50:16 +00:00
Peter Wu 01a32a54a0 Qt: fix invalid member access within expert info dialog
Opening a context menu in the expert dialog resulted in an UBSAN warning
because ExpertInfoModel::data is invoked with a proxy model index. Rely
on the proxy to perform this mapping (change filterActionTriggered to
avoid direct model access while at it).

Change-Id: Id399f44b954b87d7d4dd0341fbedb391ab1b13da
Fixes: v2.5.0rc0-1966-gb0112e60ad ("Add a model to use for Expert Info dialog.")
Reviewed-on: https://code.wireshark.org/review/27025
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2018-04-20 07:46:00 +00:00
Guy Harris 0a130c5756 Handle subset tvbuffs where the length goes past the end of the parent.
Add a "contained length" to tvbuffs.  For non-subset tvbuffs, that's the
same as the reported length.  For a subset tvbuff, that's the amount of
the reported data that was actually present in the "contained data" of
the parent tvbuff.

This is unaffected by the *captured* length of any tvbuff; that differs
from the contained length only if the capture was cut short by a
snapshot length.

If a reference is within the reported data, but not within the contained
data, a ContainedBoundsError exception is thrown.  This exception
represents a protocol error, rather than a reference past the captured
data in the packet; we treat it as such.

Change-Id: Ide87f81238eaeb89b3093f54a87bf7f715485af5
Reviewed-on: https://code.wireshark.org/review/27039
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-20 03:18:47 +00:00
Guy Harris 9011a25afc More indentation cleanups.
Change-Id: I7f87d4a636a539dfa8bd04cc5a91675d92ba4097
Reviewed-on: https://code.wireshark.org/review/27038
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-20 03:16:02 +00:00
Guy Harris 07c31a8e97 Clean up indentation.
Change-Id: I0a05245b5cd19a0ea9929a4e29f82bfe5e526793
Reviewed-on: https://code.wireshark.org/review/27037
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-20 03:12:50 +00:00
Guy Harris d5dc4677ed Update some comments.
We no longer have TVBUFF_ values corresponding to different types of
tvbuff; we have, instead, a set of method pointers for the different
types.  Refer to the types by name, rather than by TVBUFF_ value.

Expand the description of some fields in the tvbuff structure.

Change-Id: I38b5281df247ddd66b4e39abfc129053a012d241
Reviewed-on: https://code.wireshark.org/review/27036
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-20 02:58:36 +00:00
Alexandr Savca b545c60658 Fix cppcheck 1.83 warnings
[packet-ber.c:2687]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-erf.c:2475]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-fmp.c:378]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-http2.c:2050]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-obd-ii.c:643]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-yami.c:244]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour

Change-Id: Ie71f9f7c8f863d1e9c693bd56444f00bdad48042
Reviewed-on: https://code.wireshark.org/review/27019
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
2018-04-19 17:31:49 +00:00
Dario Lombardo 04aedf3682 tshark: prepend tshark to all examples in doc.
The doc has a mixed way of providing example, both without executable
name and with it. Add it to all the provided examples. Add highlight of
tshark in examples, too.

Change-Id: I99d83201cc897629f186aabd20c0add9c7c53b93
Reviewed-on: https://code.wireshark.org/review/27034
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-04-19 17:15:07 +00:00
Dario Lombardo fc6b8ab698 tshark: improve -G elastic-mapping command by adding filters.
The generated elastic mapping file is huge and it can hassle softwares
like Kibana. This change adds the ability to append desired filters
that will appear in the mapping file.

This change adds the option --elastic-mapping-filter <protocols> to tshark.

Example: tshark -G elastic-mapping --elastic-mapping-filter ip,udp,dns

make only those 3 protocols to appear in the mapping file.

Change-Id: Ie2dcd6e44be2d084e8e50cd6554bd90178da4e38
Reviewed-on: https://code.wireshark.org/review/27001
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-04-19 15:54:47 +00:00
Dario Lombardo ca45f88e3b tshark: put -G elastic-mapping in help under ifdef.
Change-Id: I75cfc26844ae72f4b608f0714945b1affdac64f2
Reviewed-on: https://code.wireshark.org/review/27033
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-04-19 14:53:48 +00:00
Alexis La Goutte da7f5cdcec zbee-zcl (general) fix Unused href entry: epan/dissectors/packet-zbee-zcl-general.c: hf_zbee_zcl_scenes_extension_set
Change-Id: I034b4c4e71e7d797fef7f086c1227f45a4aee024
Reviewed-on: https://code.wireshark.org/review/27030
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Paul Zander <p.j.zander@lighting.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-19 14:26:20 +00:00
Alexis La Goutte fdb664c229 zbee-zcl (general): fix no previous prototype for ‘decode_setpoint’ [-Wmissing-prototypes]
Change-Id: I153a1da1ccc702ea39190442d1d815b6e364abb1
Reviewed-on: https://code.wireshark.org/review/27029
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-19 14:26:08 +00:00
Alexis La Goutte af0f34a6bb CIP: fix no previous prototype for ‘add_cip_pccc_function_to_info_column’ [-Wmissing-prototypes]
Change-Id: Id5737f6bc054ce4c51b28097b0db341f7debfe2e
Reviewed-on: https://code.wireshark.org/review/27028
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-19 14:25:52 +00:00
Peter Wu 9da25bc16f DNS: fix inverted condition for filtering error packets in stats
Change-Id: I9d867992e4f10c056c6070f0eb1aa0c8bb7cf117
Fixes: v2.5.2rc0-72-ga055e3c299 ("dns: skip stats if packet is within icmp.")
Reviewed-on: https://code.wireshark.org/review/27026
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-04-19 11:58:23 +00:00
Dario Lombardo f545cc5321 proto: use json_node_free instead of json_node_unref.
The latter is present in recent versions only.

Change-Id: I1da84ff0ba93ee4a3725163f0ed3a745466e201b
Reviewed-on: https://code.wireshark.org/review/27024
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-04-19 11:55:38 +00:00
Peter Wu b887fd4919 CMake: fix build with json-glib with gold linker
JSON-GLIB depends on GObject. To avoid "undefined reference to
'g_object_unref'" with the gold linker, include gobject directly.
As the files are included with the GLib package, adjust FindGLIB2.cmake.

Change-Id: I007d30b89cc07d8746cee6b619832a722f086105
Fixes: v2.9.0rc0-201-g511c2e166a ("tshark: add -G elastic-mapping report.")
Reviewed-on: https://code.wireshark.org/review/27007
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-04-19 08:08:11 +00:00
Pascal Quantin aae825cf77 Remove remnants of WS_QT_BIN_PATH
Change-Id: If1152b285df143dd7cf75abf9ecbc2d0251306df
Reviewed-on: https://code.wireshark.org/review/27021
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-04-19 08:01:27 +00:00
Guy Harris 735cfc8502 Clean up option handling.
If the option length is >= 2, so that it's long enough to include the
code and length, always put it into the protocol tree, even if the
length is invalid.  If the length is invalid, attach an expert info item
to the length field, rather than putting it into a top-level item of its
own.

Use a length of -1 for the top-level item for an option, rather than
what the length is supposed to be; that way, we don't throw an exception
if the option is too short - we just attach the aforementioned expert
info item to the length.

Change-Id: If2d987fa10739a7da28ca2c39515bfdf50da6ef9
Reviewed-on: https://code.wireshark.org/review/27018
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-19 02:34:11 +00:00
Guy Harris d5c4c6972e Fix tapo.
Change-Id: I1e5a39437e274aa8923e996241d2264dbd63e806
Reviewed-on: https://code.wireshark.org/review/27014
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-18 22:47:06 +00:00
Guy Harris 5f3e0f4ce2 Style cleanups.
Change-Id: I7aa236660f59fb267eeeaa67e3a811abc77f0c10
Reviewed-on: https://code.wireshark.org/review/27013
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-18 20:13:20 +00:00
Peter Wu c3b2519ea1 QUIC: add draft version and rename some transport parameters (draft-11)
Bug: 13881
Change-Id: Ia7c695ba081b4b744821744a6209f09ff87912fd
Reviewed-on: https://code.wireshark.org/review/27008
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2018-04-18 20:03:57 +00:00
Guy Harris 3c9249433f Remove trailing comma from enum list.
Change-Id: I3972458e6ede037a8080f34a154ca750a275f723
Reviewed-on: https://code.wireshark.org/review/27012
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-18 19:59:29 +00:00
Guy Harris 66c0c4f9e9 Remove more autotools stuff.
Change-Id: I2112e9a24308e2e1c04097df006f32bdf58778c3
Reviewed-on: https://code.wireshark.org/review/27010
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-04-18 19:57:13 +00:00
Peter Wu ad71a91540 Qt: expose CaptureEvent definition for MOC
All WiresharkDialog instances have a "captureEvent(CaptureEvent)" method
that requires the definition of "CaptureEvent" from capture_file.h.
By luck, this definition is available for CMake builds due to the
generated MOC headers being included in the right order, but this cannot
be relied on. On an autotools build with less luck:

    main_status_bar.moc.cpp: In static member function ‘static void MainStatusBar::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
    main_status_bar.moc.cpp:241:86: error: invalid use of incomplete type ‘class CaptureEvent’
             case 28: _t->captureEventHandler((*reinterpret_cast< CaptureEvent(*)>(_a[1]))); break;

Create a new header file to limit exposure of the CaptureFile class.

Change-Id: I4ab609f13b9438797e39e7b98f367da35536979b
Fixes: v2.9.0rc0-186-g57bf7e4347 ("Qt: Fix memory leak for CaptureEvent")
Reviewed-on: https://code.wireshark.org/review/27003
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 12:06:21 +00:00
Dario Lombardo 8740ac8d4c release-notes: add autotools removal.
Change-Id: I5abc0bb8b9fef4b358c53cf4a30cb0503273f727
Reviewed-on: https://code.wireshark.org/review/26997
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 10:50:55 +00:00
Dario Lombardo 7fb4b2da31 INSTALL: update cmake instructions and remove INSTALL.configure.
Change-Id: I61fe9555b65c6619b72b017f9b403eb07c7cbfca
Reviewed-on: https://code.wireshark.org/review/26996
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 10:50:46 +00:00
Dario Lombardo 511c2e166a tshark: add -G elastic-mapping report.
This option generates an ElasticSearch mapping file as described here:
https://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana

It leverages the Glib-json library.

Change-Id: Iff25f991e87d3da07bf06654e353fb785799dde9
Reviewed-on: https://code.wireshark.org/review/26848
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-04-18 08:57:39 +00:00
Peter Wu 88435354c0 QUIC: fix short packet type, update error codes (draft -10)
The short packet type has changed, see
https://tools.ietf.org/html/draft-ietf-quic-transport-10#section-5.2

Change-Id: I92709d501e2e6918edae9077942753d93a8a3dae
Reviewed-on: https://code.wireshark.org/review/26994
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:49:25 +00:00
Peter Wu 9ec59502dc QUIC: implement PATH_CHALLENGE and PATH_RESPONSE frames (draft-10)
PATH_CHALLENGE and PATH_RESPONSE replace the PING frame.
https://tools.ietf.org/html/draft-ietf-quic-transport-10#section-8.16

Bug: 13881
Change-Id: I28e321d68e19640dc8a59536a526bf9ed8f7af2a
Reviewed-on: https://code.wireshark.org/review/26993
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:49:12 +00:00
Peter Wu 01363266c1 QUIC: initial draft-10 decryption support
Drop support for draft -08 and draft -09, add support for draft -10
handshake decryption only (requires a new salt as well as a HKDF label
change). Fixed a bug in qhkdf_expand (swapped length and "QUIC " label)
which affects KeyUpdate (which was initially untested).

Bug: 13881
Change-Id: I5f3e2fe71ef0fd929d3271ecea3a8870f90e3934
Reviewed-on: https://code.wireshark.org/review/26992
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:48:54 +00:00
Peter Wu 6a45dcd7a2 dfilter: require spaces as set element separator
Previously a filter such as `http.request.method in {"GET"HEAD""}` would
be parsed as three strings (GET, HEAD and an empty string). As it seems
more likely that people make typos rather than intending to construct
such a filter, forbid this by always requiring a whitespace separator.

Change-Id: I77e531fd6be072f62dd06aac27f856106c8920c6
Reported-by: Stig Bjørlykke
Reviewed-on: https://code.wireshark.org/review/26989
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:47:58 +00:00
Peter Wu 699ee5dc52 dfilter: make spaces around ".." optional in display filter
For numeric values such as port numbers, "4430..4434" looks more
natural than "4430 .. 4434", so support that.

To make this possible, the display filter syntax needs to be restricted.
Assume that neither field names nor values can contain "..". The display
filter `data contains ..` will now be considered a syntax error and must
be written as `data contains ".."` instead. More generally, all values
that contain ".." must be quoted.

Other than the ".." restriction, the scanner deliberately accepts more
characters that can potentially form invalid input. This is to prevent
accidentally splitting input in multiple tokens.  For example, "9.2." in
"frame.time_delta in {9.2.}" is currently parsed as one token and then
rejected because it cannot be parsed as time. If the scanner was made
stricter, it could treat it as two tokens (floats), "9." and "2." which
has different meaning for the set membership operator.

An unhandled edge case is "1....2" which is parsed as "1 .. ..  2" but
could have been parsed as "1. .. .2" instead. A float with trailing dots
followed by ".." seems sufficiently weird, so rejection is fine.

Ping-Bug: 14180
Change-Id: Ibad8e851b49346c9d470f09d5d6a54defa21bcb9
Reviewed-on: https://code.wireshark.org/review/26960
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:47:31 +00:00
Peter Wu 1ff82572ca dfilter: add range support to set membership operator ("f in {x .. y}")
Allow "tcp.srcport in {1662 1663 1664}" to be abbreviated to
"tcp.srcport in {1662 .. 1664}". The range operator is supported for any
field value which supports the "<=" and "=>" operators and thus works
for integers, IP addresses, etc.

The naive mapping "tcp.srcport >= 1662 and tcp.srcport <= 1664" is not
used because it does not have the intended effect with fields that have
multiple occurrences (e.g. tcp.port). Each condition could be satisfied
by an other value. Therefore a new DVFM instruction (ANY_IN_RANGE) is
added to test the range condition against each individual field value.

Bug: 14180
Change-Id: I53c2d0f9bc9d4f0ffaabde9a83442122965c95f7
Reviewed-on: https://code.wireshark.org/review/26945
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:47:02 +00:00
Dario Lombardo 4a156da068 Remove autotools build system.
It has been replaced by cmake.

Change-Id: I83a5eddb8645dbbf6bca9f026066d2e995d8e87a
Reviewed-on: https://code.wireshark.org/review/26969
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:46:17 +00:00
Gerald Combs 2e63957031 CMake: API reference fixes.
Fixup a dependency and make sure we create the API reference from
scratch.

Change-Id: I832d1772eb8b4f07cab6f04d164cac10c70ab3bb
Reviewed-on: https://code.wireshark.org/review/26990
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-04-17 17:29:37 +00:00
Gerald Combs b56e437160 More GTK+ removal.
Remove GTK+ entries from .gitignore and start removing it from
packaging.

Change-Id: I70391000906e983eab250c8158b486c3dc6d4a16
Reviewed-on: https://code.wireshark.org/review/26988
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-04-17 17:09:51 +00:00