Commit Graph

57409 Commits

Author SHA1 Message Date
Pascal Quantin 7f61e90eeb SPNEGO: fix compilation without Kerberos
Remove a dead increment while we are at it

Change-Id: I4a453bbd959e71ff6e85be06d079176abdc33a95
Reviewed-on: https://code.wireshark.org/review/7622
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-10 19:04:38 +00:00
Pascal Quantin 16d8525a80 VSIP: fix extended value string declaration
Change-Id: I10e243bfa33f2e2415c937dcb12fca0578bcb7a9
Reviewed-on: https://code.wireshark.org/review/7620
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-10 18:17:05 +00:00
Pascal Quantin 75e8d91fd6 TCP: fix addition of tcp.pdu.size field
Bug: 11007
Change-Id: I902d07f6492bffe5d44f6687be9db53b11b0acd3
Reviewed-on: https://code.wireshark.org/review/7602
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-10 17:29:07 +00:00
Evan Huus 8ff55a910e forces: make redirecttlv robust to invalid lengths
Fixes a potential infinite loop reported by Vlad Tsyrklevich found via the
"joern" tool. I'm pretty sure the semantics of proto_tree_add_item would have
prevented this, but not 100% and making it explicit doesn't hurt.

Bug: 11037
Change-Id: I92049a95d23ca9c233b3fd830637e6bca19a7434
Reviewed-on: https://code.wireshark.org/review/7592
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-03-10 15:53:39 +00:00
Stefan Metzmacher 5a1b32b769 packet-spnego: fix krb5_cfx_wrap without encryption
We need to use rrc, as the checksum is likely to be
rotated before the plaintext payload.

For now we only handle the two common cases
rrc == 0 and rrc == ec...

Ping-Bug: 9398
Change-Id: I548f2f0650716294b6aeb361021be6e44ae8f1b3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-on: https://code.wireshark.org/review/7271
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-10 13:01:42 +00:00
Stefan Metzmacher ea0e4892e9 packet-ldap: use the correct tvb to report the SASL wrapped payload
Ping-Bug: 9398
Change-Id: I163d3dc99562b3388470c58d05e2d4d2e2f6d00c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-on: https://code.wireshark.org/review/7477
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-10 13:00:56 +00:00
Charles Nepveu d2b9a4b170 Add Video Services over IP (VSIP) dissector.
Took the original patch from bug 5116 and made the dissector "human readable".

Bug: 5116
Change-Id: Ic5cc35f919865bc84ee8a3d0589f498ef13e8f6f
Signed-off-by: Michael Mann <mmann78@netscape.net>
Signed-off-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-on: https://code.wireshark.org/review/7605
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
2015-03-10 11:36:20 +00:00
Michael Mann 082d03d2b7 Add support to display unsigned integer "field type" in hex.
Ping-Bug: 10318
Change-Id: Idb8790681cda901788df10fc1484179001bbb35c
Reviewed-on: https://code.wireshark.org/review/7566
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-10 10:00:59 +00:00
AndersBroman 1e3840e40c [GTPv2] Dissect ULI Timestamp.
Change-Id: If257831315423e5654cbbc3f6af99703cfad7f90
Reviewed-on: https://code.wireshark.org/review/7614
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-10 09:57:13 +00:00
Alexis La Goutte e9a4010630 ICMP(v4): fix Found soft-deprecated APIs (tvb_length,tvb_length_remaining)
Change-Id: Ib79a55d4f2459119feff29aa06dc8eda8bea6954
Reviewed-on: https://code.wireshark.org/review/7608
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-10 07:30:01 +00:00
Alexis La Goutte 296bb23697 ui uitls (Qt): fix parameter 'val' not found in the function declaration [-Wdocumentation]
Change-Id: I5fb1afca4b412697c56d80a8eb7be4140cd9420f
Reviewed-on: https://code.wireshark.org/review/7612
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-10 07:21:25 +00:00
Alexis La Goutte d36c2ad77b CMakeLists: fix indent (use tabs)
Change-Id: If1a0a7dbe85eada1926eb278d973ddd1c55becda
Reviewed-on: https://code.wireshark.org/review/7613
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-10 07:19:10 +00:00
Pascal Quantin 8ec6ab68fa ETSI CAT: upgrade dissector to v12.2.0
Change-Id: Ifd5f901aa3856e5469f213c4c63c53f3d8f1b4c8
Reviewed-on: https://code.wireshark.org/review/7611
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-09 22:24:54 +00:00
Gerald Combs 44dbae72ba ProtoTree: Fix crashes.
Don't dereference a null pointer. Remove g_assert()s copied from ui/gtk.
This fixes problems mentioned in bug 11044 but not the bug itself.

Change-Id: Iab75ab5cc6a184c8145a094b1c529a634e3c1c0d
Ping-Bug: 11044
Reviewed-on: https://code.wireshark.org/review/7610
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-09 21:33:29 +00:00
Richard Sharpe ae8b538bdf Add dissection of the SMB2 FSCTL_SET_INTEGRITY_INFORMATION FSCTL based on
documentation on the MS website and a capture I have.

Still have to dissect FSCTL_GET_INTEGRITY_INFORMATION.

Change-Id: I17ada4daa479810d8d8512c7e7b8798bcb650081
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-on: https://code.wireshark.org/review/7587
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-03-09 20:35:45 +00:00
Jeff Morriss 5fbf88f8a5 Use the new request/response framenum hints.
Change-Id: Ic4a3750a55523a5cf8ea72002055ffea1f081dd1
Reviewed-on: https://code.wireshark.org/review/7565
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-03-09 16:11:08 +00:00
Alexis La Goutte 7c5fbdaebd Proto.c: fix no previous prototype for ... [-Wmissing-prototypes]
proto.c:8733:1: warning: no previous prototype for 'proto_tree_add_uint64_bits_format_value' [-Wmissing-prototypes]
proto.c:8812:1: warning: no previous prototype for 'proto_tree_add_int64_bits_format_value' [-Wmissing-prototypes]
proto.c:8861:1: warning: no previous prototype for 'proto_tree_add_boolean_bits_format_value64' [-Wmissing-prototypes]

Change-Id: Ic40ca6f32739b415a423fc978e8677d669a95867
Reviewed-on: https://code.wireshark.org/review/7509
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-09 05:36:21 +00:00
Dario Lombardo a242c09fba Small improvement in incomplete dissectors check.
This avoids logging "frame" as incomplete dissector.

Change-Id: Ifd32c4326fbe9e86d14c94e065b602ca45cb0a7e
Reviewed-on: https://code.wireshark.org/review/7390
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-09 05:34:28 +00:00
Alexis La Goutte bd64823e3f HTTP2: Update to libnghttp2 0.7.5
Change-Id: Idcaf31b177b387b4a7199c8e1a9f591e3bf8a58f
Reviewed-on: https://code.wireshark.org/review/7541
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-09 05:31:04 +00:00
Peter Wu 6bc138c87a Qt: fix heap use-after-free wrt. data sources
When a different packet is changed, the packet scoped memory for tvbuff
is freed before clearing data source tabs. This results in
heap-use-after free when resizeEvent is called as a result of clearing
tabs for data sources.

Avoid resize events by hiding the tabs.

Caught with ASAN:

    ==18816==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060004cd970 at pc 0x7fffebf46618 bp 0x7fffffffbb10 sp 0x7fffffffbb00
    READ of size 4 at 0x6060004cd970 thread T0
        #0 0x7fffebf46617 in tvb_captured_length epan/tvbuff.c:423
        #1 0x773062 in ByteViewText::updateScrollbars() ui/qt/byte_view_text.cpp:489
        #2 0x76f307 in ByteViewText::resizeEvent(QResizeEvent*) ui/qt/byte_view_text.cpp:197
        ...
        #24 0x9f2348 in ByteViewText::~ByteViewText() ui/qt/byte_view_text.h:46
        #25 0x9f23f5 in ByteViewText::~ByteViewText() ui/qt/byte_view_text.h:46
        #26 0x76b9d6 in ByteViewTab::clear() ui/qt/byte_view_tab.cpp:54
        #27 0x5de685 in PacketList::selectionChanged(QItemSelection const&, QItemSelection const&) ui/qt/packet_list.cpp:477
        ...

    freed by thread T0 here:
        ...
        #5 0x53d763 in cf_select_packet file.c:3827
        #6 0x5ddfa5 in PacketList::selectionChanged(QItemSelection const&, QItemSelection const&) ui/qt/packet_list.cpp:454
        #7 0x7fffe58ec980 (/usr/lib/libQt5Widgets.so.5+0x3bc980)
        #8 0x7fffe4d55dd6 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) (/usr/lib/libQt5Core.so.5+0x23fdd6)
        ...

Change-Id: I9c1c01398713389de58259d13ebbaddd2d6e5c52
Reviewed-on: https://code.wireshark.org/review/7589
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-08 21:56:42 +00:00
Peter Wu 758ee3dc89 Qt: fix use of uninitialized variable
Fixes error reported by UBSan:

    ui/qt/packet_list.cpp:537:13: runtime error: load of value 190, which is not a valid value for type 'bool'

The method is apparently called earlier for other timers, resulting in
an error on startup. Initialize rows_inserted_ to avoid warnings when
the event is triggered later.

Change-Id: Iad919d79264ff1c3c17c9458c869d584234fcd5d
Reviewed-on: https://code.wireshark.org/review/7575
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2015-03-08 21:54:52 +00:00
Pascal Quantin 27ff75c548 ULP/ILP: add dissection of MSISDN, MDN and IMSI numbers
Bug: 11038
Change-Id: If4602a8ad434c46ea7986eec566751f4bb667002
Reviewed-on: https://code.wireshark.org/review/7603
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-08 21:40:24 +00:00
Gerald Combs 54c301a0d6 Add the @2x expert indicators.
We currently load the expert indicator resources using an <img> tag.
According to QTBUG-36383 the @2x versions won't load unless you've built
with Qt 5.4.0 or later.

Change-Id: I003fd5d5f10e779f2e7ca6ba9fbb8e033df85b80
Reviewed-on: https://code.wireshark.org/review/7601
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-08 18:12:06 +00:00
Gerald Combs 29f7c7af7d Update the expert indicators.
Add @2x versions. Remove expert_ok. It appears to be unused.

Change-Id: If36f839f622e235334a4237a9c5424c15a9945bc
Reviewed-on: https://code.wireshark.org/review/7594
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-08 16:18:48 +00:00
Gerald Combs 87c0df36c8 Qt: Paint elided LableStack text by hand.
Change-Id: I9481598f59531c219a20209429e6ff876ba50cf0
Reviewed-on: https://code.wireshark.org/review/7591
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-08 16:16:30 +00:00
Gerald Combs cf5f2c90f7 [Automatic manuf, services and enterprise-numbers update for 2015-03-08]
Change-Id: I32655186b47b95923aa31426bc710e4838c8fc1e
Reviewed-on: https://code.wireshark.org/review/7598
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-08 15:05:59 +00:00
Martin Kaiser 1a572019fe Revert "[Qt translations] create the .qm files during the build"
This reverts commit 7d01a84d0e.

cmake doesn't get the dependencies right if the .qm files are gone
I'll work on this off-line and resubmit it as one commit rather than
trying to approach this step-by-step

Change-Id: Ibbd60163f910adbd571b3df2a980d64dbf1ea924
Reviewed-on: https://code.wireshark.org/review/7596
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2015-03-08 12:18:12 +00:00
Pascal Quantin fa2a15e673 TCP: let's pacify the OSX 10.5 x86 buildbot
Change-Id: Ie0655285d6e27b8a60ef5d2c4a970facac8cf4a9
Reviewed-on: https://code.wireshark.org/review/7585
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-07 19:59:54 +00:00
Martin Kaiser 7d01a84d0e [Qt translations] create the .qm files during the build
create the .qm files from the .ts files at compile time
for now, this works for autotools only

don't fail if Qt's lrelease tool is not available,
skip building the .qm files in this case

Change-Id: I869a6dc8220eb03e7ffc8bfdb2b6f3930f6cac72
Reviewed-on: https://code.wireshark.org/review/7460
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2015-03-07 18:26:12 +00:00
Pascal Quantin 9b19d9a5f8 TCP: remove what seems to be a useless volatile attribute
It allows to get rid of the following error when compiling with gcc 4.7.2:
variable 'plen' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]

Change-Id: I1a647a6de7ddd25136b76237914ee7c5a8c7fa0a
Reviewed-on: https://code.wireshark.org/review/7580
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2015-03-07 18:18:29 +00:00
Pascal Quantin 40fc0018ff GVSP: add an option to deactivate (a rather weak) heuristic dissector
Also add the ability to use "Decode As" function

Change-Id: I8be0ecd1d5d6b86d4aa9d69907e9216791be2ae0
Reviewed-on: https://code.wireshark.org/review/7577
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-07 17:50:56 +00:00
Peter Wu 56a903608c Qt: fix CPU hogging due to status bar
http://doc.qt.io/qt-5/qwidget.html#updatesEnabled-prop says:

    "Re-enabling updates implicitly calls update() on the widget."

This results in an infinite paintEvent series, hogging the CPU. Updating
the text twice does not seem to be a bad idea after all...

Change-Id: Id6cd733e68512f6963fc7d70d91859ca88ab8d38
Reviewed-on: https://code.wireshark.org/review/7581
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-07 16:55:57 +00:00
Pascal Quantin 1f00574320 GSM SMS: minor fixes to DELIVER, DELIVER REPORT and STATUS_REPORT dissection
Change-Id: I9bf3b0529e353ff9c2e936e75e86fffae17506fd
Reviewed-on: https://code.wireshark.org/review/7579
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-07 15:35:45 +00:00
Pascal Quantin 07d361010d LAPDm: set captured and reported lengths properly when building the tvb forwarded to subdissectors
Change-Id: I6ab6bfd90a70411703d2fa8b3ff5225cedb8d2fb
Reviewed-on: https://code.wireshark.org/review/7578
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-07 15:35:09 +00:00
Pascal Quantin 7a76e3d2e8 GVSP: fix gvsp.zonedirecton field registration
Change-Id: I1d53bf13c6692ee719a4fcfa55e3c5b1b67a893f
Reviewed-on: https://code.wireshark.org/review/7576
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-07 14:22:24 +00:00
Gerald Combs 9a5cd7d92b Fix the exec call and paths in the test wrapper.
Change-Id: Ie36e9c7dc9a60715248aea300cffde8040cb0768
Reviewed-on: https://code.wireshark.org/review/7574
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-07 05:04:32 +00:00
Guy Harris 5e67ae78ba Get rid of an unused structure member.
Change-Id: I2941bb7e6dc0fce3e1256af6e5e19d2997de5801
Reviewed-on: https://code.wireshark.org/review/7573
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-03-07 04:41:09 +00:00
Gerald Combs b6ecff700f Try adding "set -o igncr".
Maybe the test wrapper should be a Python script.

Change-Id: I38a5089c83ef643fb6c7c76acd599cef6aba39f4
Reviewed-on: https://code.wireshark.org/review/7572
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-07 04:31:02 +00:00
Gerald Combs 2d5255ec31 Add GenerateTestSh.cmake to the distribution.
Change-Id: I4cd6b91db7fa0202d6c1918feec9f34b819f09d1
Reviewed-on: https://code.wireshark.org/review/7571
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-07 03:22:08 +00:00
Gerald Combs acb62f1c7f CMake: Generate a wrapper for test.sh.
Create a wrapper script that cd's to the test directory and execs
test.sh. We need to handle build configurations so the path is a bit
roundabout.

Change-Id: I4c2a48c041bce2479422830110b1251b3f2c5a94
Reviewed-on: https://code.wireshark.org/review/7570
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-07 02:02:19 +00:00
Gerald Combs 394d23ed7b Qt: Automatic scrolling shouldn't select the last packet.
If packet_list_moveto_end does anything it should scroll, not select. Make
it a no-op for the time being.

Change-Id: I149815c8f9e50e95a4a77b91b7582c44eed6db4b
Ping-Bug: 10601
Reviewed-on: https://code.wireshark.org/review/7564
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-06 20:21:22 +00:00
Dario Lombardo 5da569345d jsmn: bugfix in jsmn_parse() (found by clang).
Change-Id: Id5a9888a3e17c861a9de06343bd99ec0c4aacdce
Reviewed-on: https://code.wireshark.org/review/7555
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-06 19:48:00 +00:00
Pascal Quantin 9ca58d7807 MBIM: add request/response visual indicators
Change-Id: I5f4ce93bb5b164fb8b75c0acf7dd8825663110b8
Reviewed-on: https://code.wireshark.org/review/7556
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-03-06 14:05:31 +00:00
Evan Huus 9c2b593dc8 alljoyn: more robust signature handling
There were two bugs in the handling of all-joyn struct signatures:
 - we were advancing the pointer without decrementing the length remaining
 - we were not checking for the string's null-terminator (which is only
   necessary if the string is malformed, but that's entirely possible)

Bug: 11028
Change-Id: I38b98cf3f43681f709846e3cb9068d20c4fdce82
Reviewed-on: https://code.wireshark.org/review/7552
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-06 12:15:27 +00:00
Dario Lombardo ebc47e4cde slarp: added reliability field + expert info
Change-Id: Ic288c429b69b858be77a9de1c571cc65a6e49b81
Reviewed-on: https://code.wireshark.org/review/7520
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-06 12:09:00 +00:00
Michal Labedzki 2e8639d64b Bluetooth: ATT: Add request/response visual indicators
Use feature for visual tracking request/response on Packet List.

Change-Id: Iabe2ddf46425ebd586ec462140b3f7d8f7ebbf56
Reviewed-on: https://code.wireshark.org/review/7525
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
2015-03-06 09:20:05 +00:00
Gerald Combs df8b1a0154 Qt: Fix a couple of resource leaks found by Coverity.
Change-Id: Ic3156d8afc2fa237407f3893c34672b1306866fa
Reviewed-on: https://code.wireshark.org/review/7420
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-03-06 04:05:26 +00:00
Alexis La Goutte 49b8f99449 bthfp: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ic87f34d793bdddb3843dd8007231a70d5d08d6c6
Reviewed-on: https://code.wireshark.org/review/7539
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-03-06 04:04:09 +00:00
Peter Wu 4ca3dbae94 tcp: support variable-length tcp_dissect_pdus
Originally suggested by Bill Meier for the MQTT protocol[1], but the
Websocket protocol can also benefit from this. Since
DESEGMENT_ONE_MORE_SEGMENT is a valid packet length, use the zero length
instead as an indicator that the length is not yet known.

Updated documentation too and remove the function documentation from
packet-tcp.c since it is duplicated in packet-tcp.h.

A noteworthy WSDG change is that the get_pdu_len parameter of
tcp_dissect_pdus gained another void pointer since
v1.99.2rc0-890-gceb8d95 ("Lua: Expose tcp_dissect_pdus() to Lua").

 [1]: https://www.wireshark.org/lists/wireshark-dev/201405/msg00044.html

Change-Id: I4eba380e00cd757635eb5639c2857356dae3171e
Reviewed-on: https://code.wireshark.org/review/7279
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-03-06 04:02:00 +00:00
Guy Harris 554c8fd7ca Reflect wsutil changes.
Change-Id: Iecffc41714c6ffe67eaa954d85cb664aba5c143e
Reviewed-on: https://code.wireshark.org/review/7551
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-03-06 00:43:56 +00:00