Commit Graph

57669 Commits

Author SHA1 Message Date
Michael Mann 9721a2a509 Add section to README.dissector about dissector tables
Bug: 8985
Change-Id: I9245fb556a55da681fe53dd5c12bb549c83c89c6
Reviewed-on: https://code.wireshark.org/review/7926
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-04-08 04:22:11 +00:00
Michael Mann 1858b81e7b Remove RTAC Serial preference that doubled for Decode As.
Just use Decode As directly.

Change-Id: Iab03a6ff8a70c3c6b0406f426e622eb52bb34ba7
Reviewed-on: https://code.wireshark.org/review/7902
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-08 02:49:07 +00:00
Michael Mann 7ca04728c3 Remove MPLS preference that doubled for Decode As.
Just use Decode As directly.
Also replace "registered" dissectors which just the creation of a handle since the dissectors really don't need to be "found" outside of themselves.

Change-Id: I1e0c3ae784b71c0145b1f1730a97feae8e9f488f
Reviewed-on: https://code.wireshark.org/review/7899
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-08 02:48:54 +00:00
Michael Mann 3ab3158700 Add proper "Decode As" mechanism for FLIP payload instead of (many) preferences.
Other cleanup with FLIP dissector while in the neighborhood.

Change-Id: I0ecdea447979b0ba508a8bb84bd67e4eb4b32a70
Reviewed-on: https://code.wireshark.org/review/7896
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-08 02:48:35 +00:00
Gerald Combs cec99abac9 Win32: Restore the versioned plugin installation path.
Revert parts of g2ef72cb and g7710da4 so that the NSIS installer once
again places plugins in $INSTDIR\plugins\$VERSION. This matches the
behavior of Autotools and previous Windows installers, and reduces the
chances of a version mismatch if the user happens to install a custom
plugin.

Leave the development plugin path unversioned. Leave the extcap path
unversioned for now.

Change-Id: I861d4ee12975fba4b642e391871c5e852d92a2fe
Reviewed-on: https://code.wireshark.org/review/7976
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-07 23:01:40 +00:00
Pascal Quantin 461666bcd1 Qt: fix maximized state apply
Preferences are not loaded yet when we call MainWindow::loadWindowGeometry()
Anyway, prefs.gui_geometry_save_maximized should only be checked when saving preferences (MainWindow::saveWindowGeometry() method) like what we do in GTK UI

Change-Id: I8eb01a5f4f7672fbf5846bc576584e28f72d5e31
Reviewed-on: https://code.wireshark.org/review/7978
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-07 21:03:18 +00:00
Graham Bloice 69a435bb08 Add zlib compilation to CMake on Windows
Modify CMake to compile zlib, removing need for an nmake compilation
of zlib before running CMake.

Change-Id: I63cead55b14d6a2e22b1b6a8536eaf9260e21231
Reviewed-on: https://code.wireshark.org/review/7864
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
2015-04-07 20:51:26 +00:00
Alexis La Goutte 77f87b7a01 Byte view tab (Qt): Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Remove unused bmask variable

Change-Id: I44613f1d949dbaf8e559b3bfb2196609d821c4f3
Reviewed-on: https://code.wireshark.org/review/7496
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-07 18:34:38 +00:00
Pascal Quantin f467009815 ATM: add a cast to pacify the OSX 10.5 x86 buildbot
Change-Id: I2bff621b46b4811cf60ebaff8fca7429bed3a91e
Reviewed-on: https://code.wireshark.org/review/7973
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-07 15:32:59 +00:00
Herwin Weststrate 1df34d9a9c Typo fix in manpage of editcap
Positve => Positive

Change-Id: I09190b44783d8b7f4e8e90208d8a82d192a6a189
Reviewed-on: https://code.wireshark.org/review/7971
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-07 15:26:08 +00:00
Bill Meier d3f2d8ce4f ieee80211.c: "IEEE 802.11 plus Network Monitor radio header" encap: Fix dissection
Specifically: Management/Control frames saved by Microsoft Netmon (3.4?)
with "IEEE 802.11 plus Network Monitor radio header"  encapsulation
may or may not be saved with an FCS.

See Bug 11105.

Fix: Use "check fcs" preference to specify whether Management & Control
frames have an fcs for this encapsulation.

Change-Id: Ibd0be7b4765c2df2b959cb2234aeed027266246b
Reviewed-on: https://code.wireshark.org/review/7939
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-07 15:23:25 +00:00
Alexis La Goutte 9e724f7645 802.11: don't not showing all 11k subelement fields
Missing break for Measurement Report tag

Ping-Bug:11101
Change-Id: I570088f1eed756d541be74539774295eb67c2d47
Reviewed-on: https://code.wireshark.org/review/7969
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-07 13:40:47 +00:00
Alexis La Goutte 862b16b3d3 SGSAP: fix indent (use 4 spaces)
Change-Id: I0c649d0a799817dea66ad297d47f9f22fdaa32c9
Reviewed-on: https://code.wireshark.org/review/7968
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-07 12:33:57 +00:00
AndersBroman f762de07d4 [SGSAP] Use the subtree for MCC MNC.
Change-Id: I9913fb0d92193723e8e83a58e0d76782b3d20204
Reviewed-on: https://code.wireshark.org/review/7967
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-04-07 12:13:40 +00:00
AndersBroman f8838c3dca [SGSAP] Add dissection of TMSI based NRI container and
Selected CS domain operator.

Change-Id: I7c9c089588848a44e1454803b767ac79c07d197f
Reviewed-on: https://code.wireshark.org/review/7964
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-04-07 11:21:59 +00:00
Sunil Mushran 8d59ead600 Add OCFS2 dissector.
Bug: 5553
Change-Id: If297036b6d7a7afe163d97b05bc4a319d6cf2e97
Reviewed-on: https://code.wireshark.org/review/7949
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-07 11:20:06 +00:00
Stig Bjørlykke a49e5523d0 DMP: Handle encoded 7bit string as binary.
This bug was introduced when rewriting tvb_get_string() to
handle encoding (and thus handling ASCII string different).

Change-Id: Ia37a9d075fb58c8d6c26af811e96f7ca1e82af3d
Reviewed-on: https://code.wireshark.org/review/7962
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2015-04-07 06:58:52 +00:00
Michael Mann 0a729d8d66 Revert "Don't rescan packets when a display filter is added if we are capturing without "Updating list of packets in real time". There are no displayed packets to filter!"
This reverts commit a11f7a7548.

Change-Id: If3ae617c8e35439d0a77d2a2ded50288e2e6f5d7
Reviewed-on: https://code.wireshark.org/review/7961
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-07 03:09:29 +00:00
Michael Mann 0eb4dfe23c Add proper "Decode As" mechanism for AAL2 instead of preference.
Also create dissector table for AAL5 subdissectors.  This isn't identified as a "Decode As" need, but now the conversion should be easier if that becomes needed.

Change-Id: Ie70318991874de9ef8d95a2853dfceb3c0b94a00
Reviewed-on: https://code.wireshark.org/review/7894
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-07 01:27:17 +00:00
Michael Mann a11f7a7548 Don't rescan packets when a display filter is added if we are capturing without "Updating list of packets in real time". There are no displayed packets to filter!
Bug: 6217
Change-Id: Ie4a90ff8a738d6c970d51598bf14b4b51ea069ce
Reviewed-on: https://code.wireshark.org/review/7918
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-04-07 01:16:26 +00:00
Guy Harris 3a87a32a57 See if this squelches warnings when compiling without libpcap.
Change-Id: I29441ff47365e302b0ef6dfd54e94f4bf1def08a
Reviewed-on: https://code.wireshark.org/review/7958
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-06 22:45:55 +00:00
Guy Harris ba0b348d28 Show a count in the status bar for all captures.
(I'd have said "for non-update-list-of-packets-in-real-time captures",
but that's too long for the holy Git "first line of the commit message
is a summary" rule.)

For non-update-list-of-packets-in-real-time captures, show a packet
count in the status bar.

Change-Id: I31670770e3772e9f772f0c9a6438fc6d053560aa
Reviewed-on: https://code.wireshark.org/review/7957
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-06 21:56:49 +00:00
Gerald Combs ec8ed1511a Use zlib 1.2.8 on Windows.
Change-Id: I3df88b1e891f43cd6b6ed089f6c3d20a942e68bc
Reviewed-on: https://code.wireshark.org/review/7952
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-06 21:34:10 +00:00
Guy Harris 0ef2fd5d53 Reset the captured-packet count when we start or restart a capture.
Bug: 6217
Change-Id: I916e9a6fdb0e114d5f8f123153c213af9273bbc3
Reviewed-on: https://code.wireshark.org/review/7954
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-06 21:07:58 +00:00
Julien STAUB 8fec18a0b6 zigbee: enhance zigbee illuminance cluster dissection
value displayed wasn't in lux

Change-Id: Id0c48c9a7968639e47d81e128c22c6cdcb3df929
Reviewed-on: https://code.wireshark.org/review/7945
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-06 19:41:04 +00:00
Gerald Combs 9147961908 Add a warning about Chocolatey's Wget package.
Its CA certificate configuration appears to be incomplete. Recommend
Cygwin's instead.

Change-Id: I0e7ddbfbb2a37f2872a820442e2d185f20ef551e
Reviewed-on: https://code.wireshark.org/review/7948
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-06 19:28:49 +00:00
Guy Harris 1871fb2b0d Keep a captured-packet count in a capture_session and use that.
Have the count in a cfile_t structure always reflect the actual number
of packets that have been read from the file, rather than, when doing a
non-update-list-of-packets-in-real-time capture, falsely increasing the
count in the cfile_t to reflect the number of packets captured but not
yet read.

Have the status bar base its captured-packet count on the count in the
capture_session structure, and base the "sorry, no packets were
captured" message on the count in the capture_session structure, as
we're no longer using the count in the cfile_t structure to count
anything in the process of a non-update-list-of-packets-in-real-time
capture.

That way, we preserve the invariant that the "frames" member of a
cfile_t will be non-null if the "count" member is non-zero, fixing bug
6217.

It also means we can get rid of cf_set_packet_count(), as we only set
the count in the capture-file-reading code.

Bug: 6217
Change-Id: I72c0e2c07c30782bad777995370b7c19e1460cc2
Reviewed-on: https://code.wireshark.org/review/7950
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-06 19:15:24 +00:00
Evan Huus b23ab904e7 unistim: remove tvb_length deprecated API
Change-Id: Ic2bdc6ec69dcdd856987ec74cc401cd8585727ac
Reviewed-on: https://code.wireshark.org/review/7937
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-04-06 17:17:56 +00:00
Evan Huus 6efa0b63f2 profinet: remove tvb_length deprecated API
Change-Id: Ie6f607d86235c0e2d4fc95f77a7500c1636da934
Reviewed-on: https://code.wireshark.org/review/7936
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-04-06 17:17:52 +00:00
Evan Huus c1e6a19f27 ethercat: remove deprecated tvb_length API
Change-Id: I76916948fc06c5a4df5a1188fde164d516b4105d
Reviewed-on: https://code.wireshark.org/review/7938
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-04-06 17:17:47 +00:00
Robert P 686d3ef1a8 PKCS1: fix a typo for OID 1.3.132.0.35
Bug: 11106
Change-Id: Ied414b8e0bae8f34445f4d36bc6dfcc96b4a7456
Reviewed-on: https://code.wireshark.org/review/7941
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-06 16:52:08 +00:00
Guy Harris bfd3d269e2 Show a list of interfaces on the welcome screen when capturing.
In a non-update-list-of-packets-in-real-time capture, once the capture
starts, put up a message on the welcome screen indicating on what
interfaces we're capturing, rather than leaving the "waiting for stuff
to arrive from dumpcap" message up.

Make some routines not used outside main_welcome.c static while we're at
it.

Change-Id: I461dd1333d3fa2b64f20310f7b77b45578f9b40d
Reviewed-on: https://code.wireshark.org/review/7942
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-06 08:01:28 +00:00
Guy Harris d4bfa9c43b Have a common routine for constructing strings listing interfaces.
We have a bunch of duplicated code to make those lists; make a common
routine for that.  (dumpcap currently doesn't use it, as the routine in
question uses a routine in libui, which dumpcap doesn't use.  We should
probably fix that.)

Change-Id: I9058bf3320d420b8713e90743618972da1d1c6ed
Reviewed-on: https://code.wireshark.org/review/7934
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-05 23:43:01 +00:00
Guy Harris 24af6eeeea Pop the welcome screen message when we close a file.
That fixes a bug where the welcome screen gets stuck at "Waiting for
capture input data..." if you do a non-update-list-of-packets-in-real-
time capture, stop the capture, and close the capture.

Change-Id: Ia77900707c6287e091a1acd2a6640462e0e4fb37
Reviewed-on: https://code.wireshark.org/review/7931
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-05 22:13:45 +00:00
Guy Harris fd510bef34 Give the welcome screen its own set of callbacks.
Don't have the status bar code know about the welcome screen; instead,
give the welcome screen its own callbacks, so that it can modify the
welcome screen as appropriate.

Change-Id: Id38d66edeaea085f114b47d6361312450435b58a
Reviewed-on: https://code.wireshark.org/review/7927
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-05 20:02:20 +00:00
Martin Kaiser afe9b9bbaf fibre channel: remove some unnecessary if(tree) checks
Change-Id: Id55fcaa49d5ae46af2c26c7c641f6440335ca225
Reviewed-on: https://code.wireshark.org/review/7925
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2015-04-05 16:34:53 +00:00
Gerald Combs d4c8dca5d3 [Automatic update for 2015-04-05]
Update manuf, services enterprise-numbers, translations, and other items.

Change-Id: If98edeab7a413c33e54fbd579e975da26993a380
Reviewed-on: https://code.wireshark.org/review/7922
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-05 16:13:53 +00:00
Pascal Quantin 837948dc5c NAS EPS: remove proto_tree_add_text calls
Change-Id: Ib66a37c31df5da5c93dc7087528bb92d0ffec67e
Reviewed-on: https://code.wireshark.org/review/7920
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-05 15:58:44 +00:00
Gerald Combs f90699c676 Don't commit translation updates for now.
Doing so conflicts with the weekly update script.

Change-Id: I3ffbe9cbae9b8efdc8369de2054d9f8b8a8d5c5e
Reviewed-on: https://code.wireshark.org/review/7921
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-04-05 15:56:30 +00:00
Evan Huus 4c5b53f044 docsis: remove tvb_length calls
Change-Id: Ib35c6436876aa7f933dcec0a97a70ccbbc823905
Reviewed-on: https://code.wireshark.org/review/7913
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-04-05 12:27:40 +00:00
Evan Huus 32d0fc0673 irda: remove tvb_length calls
Change-Id: I5ea9ed7226217ab272d957ae3240a286c6a26de9
Reviewed-on: https://code.wireshark.org/review/7912
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-04-05 12:27:34 +00:00
Michael Mann 8699bc2858 Remove epan member from PacketWinData and just use cfile.epan when redissecting a packet window.
A pointer to cfile.epan was saved by the window when it's created, but any redissection will remove the epan_session used by cfile.epan underneath the window, so let's just use cfile.epan directly.

Bug: 11043
Change-Id: Ie6b85708025f8ab7d5e5dc48ad99fee0931af472
Reviewed-on: https://code.wireshark.org/review/7915
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: Guy Harris <guy@alum.mit.edu>
2015-04-05 06:55:58 +00:00
Guy Harris 8327921a32 Fix another capture_dev_user_pmode_find() call.
Missed by the previous commit.

Change-Id: I0882e2cf7a734f93e59dbfd1aab564a2fd65d316
Reviewed-on: https://code.wireshark.org/review/7917
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-04 21:43:53 +00:00
Guy Harris c67bc03355 Let capture_dev_user_pmode_find() say "not found".
"Not found" is different from "found, and false".  Have it return a
boolean "did I find the property" indication and, if it did, supply the
property value through a pointer.

Change-Id: Iaa942ea346410b35e512ff1a3821cbf60c88dfd6
Reviewed-on: https://code.wireshark.org/review/7916
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-04 21:03:34 +00:00
Alexis La Goutte 666f9bcfda dumpcap: fix no previous prototype for ‘is_linux_bonding_device’ [-Wmissing-prototypes]
Change-Id: If0c07232f92fab03f5312a932b925156d53bda4e
Reviewed-on: https://code.wireshark.org/review/7909
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-04-04 17:48:55 +00:00
Martin Kaiser 2b7f87587c change several (mutually exclusive) if statements into one big if-else
Change-Id: Ib3614431c3ff8f6e53fa0993e296ffea70926d03
Reviewed-on: https://code.wireshark.org/review/7911
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2015-04-04 17:18:28 +00:00
Martin Kaiser e4da62fefe Coverity 1158848, 1158849 (logically dead code)
the option parameter of output_fields_set_option() is always a
0-terminated string
therefore, option_value can't possibly be NULL, remove the NULL checks

if someone runs 'tshark ... -E header=', option_value is an empty
string, bail out in this case, don't parse *option_value and
*(option_value++) in the switch statements

Change-Id: I734b04aff653e8dbe990f546220595546e7503b0
Reviewed-on: https://code.wireshark.org/review/7904
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2015-04-04 17:09:02 +00:00
Alexis La Goutte f1803dbbb7 Add update-tx tools (Resync translation between repo and Transifex)
Change-Id: Ica2902fbc8a089b3b877b00c1fd72397f2c08146
Reviewed-on: https://code.wireshark.org/review/7314
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-04-04 17:06:20 +00:00
Alexis La Goutte 71eda00ad1 GSM: fix no previous prototype for 'de_sm_re_attempt_ind' [-Wmissing-prototypes]
Change-Id: Iaf4c01f659f9c0eed8615e77d0eab81724b44385
Reviewed-on: https://code.wireshark.org/review/7908
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-04 15:47:02 +00:00
Alexis La Goutte 38a5fceefc GSM: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: If10a9902c231b87995562fd0c687a25dcab3e250
Reviewed-on: https://code.wireshark.org/review/7910
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-04-04 15:45:59 +00:00