Commit Graph

50808 Commits

Author SHA1 Message Date
Martin Mathieson f9abd6f9e0 Fix compilation for when HAVE_LIBGCRYPT is not defined
svn path=/trunk/; revision=54162
2013-12-16 23:21:31 +00:00
Guy Harris 7851e21345 Fix compiler warnings.
svn path=/trunk/; revision=54161
2013-12-16 23:08:09 +00:00
Guy Harris e4a880b819 Get rid of unused variable.
svn path=/trunk/; revision=54160
2013-12-16 23:00:58 +00:00
Guy Harris 8bbff418d3 Fix typo in formatting string (%%s should be %s).
Mark unused argument as such.

svn path=/trunk/; revision=54159
2013-12-16 22:43:10 +00:00
Guy Harris 068008f04f Use proto_tree_add_item() in preference to fetching the string and
adding it with proto_tree_add_string().  Use tvb_get_string_enc() rather
than tvb_get_unicode_string() to fetch strings.

We assume a UTF-16 encoding for all "Unicode" strings.

Use tvb_strsize() and tvb_unicode_strsize() to get the lengths of
null-terminated strings.

Get rid of unused ett_nt_unicode_string variable.

svn path=/trunk/; revision=54158
2013-12-16 22:39:41 +00:00
Michael Mann 54c272466f ANSI A-interface enhancements. Bug 9471 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9471)
From Michael Lum:
1. Allow mobile ID and service option to be shown in the INFO line for various messages.
2. proto_tree_add_text -> proto_tree_add_item conversions.

From me:
1. Even more proto_tree_add_text -> proto_tree_add_item conversions.

svn path=/trunk/; revision=54157
2013-12-16 21:39:44 +00:00
Bill Meier 09ce0cf43c From Peter Lemenkov:
"This patch removes misleading dereferencing operator from the
  array's name. E.g. consider the following declaration:

  guint32 ipaddr[4];

  ipaddr points to the address of an array of guint32's, while &ipaddr
  points to the first' guint32 object. E.g. &ipaddr == &ipaddr[0]. The
  value is the same, but has different type which is necessary
  sometimes. However inet_pton treats latest argument as void*, and
  this information is left anyway. So no need to bother with types and
  let's just pass pointer to the array."

  https://bugs.wireshark.org/bugzilla/attachment.cgi?id=12304

From me: Remove dereferencing operator from 'ipaddr' in two calls to
         wmem_memdup().

svn path=/trunk/; revision=54156
2013-12-16 20:38:20 +00:00
Bill Meier 0afeb2ae95 Change editor modelines value for 'indent-tabs-mode' from 'true' to 't'
so emacs doesn't complainab 'unsafe value'.

svn path=/trunk/; revision=54153
2013-12-16 20:22:50 +00:00
Martin Mathieson 94b225a3ab Now calling function that will decipher payloads, if possible, and return a new tvb. Actual deciphering still to come...
svn path=/trunk/; revision=54149
2013-12-16 18:53:14 +00:00
Bill Meier d2e947f442 Fix alignment issue in GTK2 flowgraph "packet choice" window.
(Issue reported by Alexis Lagoutte).

##Backport 1.10

svn path=/trunk/; revision=54148
2013-12-16 18:44:04 +00:00
Martin Kaiser 71b281ae8c when the default character table is used,
don't add af hf entry with len 0 to the tree
add a text element instead

svn path=/trunk/; revision=54145
2013-12-16 16:49:37 +00:00
Michael Mann b71335c699 Fix PGN value computation
svn path=/trunk/; revision=54144
2013-12-16 16:32:51 +00:00
Martin Mathieson c1a20e5300 Reorganise main dissection function to that sequence analysis is done before signalling data payload
svn path=/trunk/; revision=54143
2013-12-16 15:03:41 +00:00
Martin Mathieson e78173d830 Look up key (now by UEId, not RNTI) and display in security tree where known.
svn path=/trunk/; revision=54142
2013-12-16 11:47:04 +00:00
Martin Mathieson 74d627dfae Add configuration of UE keys (by RNTI). Still to show and use this info...
svn path=/trunk/; revision=54141
2013-12-16 11:18:53 +00:00
Martin Kaiser a6a53d250d no need for if(tree)
svn path=/trunk/; revision=54140
2013-12-16 10:10:29 +00:00
Martin Kaiser 9e5143f1a7 TABs -> spaces, add editor modelines
svn path=/trunk/; revision=54139
2013-12-16 10:06:09 +00:00
Martin Kaiser a1defaa4e2 From Wesley
fix "decode as" for time protocol
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9563

svn path=/trunk/; revision=54138
2013-12-16 08:20:22 +00:00
Anders Broman df30bf95ea Make local functions static.
svn path=/trunk/; revision=54137
2013-12-16 06:03:17 +00:00
Anders Broman 2363dd4e68 Make local functions static.
svn path=/trunk/; revision=54136
2013-12-16 05:56:42 +00:00
Jakub Zawadzki c45475ab45 Fix [-Wmissing-prototypes]
svn path=/trunk/; revision=54135
2013-12-15 23:44:12 +00:00
Guy Harris 59dddc25ec In dissect_ndr_byte_array(), use the field index from the dcerpc_info
structure, rather than a fixed field.  Get rid of that fixed field, as
it's no longer needed.

Use dissect_ndr_byte_array() rather than dissect_ndr_char_cvstring() in
a case where we have an opaque byte array.

Have dissect_ndr_cvstring() and dissect_ndr_vstring() - and, therefore,
routines that call them, such as dissect_ndr_cstring(),
dissect_ndr_char_cvstring(), dissect_ndr_char_vstring(), and
dissect_ndr_wchar_vstring() - require that the field being used by an
FT_STRING field.  Manually fix a case where the PIDL generator makes
such a field FT_NONE rather than FT_STRING.  Also handle EBCDIC, just in
case we happen to see a packet with EBCDIC strings.

Use tvb_get_string_enc(), rather than tvb_get_unicode_string() or
tvb_get_string(), in dissect_ndr_cvstring() and dissect_ndr_vstring().

svn path=/trunk/; revision=54134
2013-12-15 19:48:15 +00:00
Martin Kaiser afc0d8af03 use ISO 8859-5 for DVB-SI
svn path=/trunk/; revision=54133
2013-12-15 19:19:30 +00:00
Martin Kaiser a07c0ff146 add support for ISO 8859-5
svn path=/trunk/; revision=54132
2013-12-15 19:13:31 +00:00
Alexis La Goutte 93594d61b2 Upgrade to HTTP2 draft-09
Add HTTP2 to Decode as

svn path=/trunk/; revision=54131
2013-12-15 19:07:40 +00:00
Alexis La Goutte c00a12652f Fix warning found by doxygen
svn path=/trunk/; revision=54130
2013-12-15 19:07:26 +00:00
Alexis La Goutte aae72004b3 Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
svn path=/trunk/; revision=54129
2013-12-15 19:07:09 +00:00
Martin Kaiser 9f22d3a558 improve DVB-SI string handling
new function dvb_add_chartbl() adds a tree entry for an encoding
use FT_BTYES as type for encoding hfs
string hfs for DVB-SI strings must have STR_UNICODE, not BASE_NONE
make dvb_string_encoding_vals[] internal to dvb_chartbl.c

svn path=/trunk/; revision=54128
2013-12-15 18:38:35 +00:00
Alexis La Goutte 9ce9b10645 From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9542
Enhancements for SEL Fast Message Dissector

Additional functionality for SEL Fast Message dissector:
- Optional CRC16 validation for Fast SER messages that use those footers.  Use built-in Wireshark functions to complete this
- Handle Fast Meter messages with scale factors present in the configuration message.  Required some additions to the fm_conversation struct
- Some small cleanups for margins and comment locations.

From me :
- Fix some encoding field
- unused variable...

svn path=/trunk/; revision=54127
2013-12-15 16:36:25 +00:00
Alexis La Goutte ee08b65a20 Fix build with CMake (Missing dvb_chartbl.c...) Fix indent also in Makefile.common
svn path=/trunk/; revision=54126
2013-12-15 16:28:57 +00:00
Alexis La Goutte 57ed8b42e1 From Fabio Tarabelloni via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9544
Zbee ZCL Identify dissector duplicated

The packet-zbee-zcl.c contains duplication of ZCL Identify cluster dissector, already developed in packet-zbee-zcl-general.c file

svn path=/trunk/; revision=54125
2013-12-15 16:17:36 +00:00
Alexis La Goutte fea47a354f Make checkAPI happy
Error: hf_zbee_beacon_router_capacity: FT_BOOLEAN with a bitmask must specify a 'parent field width' for 'display' in packet-zbee-nwk.c
Error: hf_zbee_beacon_end_device_capacity: FT_BOOLEAN with a bitmask must specify a 'parent field width' for 'display' in packet-zbee-nwk.c

svn path=/trunk/; revision=54124
2013-12-15 16:17:22 +00:00
Alexis La Goutte c58f388fe3 From Peter Lemenkov via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9558
Mark generated fields as generated in RTPproxy dissector

This patch is cosmetic. It just marks generated fields as generated (to avoid confusion)

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

svn path=/trunk/; revision=54123
2013-12-15 16:17:08 +00:00
Alexis La Goutte 5c7c8e3886 From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9546
PSK stream does not get decrypted with other TLS streams

Fix PSK decryption with keylog file

Session IDs may be empty (length zero). Currently, these sessions are
still stored in the session cache which is quite useless as is is very
likely that multiple TLS streams have no Session ID in their Hello
messages. This causes the wrong premaster secret to be restored when the
ClientHello is dissected (via dissect_ssl3_hnd_hello_common).

In the PSK case, this will prevent the SSL keylog file from being
consulted. When processing the ClientKeyExchange, the
ssl_generate_pre_master_secret function is called to set the pre-master
key... but this does not happen when ssl.psk is not available. In this
case, the PMK that was restored in ClientHello is used. This results in
faulty dissection.

RSA does not have this problem because it always tries to use the
private server key (and falls back to the keylog file).

This fix prevents empty session IDs from being stored with a PMK,
making the dissector use the keylog file for PSK.

svn path=/trunk/; revision=54122
2013-12-15 16:16:54 +00:00
Alexis La Goutte 1c85671ed2 From Niels de Vos via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9557
Add support for dissecting Gluster/NFS file handles

The nfs dissector has support for dissecting several types (depending on the NFS-server) of file-handles. GlusterFS/NFS can not be dissected yet

svn path=/trunk/; revision=54121
2013-12-15 16:16:38 +00:00
Evan Huus f247647c9b Add a MIN() to avoid reading past the end of a buffer in LDSS. Caught by
valgrind fuzzing.

svn path=/trunk/; revision=54120
2013-12-15 15:52:15 +00:00
Gerald Combs 971f1a187d [Automatic manuf, services and enterprise-numbers update for 2013-12-15]
svn path=/trunk/; revision=54117
2013-12-15 15:03:42 +00:00
Martin Kaiser f98af2794b remove a line that sneaked in from some tests
svn path=/trunk/; revision=54116
2013-12-15 12:51:33 +00:00
Michael Mann 9818914d78 Create separate dissection functions for TCP and UDP.
svn path=/trunk/; revision=54115
2013-12-15 12:48:12 +00:00
Jakub Zawadzki 2c015bb386 Fix some const/ not const warnings.
svn path=/trunk/; revision=54114
2013-12-15 12:35:00 +00:00
Martin Kaiser db1b70f168 as requested, move the functions/defines for DVB character tables
to separate files

svn path=/trunk/; revision=54113
2013-12-15 12:05:50 +00:00
Michael Mann d6b2fb11a2 proto_tree_add_xxx -> proto_tree_add_item
svn path=/trunk/; revision=54112
2013-12-15 02:56:29 +00:00
Guy Harris 35606f34db Fix a cut-and-pasteo.
svn path=/trunk/; revision=54111
2013-12-15 01:10:47 +00:00
Gerald Combs 465e4664de Use "(void) <variable/>" to avoid unused variable warnings similar to
Qt's Q_UNUSED macro.

svn path=/trunk/; revision=54110
2013-12-14 23:44:25 +00:00
Jakub Zawadzki 62d05c80ff Fix some warnings
svn path=/trunk/; revision=54109
2013-12-14 22:07:26 +00:00
Jakub Zawadzki 4120d74965 sock diag netlink: dissect requests, stub for 'padding dissection'.
svn path=/trunk/; revision=54108
2013-12-14 21:04:49 +00:00
Bill Meier defd185efa Rework code slightly to prevent VS Code Analysis warning:
C6326: Potential comparison of a constant with another constant

svn path=/trunk/; revision=54107
2013-12-14 19:26:06 +00:00
Gerald Combs 02eea9378e More shorten-64-to-32 warnings.
svn path=/trunk/; revision=54106
2013-12-14 19:23:34 +00:00
Guy Harris 478f83dd2a Use proto_tree_add_item() rather than fetching a string an adding it, if
possible.  If (possibly) not possible, use tvb_get_string_enc() rather
than tvb_get_unicode_string().

svn path=/trunk/; revision=54105
2013-12-14 19:11:21 +00:00
Bill Meier 81a67cec58 Fix (I think) VS Code Analyzer warnings:
C6297: Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value.
   Results might not be an expected value


svn path=/trunk/; revision=54104
2013-12-14 18:50:23 +00:00