Commit Graph

30970 Commits

Author SHA1 Message Date
Alexis La Goutte a0722e3b9a GTP: Fix Dereference of null pointer found by Clang analyzer
Change-Id: Idfa4d114f39c3fe9a84f9b551488127c51aa66aa
Reviewed-on: https://code.wireshark.org/review/13621
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Gloria Pozuelo <gloria.pozuelo@bics.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-02-02 08:25:31 +00:00
Alexis La Goutte 90d63e37ba frame: Fix Dereference of null pointer found by Clang analyzer
Change-Id: I37323975c1fa4ba5c08afb73d72159c7c36fdb9a
Reviewed-on: https://code.wireshark.org/review/13623
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-02 05:28:45 +00:00
Alexis La Goutte 130ea46be5 QUIC: fix some display field typo...
Change-Id: I5dbfe657db29b131b2ed5c6233becbc4f328157f
Reviewed-on: https://code.wireshark.org/review/13645
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-02 05:25:21 +00:00
Alexis La Goutte f3b660dab0 proto.c: fix indent (use tabs)
Change-Id: I1ebd31a694fde845e1ca4e125c1ed31bda7c00a8
Reviewed-on: https://code.wireshark.org/review/13646
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-02 05:23:13 +00:00
AndersBroman f80e9df793 Create an extended converstaion hastable taking more address information
into consideration.
This makes it possible to differentiate between packets on different
vlans and can be expanded to handle tunnels.

Change-Id: Id36e71028702d1ba4b6b3047e822e5a62056a1e2
Reviewed-on: https://code.wireshark.org/review/13637
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-02 05:15:55 +00:00
Guy Harris 872f8b4582 Add to the Info column for the stuff in COTP CR and CC PDUs.
Change-Id: I581ce1e670c3e1e13a871d3111335e3647165d49
Reviewed-on: https://code.wireshark.org/review/13658
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-02 05:02:14 +00:00
Guy Harris c599cd7b0b Add proto_tree_add_item_ret_string() routine.
It adds string-type fields to the protocol tree and returns the value of
the string.

Add the new bitmask-adding routines to the Debian symbol list while
we're at it.

Change-Id: Idaeec44c9cd373588cadce85010f3eaf1f3febb5
Reviewed-on: https://code.wireshark.org/review/13657
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-02 04:57:28 +00:00
Guy Harris 8294e773b0 Quick fix for the build.
(The routing token/cookie needs to be dissected better.)

Change-Id: I33464a846cda711aa430ba8f71dfe1959de3b7f9
Reviewed-on: https://code.wireshark.org/review/13651
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-01 23:51:39 +00:00
Guy Harris 4a5a96c277 Get rid of unused redundant OSI COTP dissector.
packet-ositp.c is more complete and is what's used, so we don't need
packet-x224.c.

Change-Id: Id3409d7b2af0e4ecbc64c74bb6d1ed9ea8f31738
Reviewed-on: https://code.wireshark.org/review/13650
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-01 23:35:48 +00:00
Guy Harris 0969953812 Remove trailing whitespace.
Change-Id: I3a684d47fe0263dc1453eab85704e725bab673a5
Reviewed-on: https://code.wireshark.org/review/13649
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-01 23:22:01 +00:00
Guy Harris b9fb2ceb88 Add heuristic dissectors for the variable part of COTP CR and CC PDUs.
Add tables for heuristic dissectors, and add dissectors for the stuff
Microsoft puts there for RDP; they're violating the COTP spec, but I
guess they're stuck because they're using TP0, which doesn't support
user data.

While we're at it, add variants of proto_tree_add_bitmask() and
proto_tree_add_bitmask_flags() that return the bitmask, for use by
callers.

A side-effect of the change is that the proto_tree_add_bitmask routines
no longer treat the encoding as a Boolean, so we have to pass
ENC_LITTLE_ENDIAN or ENC_BIG_ENDIAN, not just some non-zero or zero
value.  Do so.

Rename ositp_decode_CC() to ositp_decode_CR_CC(), to note that it
decodes both CR and CC PDUs.

Bug: 2626
Change-Id: If5fa2a6dfecd9eb99c1cb8104f2ebceccf1e57c2
Reviewed-on: https://code.wireshark.org/review/13648
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-02-01 23:20:12 +00:00
Pascal Quantin 2bf4b357b1 PIM: fix IPv4/IPv6 filters using the same name for different address type
Bug: 12061
Change-Id: I42828e1f87abebd6d9a4f893ff28aa50ca7ccbff
Reviewed-on: https://code.wireshark.org/review/13640
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: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-02-01 18:36:19 +00:00
Francesco Fondelli c7798d608c BGP: Link-State extensions for Segment Routing as per
draft-gredler-idr-bgp-ls-segment-routing-ext-01

Bug: 12060
Change-Id: I53c837ac5c195bdee716a48d8494633b663e751d
Signed-off-by: Francesco Fondelli <francesco.fondelli@gmail.com>
Reviewed-on: https://code.wireshark.org/review/13579
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-02-01 17:48:45 +00:00
Pascal Quantin 24fb4c50c7 LTE RRC: add system info modification for eDRX UEs in info column
Change-Id: I8041bf74c37665f1fd70f0d8c39157e09f79d96c
Reviewed-on: https://code.wireshark.org/review/13638
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-02-01 17:21:01 +00:00
Stig Bjørlykke 8e5272a969 IP: Don't check length if in a ICMP error packet
Change-Id: I5fd81aec13655b9c53df9f0002441c3afc51c6e9
Reviewed-on: https://code.wireshark.org/review/13597
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2016-02-01 16:38:21 +00:00
Alexis La Goutte 98fc6c6cd1 btatt: Fix Dereference of null pointer found by Clang analyzer
Change-Id: I3c55af73ba989080cf6dfe206d25a6d4923ac7f1
Reviewed-on: https://code.wireshark.org/review/13622
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-02-01 13:33:43 +00:00
Roland Knall 927ffaa794 extcap: Add Save functionality to options dialog
This patch creates the functionality of saving all parameters
for extcap devices in the general preference section.

For now, multiselect and fileselect do not save their values
but patches for this will be provided in the future

Also, all preferences are stored as strings to make handling
easier. This might change in the future, but for the first version
it will stick.

Restore to Defaults is not implemented as of yet, and will be
in a future version, once the preference storing is finalized

Bug: 11666
Change-Id: I178346405146d2e43f4f3481c05c92c0b3595af5
Reviewed-on: https://code.wireshark.org/review/13451
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
2016-02-01 12:12:41 +00:00
Gerald Combs 26a24ba6c6 [Automatic update for 2016-01-31]
Update manuf, services enterprise-numbers, translations, and other items.

Change-Id: I7e8ade92cce819240ee8e40cfc63363185d9d944
Reviewed-on: https://code.wireshark.org/review/13625
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-31 16:05:55 +00:00
Peter Wu 543908bcdf aim: allow SSL decryption
Very weak form of heuristics has been added based on the FLAP id byte,
but disabled by default. Make it possible to use this protocol in the
RSA keys list dialog.

Bug: 11990
Change-Id: I61f24ae9679c738194393bed0d012d2a752171b2
Reviewed-on: https://code.wireshark.org/review/13195
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-31 13:51:58 +00:00
Pascal Quantin 4fc7423da0 RLC LTE: upgrade dissector to v13.0.0
Change-Id: Ibe4586925ffe49f5aaab72956c40e123855a1a1e
Reviewed-on: https://code.wireshark.org/review/13620
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>
2016-01-31 12:55:28 +00:00
Pascal Quantin 27ff4ac18d RLC LTE: fix dissection of RLC AM PDUs with odd number of 15 bits LI
There is no padding in that case

Change-Id: Ib0ce37c4fea76435b4cedfbd7d3d72420e4860eb
Reviewed-on: https://code.wireshark.org/review/13618
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-31 10:27:33 +00:00
Alexis La Goutte 89fdae44e9 CAPWAP: fix indent typo
Change-Id: Iae736048a17d2aae75f7ec7dcc516e86aa05f6bc
Reviewed-on: https://code.wireshark.org/review/13574
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-31 01:21:53 +00:00
Alexis La Goutte 60a752eed6 LCSAP: fix indent (use 2 spaces and add modelines)
Change-Id: I2aa1a2d0e20cca6c979d51135e7fe9ea7a084847
Reviewed-on: https://code.wireshark.org/review/13609
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-31 01:21:07 +00:00
Xavier Brouckaert 1b481f31b1 Fixed Cisco Vendor IDs in IKEv2 dissector.
Change-Id: Idb8fce8fae1b2b580f9ca7a9c71e430bfa7dfb44
Reviewed-on: https://code.wireshark.org/review/13606
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-31 01:19:04 +00:00
Alexis La Goutte 9769fd64a2 CIP: fix no previous prototype for 'dissect_segment_network_production_inhibit_us' [-Wmissing-prototypes]
Change-Id: Ic23b26f87f38db0a40213ce7c954c8618dc966eb
Reviewed-on: https://code.wireshark.org/review/13610
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-31 01:17:16 +00:00
Pascal Quantin 18afa39e52 MEGACO: fix dissection of packets
Bug introduced in g841f636

Bug: 12059
Change-Id: I02a33f95baf2670fb491c951ba85a1bacdeb6386
Reviewed-on: https://code.wireshark.org/review/13613
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: Michael Mann <mmann78@netscape.net>
2016-01-31 01:14:48 +00:00
Luke Mewburn d6caaaab6c gsm_map: decode SRISM v1 and v2 result
Fix decoding of sendRoutingInfoForSM (SRISM)
application contexts version 1 and version 2.
Use a (slightly modified) version of the ASN.1 from
  ETS 300 599: December 2000 (GSM 09.02 version 4.19.1), clause 14.7.6
which has LocationInfoWithLMSI that is incompatible with
application context version 3 in
  3GPP TS 29.002 version 3.20.0 Release 1999, clause 17.7.6.

Bug: 9622
Ping-Bug: 9704
Change-Id: Icc9a0a1743a6eb4c907f4cab3fb2137db139ad74
Reviewed-on: https://code.wireshark.org/review/13572
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-29 14:58:30 +00:00
Pascal Quantin 4842e4b303 RoHC: fix an assert when dissecting partially an IR-DYN packet
Change-Id: Ibcb0a109a38524481bc8639bc73ab73acd07ca1a
Reviewed-on: https://code.wireshark.org/review/13598
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-29 12:34:08 +00:00
Gloria Pozuelo 9a72f8d444 GTP session ID generated tree item for tracking GTPv1 sessions
Change-Id: I9192a58a9ec6676b2cba0f30bb45b4eaa8d82655
Reviewed-on: https://code.wireshark.org/review/11577
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>
2016-01-29 12:33:48 +00:00
Martin Kaiser 4588a2bd2f tds: don't THROW() an exception from a dissector
return the error to the caller, exit the loop and the dissection...

Change-Id: Iba64a5d5e4f79bc33c2b1c91b937c9726e15a802
Reviewed-on: https://code.wireshark.org/review/13587
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2016-01-29 08:37:01 +00:00
Guy Harris 72a9a43933 Add A-MPDU reassembly information to the radio metadata.
Change-Id: I338e7fb60ff62d1d26ca0b32468ada4294d52d8d
Reviewed-on: https://code.wireshark.org/review/13594
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-29 07:56:28 +00:00
Pascal Quantin 25ee6cb841 LCSAP: improve dissection
- add PLMN info in a subtree
- dissect Horizontal Accuracy
- dissect Vertical Accuracy
- dissect IMSI

Bug: 12054
Change-Id: Ic069d78f23fcf956e4aa5eb19f4d39af0f529757
Reviewed-on: https://code.wireshark.org/review/13585
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>
2016-01-28 22:56:45 +00:00
João Valverde 265a41e14d autotools: Don't use "user variables" to set build flags
GNU coding standards recommend against it and automake is designed
around it.

This allows overriding the global build flags using AM_CFLAGS, etc.,
or per object flags, something that is difficult or impossible currently
because of automake precedence rules.

Change-Id: I3f1ea12e560af5a46b2f04b342b1882bbf123f12
Reviewed-on: https://code.wireshark.org/review/13455
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-28 18:13:48 +00:00
Luke Mewburn 936e4e0123 correctly decode GSM_MAP invoke SRISMv1
The decoding of application context version 1
SendRoutingInfoForSM (SRISM) invokes (added in bug 9704)
had issues:
- The ASN.1 for RoutingInfoForSM-ArgV1 in GSMMAP.asn
  lacked teleserviceCode and the extension marker.
  ETSI ETS 300 599 (GSM 09.02 version 4.19.1) clause 14.7.6
  has teleserviceCode and the extension marker, but not cug-Interlock.
  Clause C.6.4 mentions that cug-Interlock has been deleted,
  but it's retained here for decoding backwards compat.
- The test for which application_context_version to decode as
  didn't work when that value was 0 (i.e. missing).

Ping-Bug: 9704
Change-Id: I8a8170d959347a47413cfd9876022e9182256452
Reviewed-on: https://code.wireshark.org/review/13571
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-28 08:32:05 +00:00
Peter Ross eeae61bc93 packet-simple: SIMPLE dissector
Change-Id: Ia3fc0a959c4f5930bd5ab2b58065f55dcec407de
Reviewed-on: https://code.wireshark.org/review/13409
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-28 05:19:19 +00:00
Gerald Combs e57bb1919c Make Qt UI capture filter behavior more closely match the GTK+ UI.
If the user enters a capture filter in the Capture Interfaces dialog and
presses "Start", make sure we copy the filter to the main welcome
screen.

Back out capture filter code from g0ce9ac4. Leave out the code that set
the global capture filter. Move the code that set individual capture
filters to the welcome screen.

Fix multiple interface selection in the welcome screen.

Rename allFilterComboBox in the capture interfaces dialog to
captureFilterComboBox to match the main welcome screen.

If the user starts typing in captureFilterComboBox, make sure the
"Capture Filter" column is visible. Update the "Capture Filter" column
as the user types. Conversely, if the user edits the "Capture Filter"
column, update captureFilterComboBox accordingly.

If we're editing a per-interface filter make sure we commit its contents
before starting capture.

Map our device index directly to each tree item instead of using a
separate map which will no longer be valid any time our sort order
changes (which we do right away in our constructor).

Don't set prefs.capture_devices_filter in the Qt UI. The GTK+ UI doesn't
and doing so can lead to surprising behavior. Note that it's mostly
unused.

Note that we don't multiple selected filters very well.

Ping-Bug: 11886
Change-Id: I3c052f4f464411e2fb8fb7d96b218e1ce2bac3fd
Reviewed-on: https://code.wireshark.org/review/13410
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-27 16:13:19 +00:00
Tomofumi Hayashi 841f636dc0 Add Authentication Header (AU) support for MEGACO packet.
RFC3015 indicates that megaco packet may have AuthenticationHeader, 'AU', as
 + appendix A.2 ASN.1 syntax specification, and
 + appendix B.2 ABNF specification.

Currently wireshark does not decode MEGACO packet with AU because
wireshark just gives up to decode at AU field, although the data
following AU field is possible to decode.

This fix inspects the MEGACO packet for AuthenticationHeader and skip it
if it exists. In further enhancement, it will be shown as appropreate format.

Bug: 12051
Change-Id: Ibcea8554a4079a687584b84164b2a4d177dca7f4
Reviewed-on: https://code.wireshark.org/review/13559
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-27 15:39:09 +00:00
Branislav Makan 5225100609 Added dissector for Paging and Service Information (186) IE.
Change-Id: I175b48373f881238f938dd62c0d7f32c7c973387
Reviewed-on: https://code.wireshark.org/review/13550
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-27 13:25:21 +00:00
AndersBroman 9d71ca2293 Use find_or_create_conversation().
Change-Id: I4344a0ebdd6eb4c8cf2a54d3bd48056ecadef4a2
Reviewed-on: https://code.wireshark.org/review/13551
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-27 11:35:00 +00:00
Peter Wu 884795e60f wslua: do not free TVB for data sources
Bug: 12050
Change-Id: If094f78f683776ba2ea3ddd848ec9018cba064b8
Reviewed-on: https://code.wireshark.org/review/13554
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-27 09:25:39 +00:00
Peter Wu f96c56103b ssl: enable "decryption" without keys for NULL ciphers
NULL ciphers have their content in plaintext which can be dissected.
When the keys are available, decryption and MAC validation works as
usual. When the master secret cannot be found, continue anyway in case
of NULL ciphers.

Change-Id: I1ba6de6333fad58cabc757544490cddca7d82e26
Ping-Bug: 4652
Reviewed-on: https://code.wireshark.org/review/13536
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-27 09:19:34 +00:00
Michael Mann 850f5d3be0 Remove the deprecated column types so users don't think they still exist.
Bug: 11559
Change-Id: I51836dc9a4fa399835c7bdabcba577ebd40327ad
Reviewed-on: https://code.wireshark.org/review/13538
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: Anders Broman <a.broman58@gmail.com>
2016-01-27 07:54:24 +00:00
Дмитрий Цветцих 0b7583b370 vuze-dht: show network coordinates instead of binary data
Vuze used Vivaldi. It is decentralized network coordinate system.
Vivaldi contains 3 coordinates of an Euclidean space + 1 coordinate
of predicted error.

Change-Id: I8c4b4d64534675d1dfb9d35a03a61d2336fc0e6d
Reviewed-on: https://code.wireshark.org/review/13547
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: Anders Broman <a.broman58@gmail.com>
2016-01-27 07:52:40 +00:00
D. Ulis 59bdb4bcb6 CIP: Add support for all defined segment types
Add support for the following segment types:
1. Port: Extended
2. Logical: Service ID
3. Logical: Extended
4. Symbolic: ASCII, Extended String, including: Double-byte, Triple-byte, Numeric (USINT, UINT, UDINT)
5. Network: Extended
6. Network: Production Inhibit Time in Microseconds

Bug: 12049
Change-Id: I31b269c28c0101205cbc02f858de47106b9e7373
Reviewed-on: https://code.wireshark.org/review/13552
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-27 03:36:37 +00:00
Peter Wu c1832a8358 wslua: fix memleak on error path of Tvb:bytes()
Delay allocation of a GByteArray to avoid a memleak on errors.

Change-Id: I2b2ae6d33407500e81a4f45b86ef82720d3443a4
Reviewed-on: https://code.wireshark.org/review/13553
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-01-26 21:36:06 +00:00
Pascal Quantin 2d1b5167ce PDCP LTE: upgrade dissector to v13.0.0
Change-Id: Iae4a38ac7b80978d1ad02168e79c0fe0bffd8d2e
Reviewed-on: https://code.wireshark.org/review/13549
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>
2016-01-26 15:55:02 +00:00
Alexis La Goutte 581b93781b color_filter(.h): Fix The following parameters of ... are not documented
Part 2 (oups forget to save before commit)

Change-Id: I186596d6c6e3838fc86794638f50f115b270d230
Reviewed-on: https://code.wireshark.org/review/13548
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-26 13:32:49 +00:00
Alexis La Goutte 31e4958c73 cell_broadcast(.h): fix api reference
The following parameters of dissect_umts_cell_broadcast_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) are not documented:
  parameter 'data'

Change-Id: I4cd2a41f62ca99fc7aaa5d95049abd5662e50940
Reviewed-on: https://code.wireshark.org/review/13544
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-26 09:09:00 +00:00
Alexis La Goutte bbb84a5aa3 color_filter(.h): Fix The following parameters of ... are not documented:
parameter 'err_msg' or parameter 'add_cb'

Change-Id: Iea43833de7bbb12ce16c3363d26f70a2859e092c
Reviewed-on: https://code.wireshark.org/review/13543
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-26 09:08:23 +00:00
Alexis La Goutte 0cc17787d6 api ref (wmem_interval_tree): fix end of file while inside a group
Change-Id: I68fbe85a8a7e3f0181fc84151fa8f58c459fd46a
Reviewed-on: https://code.wireshark.org/review/13542
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-26 09:07:46 +00:00
Peter Wu 0ff957aede dns,spdy,ssl-utils: fix export PDU
Dissectors registered with SSL must be registered for Export PDU to
work properly. Otherwise the dissector name could be NULL, resulting
in a capture file that cannot properly be dissected.

Add an assertion to ssl-utils to catch this situation. Note that this
results in an "wmem_alloc: assertion failed: (allocator->in_scope)"
report because these functions are possibly called in the protocol
handoff routines... Can be fixed later.

The DNS dissector is fixed by merging the UDP/TCP dissectors into a
single dns handle which recognizes TCP and then assumes the length
prefix if TCP.

Change-Id: If73b9b09a4682d66fb8fa026c42a3475648f9bf1
Reviewed-on: https://code.wireshark.org/review/13194
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-25 23:16:02 +00:00
Peter Wu 0f5bed39fe ssl: fix RSA key matching with Client certs
Avoid a RSA private key lookup for client certificates, the RSA private
key is only valid for the server certificate. The lookup based on the
client cert resulted in overwriting the server match.

Bug: 12042
Change-Id: I60aa79f8f2b941bfde032e20ab11446ae4e6c81b
Reviewed-on: https://code.wireshark.org/review/13530
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-01-25 21:05:30 +00:00
AndersBroman 6bd7e928c0 TDMoP Dont register UDP port 0 or Ethertype 0.
Change-Id: I7e724a6390fbe75993c8663c8c43937a40d8250d
Reviewed-on: https://code.wireshark.org/review/13528
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-25 18:33:02 +00:00
Peter Wu a7c025fd14 Fix missing validation (crash) for certain prefs
The gui.layout_type preference is part of the Layout submodule (which is
part of the gui module. The Layout submodule has a special apply
callback that validates its prefs. These validations were never called
though because the prefix is "gui" and as a result that module would be
marked as changed.

Fix this crash by calling the validation function on the submodules
instead holding the pref, not its parent.

Change-Id: I2a49dce93fdc7fab4ab3dc52dad90288c2d17434
Reviewed-on: https://code.wireshark.org/review/13154
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-01-25 18:16:14 +00:00
AndersBroman b2bd03c178 [skinny] pinfo->fd-num changed to pinfo->num
Change-Id: Icf512fb1d4a211632fc307434f9036b68bb0b8cb
Reviewed-on: https://code.wireshark.org/review/13527
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-25 12:01:40 +00:00
Pascal Quantin 8ffa274729 MAC LTE: upgrade dissector to v13.0.0
Change-Id: I1a0e575acc83b88d595111809ca03e4bdf479619
Reviewed-on: https://code.wireshark.org/review/13516
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: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-25 06:36:40 +00:00
Guy Harris 099698445b Move the proto data stuff out of frame_data.[ch].
It's not tied to the frame_data structure any more, so it belongs by
itself.

Clean up some #includes while we're at it; in particular, frame_data.h
doesn't use anything related to tvbuffs, so don't have it gratuitiously
include tvbuff.h.

Change-Id: Ic32922d4a3840bac47007c5d4c546b8842245e0c
Reviewed-on: https://code.wireshark.org/review/13518
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-25 02:24:34 +00:00
Pascal Quantin 2ff6ae9732 Fix reassembly test broken by gbc5a037
Change-Id: I8bcde5fd5039b77eccd9327cb7f0558b4fdedc36
Reviewed-on: https://code.wireshark.org/review/13515
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-24 17:37:29 +00:00
Gerald Combs 107d681e8f [Automatic update for 2016-01-24]
Update manuf, services enterprise-numbers, translations, and other items.

Change-Id: Iaac61b4a2f446b99d4600ae8ae56405ae6fb21da
Reviewed-on: https://code.wireshark.org/review/13512
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-01-24 16:05:55 +00:00
Guy Harris 35ecbaf5a7 More pinfo->fd->abs_ts to pinfo->abs_ts.
Change-Id: I15a187fd0e85ba41431ebbcf88168fca79b624cd
Reviewed-on: https://code.wireshark.org/review/13511
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-24 07:37:38 +00:00
Guy Harris 8e5dfa5905 More pinfo->fd->num to pinfo->num.
Change-Id: Ic56b1e9be4886be9985c4b7082fbd330dbf297df
Reviewed-on: https://code.wireshark.org/review/13510
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-24 03:47:23 +00:00
Guy Harris bc5a0374bf Add the packet number to the packet_info structure, and use it.
That removes most of the uses of the frame number field in the
frame_data structure.

Change-Id: Ie22e4533e87f8360d7c0a61ca6ffb796cc233f22
Reviewed-on: https://code.wireshark.org/review/13509
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-24 03:41:28 +00:00
Adam Goldman baea677290 Allow hex and octal values to be used in ranges
Change-Id: I896b945067c4325a29c41c23ad39486e356d9434
Reviewed-on: https://code.wireshark.org/review/13474
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-24 01:36:31 +00:00
Kevin Bracey 9eda2fa063 Set width of hex output according to bitmask
Output from BASE_HEX et al has always been zero-padded to according to
the field type - 8 digits for FT_UINT32, etc.

When the field has a bitmask, this is definitely not appropriate - the
field type is used to indicate the size of the bitfield container, and
tells us nothing about the size of this field.

Instead, determine the actual size of the field by inspecting the
bitmask, and output the corresponding number of hex digits.

Change-Id: I10ec4e93e1e40e8b1354d5368cc8945cf671a617
Reviewed-on: https://code.wireshark.org/review/13225
Reviewed-by: João Valverde <j@v6e.pt>
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-24 00:03:18 +00:00
Pascal Quantin dd46389485 ANSI A: get rid of a global buffer
Change-Id: Iba66af0b3dca683c3f9cf5497ddda46469cd4695
Reviewed-on: https://code.wireshark.org/review/13506
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: Anders Broman <a.broman58@gmail.com>
2016-01-23 23:13:46 +00:00
Guy Harris 48267465c8 More structure assignments for nstime_t.
Change-Id: I4d320b50d7d74b6fc423014c9611a60d49c6be02
Reviewed-on: https://code.wireshark.org/review/13503
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 08:05:37 +00:00
Guy Harris e119532e11 Set the pinfo time stamps based on the frame_data time stamps.
That takes into account any time-shifting that's been done.

Change-Id: Ib4c01e7b055f5ac2f1111bcbe946c6094dcb70ae
Reviewed-on: https://code.wireshark.org/review/13502
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 04:10:20 +00:00
Guy Harris a7f470fa24 More pinfo->fd->abs_ts to pinfo->abs_ts.
Change-Id: I70db0a345cc4c5c57c454371deb4f92f9ac4b9ac
Reviewed-on: https://code.wireshark.org/review/13501
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 03:58:56 +00:00
Guy Harris 9141bd9700 Add more fields to packet_info structure and use them.
Add fields for the absolute time stamp (and another field for a presence
flag for the absolute time stamp) and the packet encapsulation for the
packet.

This lets us remove the field for the packet encapsulation in the
frame_data structure; do so.

Change-Id: Ifb910a9a192414e2a53086f3f7b97f39ed36aa39
Reviewed-on: https://code.wireshark.org/review/13499
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 03:50:58 +00:00
Guy Harris 2fb43f3761 Use structure assignment for nstime_t.
Change-Id: Iab049e7708642a306764d80839bf0d5139889212
Reviewed-on: https://code.wireshark.org/review/13498
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 02:51:10 +00:00
Guy Harris f3713e288b Avoid inhaling fumes. Do not use near open flame.
Change-Id: I9040745b2878a9ba8a0677e19af6702c2a766ce2
Reviewed-on: https://code.wireshark.org/review/13496
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 02:05:44 +00:00
Guy Harris e406703c5f Fix handling of the byte order magic number.
Just treat it as an array of bytes.  When checking for whether it's a
pcapng file, also determine whether it's big-endian or little-endian.
Note that reading it in *host* byte order will tell you whether it's in
your byte order or byte-swapped; you have to know your byte order to
know whether that means little-endian or big-endian.

Have a #define for the byte-order magic number size, as all byte order
magic number values must be that size, and use that as the size of the
magic-number arrays.

Also use a #define for the SHB block type magic number.

Get rid of a now-unused expert info.  (If the magic number isn't
something we recognize, we don't treat the file as a pcap file, so it
can never be "unknown".)

Change-Id: Ic74cceac17d1490eb70a28f67cb4dbb512e031ac
Reviewed-on: https://code.wireshark.org/review/13494
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 01:15:54 +00:00
Guy Harris 5fecf1795e Get rid of now-unused expert info.
(If the magic number isn't something we recognize, we don't treat the
file as a pcap file, so it can never be "unknown".)

Change-Id: I7e8bac1ebd2cbfd6d603035428274a1098ff7544
Reviewed-on: https://code.wireshark.org/review/13491
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 01:00:31 +00:00
Guy Harris 3d570b5a39 Fix handling of the magic number.
Just treat it as an array of bytes.  When checking for whether it's a
pcap file, also determine whether it's big-endian or little-endian.
Note that reading it in *host* byte order will tell you whether it's in
your byte order or byte-swapped; you have to know your byte order to
know whether that means little-endian or big-endian.

Have a #define for the magic number size, as all magic number values
must be that size, and use that as the size of the magic-number arrays.

Handle nanosecond timestamp resolution while we're at it.

Change-Id: I4d83579d919ae9f15888afca14317631d413ca51
Reviewed-on: https://code.wireshark.org/review/13490
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23 00:41:15 +00:00
Guy Harris 9b8f5261f7 That warning is bogus; squelch it with an otherwise-unnecessary cast.
The compiler being used for the 64-bit OS X build is buggy; throw in an
otherwise-unnecessary cast to squelch its bogus warning.

Change-Id: Ie2104ba861493870191530ca391a089ca3951929
Reviewed-on: https://code.wireshark.org/review/13489
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-22 22:43:57 +00:00
Guy Harris e8d0d3763a Try to fix compiler warnings.
Parenthesize differently and, while we're at it, don't use the useless
gsize data type - C has had size_t since C89, use it.  gsize's only
purpose is to use in APIs defined to take gsize arguments.

Change-Id: I7d68273e7e0f0e71947d3505cb283bfa216fce03
Reviewed-on: https://code.wireshark.org/review/13488
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-22 22:00:41 +00:00
Guy Harris f78d7616b5 Fix DIAG_OFF() and DIAG_ON() calls.
DIAG_O{FF,N} take a warning flag name *without* the "W".

Change-Id: I00558e42804b9f2ec4e80fae7c739541880381ca
Reviewed-on: https://code.wireshark.org/review/13487
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-22 21:58:19 +00:00
Martin Kaiser fa0e87488f [iso14443] dissect two more components of the ATQB
Change-Id: I4fc1962a391549e880dcdf52dfa13a94d3568ea8
Reviewed-on: https://code.wireshark.org/review/13483
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2016-01-22 19:06:24 +00:00
Pascal Quantin 5f5f16021e GSM A DTAP: fix display of calling/called party BCD number in parent tree
Change-Id: I0a492d1c304c285b831f553158777843ad195c2d
Reviewed-on: https://code.wireshark.org/review/13481
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-01-22 18:44:28 +00:00
Pascal Quantin 7d6d893da3 GSM A DTAP: get rid of a global buffer
Change-Id: Icdd58960ca2673ea19b1005c47f3b06f1165caa2
Reviewed-on: https://code.wireshark.org/review/13482
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: Michael Mann <mmann78@netscape.net>
2016-01-22 18:26:08 +00:00
João Valverde c260640752 ISAKMP: Try to really fix implicit conversion warning on OSX 64 bit.
Change-Id: I2cfb58fdd076a474946c3a51e522307f103d9319
Reviewed-on: https://code.wireshark.org/review/13480
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-22 15:58:07 +00:00
João Valverde cadae1c8be ISAKMP: Fix implicit conversion to shorter type.
Change-Id: I6b3c20d3aa1ade39739cad560d9f27242a9c8a4a
Reviewed-on: https://code.wireshark.org/review/13479
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-22 15:28:32 +00:00
Michael Mann fc511c3f11 CIP: Add support for Get Attributes All
Get Attributes All is a predefined list of existing attribute IDs for a given class.  Add a new index for each attribute for their place in GetAttributesAll response. Then a hash table of classes for existing attributes are created to handle the GetAttributesAll service.

Added more TCP/IP object attributes since more have been added to the spec.
Moved TCP/IP object attributes all to ENIP dissector.

Bug: 11996
Change-Id: I7f50c9aadf04efdb17ef31f39e6a991c0a84bef2
Reviewed-on: https://code.wireshark.org/review/13186
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-22 12:37:15 +00:00
João Valverde db111c4d90 ISAKMP: Optimize loops
Change-Id: I2e7ae0c3d8cba4255dd725db39a02be8ecce94d8
Reviewed-on: https://code.wireshark.org/review/13469
Reviewed-by: João Valverde <j@v6e.pt>
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-22 11:57:04 +00:00
Trond Myklebust 9f5a0601a6 NFSv4.1 bugfixes
nfs: Fix up the SEQUENCE status flags
The SEQUENCE status flags are being displayed incorrectly (after the NFSv4
operations) due to being attached to the COMPOUND tree instead of the
SEQUENCE op's tree.

nfs/flexfiles: Ensure that we account for the layout_flags in the offset

nfs/flexfiles: Add a dissector for the optional layoutget "stats collect hint"
field

Change-Id: I8744254aa9f65a0b33510f2352875b01804149c2
Fixes: d892c32cc2 ("Eliminate proto_tree_add_text from packet-nfs.c")
Fixes: 79b88aacb6 ("nfs: Cleanup of FlexFiles Layout Type")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-on: https://code.wireshark.org/review/13477
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: Alexis La Goutte <alexis.lagoutte@gmail.com>
2016-01-22 07:06:30 +00:00
Pascal Quantin ed587b23a7 GSM SMS: add dissection of Special SMS Message Indication IE
Change-Id: I154c3b4c4ef7dd3a243c9df003df01807b45c095
Reviewed-on: https://code.wireshark.org/review/13475
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>
2016-01-21 22:15:39 +00:00
Stig Bjørlykke 77046c0c2d Qt: Add some window title variables
Add some variables to be used in custom window title.

%P = profile name
%V = version info

Change-Id: I049717432a4d3523b541bb4f6f882c75abc38ddb
Reviewed-on: https://code.wireshark.org/review/13419
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2016-01-21 18:22:05 +00:00
dsrsupport 32e4bd3500 ZigBee: ZBOSS v2 traffic dump dissector.
Added ZBOSS wpan traffic dump dissector.
ZBOSS stack has a debug feature: dump of traffic between stack logic and transceiver radio.
Traffic dump now has TI 25xx FCS format plus ZBOSS additions:
trace id, ZigBee channel, i/o direction.
This is new dissector implementation.

Change-Id: Ic442e73f86e0900eb729e85e31c698131c0028d5
Reviewed-on: https://code.wireshark.org/review/13435
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-21 17:17:31 +00:00
João Valverde 47443b2b87 Fix warning for epan/color-filters.c -[-Wcast-qual]
Change-Id: I99ec380c844c597d397ec5d261d6bddac8d1999b
Reviewed-on: https://code.wireshark.org/review/13449
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 15:23:35 +00:00
AndersBroman 40951bf32e [IP] IP fragment reassembly gets thrown off if there is the same packets
with different VLAN Ids in the trace in some cases.
Add VLAN Id to the ID used to identify fragments.
As discussed in https://code.wireshark.org/review/#/c/13452/ this may not
be a complete solution but fixes the emediate problem.

Change-Id: Id418304268d2bf4d0af863de11c4db02dc0854db
Reviewed-on: https://code.wireshark.org/review/13470
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-21 14:40:25 +00:00
AndersBroman dede3c826e Add VLAN ID to pinfo
I have traces where IP reassembly gets confused by multiple frames from
different VLANS and ends up adding fragments from differet messages
togeter after IP Identification is reused.
I think VLAN ID could be useful in other places too to aviliate duplicate
packet detection. Making this a separate patch while testing the usage.

Change-Id: Id7c23dc52f6de2e1f2e980ec8fe61d0598500d0d
Reviewed-on: https://code.wireshark.org/review/13452
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-21 13:56:55 +00:00
AndersBroman 2d6e044b8d Add a link for LINUX_SLL values.
Change-Id: Ic45f88984af01b9705ace944a89f49f705301d21
Reviewed-on: https://code.wireshark.org/review/13467
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-01-21 12:46:59 +00:00
Martin Kaiser c9db8c5a67 mrdisc: don't THROW() an exception from a dissector
in this case, we can just continue dissecting
proto_tree_add_item() will throw the exception for us if we
don't have enough data

Change-Id: I8c0bfa8eaff9119ae00e69601bf5f37501574044
Reviewed-on: https://code.wireshark.org/review/13462
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-21 03:08:53 +00:00
João Valverde 14c68a3631 Fix warning for funnel.c [-Wcast-qual]
Change-Id: Ib80b2f56ab76d72e89f6a0fbe2d0903d1029ed19
Reviewed-on: https://code.wireshark.org/review/13448
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:44:10 +00:00
João Valverde 0ced18c615 SDP: Fix warnings [-Wcast-qual]
Change-Id: Ie61cb44976afc27b700652da0d471a4c6711756d
Reviewed-on: https://code.wireshark.org/review/13446
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:41:01 +00:00
João Valverde 61be558eda XMPP utils: Don't cast away constness [-Wcast-qual]
Change-Id: Iba2d88a5d44c88d2e257435fa8881a2aab2af283
Reviewed-on: https://code.wireshark.org/review/13445
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:40:00 +00:00
João Valverde 502fd03a32 RPC: Fix warnings [-Wcast-qual]
Change-Id: I4a3b0ffd8b42c19e3f3687be6c62be56e9b76bdb
Reviewed-on: https://code.wireshark.org/review/13444
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:38:34 +00:00
João Valverde 5c1d504bf7 IMF: Don't declare 'imf_field' *name as const [-Wcast-qual]
Change-Id: I9b556a0a046c3f87bf908a0315fbf4a8c2b47ae7
Reviewed-on: https://code.wireshark.org/review/13441
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:35:43 +00:00
João Valverde 4dd3f668dc Avoid returning malloced memory as const [-Wcast-qual]
Change-Id: I0b2c03cbde963d13d07ef13284d85b922eec3be9
Reviewed-on: https://code.wireshark.org/review/13439
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:30:18 +00:00
João Valverde 770eb649d8 Add missing const qualifiers for packet-ssl.c [-Wcast-qual]
Change-Id: Idb7e3e1be3f876d5953b7dc667c7bc3feceff331
Reviewed-on: https://code.wireshark.org/review/13438
Reviewed-by: João Valverde <j@v6e.pt>
2016-01-21 02:26:49 +00:00