Commit Graph

50965 Commits

Author SHA1 Message Date
Stig Bjørlykke db3c476e6c Rewrote ProtoField_new to:
- Allow both string and integer for type and base (improve usability).
- Check valid base and mask for different types (avoid crashes).
- Remove ftypes.PROTOCOL from valid types.

This should fix bug #9549.

svn path=/trunk/; revision=54292
2013-12-20 13:33:48 +00:00
Martin Kaiser fe98b8ebc8 use STR_ASCII instead of BASE_NONE for strings
svn path=/trunk/; revision=54291
2013-12-20 13:23:13 +00:00
Martin Kaiser 217f7109cb don't assert if an FT_BYTES entry is empty
svn path=/trunk/; revision=54290
2013-12-20 13:17:24 +00:00
Guy Harris 198ce0b6c7 Fix indentation.
svn path=/trunk/; revision=54289
2013-12-20 10:30:57 +00:00
Guy Harris 1cf2e46426 bytes_to_hexstr_punct() does not add a null terminator, so we must add
it ourselves.

svn path=/trunk/; revision=54288
2013-12-20 10:08:35 +00:00
Stig Bjørlykke 2548f6ee2b Strip leading spaces in unknown-extension value.
svn path=/trunk/; revision=54287
2013-12-20 09:04:12 +00:00
Martin Kaiser f53f20513a fix
CC     packet-ecatmb.lo
packet-ecatmb.c: In function 'dissect_ecat_mailbox':
packet-ecatmb.c:877:64: error: 'info.anSdoInfoUnion.Entry.ValueInfo' may be used uninitialized in this function [-Werror=uninitialized]
packet-ecatmb.c:796:38: note: 'info.anSdoInfoUnion.Entry.ValueInfo' was declared here
packet-ecatmb.c:884:34: error: 'info.anSdoInfoUnion.Entry.Res.BitLen' may be used uninitialized in this function [-Werror=uninitialized]
packet-ecatmb.c:796:38: note: 'info.anSdoInfoUnion.Entry.Res.BitLen' was declared here


svn path=/trunk/; revision=54286
2013-12-20 08:57:17 +00:00
Pascal Quantin f48dde1444 Fix a "'str' may be used uninitialized in this function" error
svn path=/trunk/; revision=54285
2013-12-20 08:33:18 +00:00
Martin Kaiser 852d93afa7 comment out unused function
svn path=/trunk/; revision=54284
2013-12-20 07:57:02 +00:00
Martin Kaiser 1170be181b fix compilation without libgcrypt
svn path=/trunk/; revision=54283
2013-12-20 07:56:38 +00:00
Pascal Quantin f390e381e7 Fix time dissection broken in r54274
svn path=/trunk/; revision=54282
2013-12-20 06:55:56 +00:00
Anders Broman 350a207a22 Try to please the buildbot.
svn path=/trunk/; revision=54281
2013-12-20 06:50:46 +00:00
Anders Broman 5fbfa6c351 Fix [-Wmissing-prototypes]
svn path=/trunk/; revision=54280
2013-12-20 06:30:13 +00:00
Michael Mann f4ef031335 Make more items filterable courtesy of convert_proto_tree_add_text.pl
svn path=/trunk/; revision=54279
2013-12-20 02:13:02 +00:00
Pascal Quantin 56fa8467cd Try to please Clang-Code-Analysis buildbot
svn path=/trunk/; revision=54278
2013-12-19 22:55:16 +00:00
Pascal Quantin 6af6cd7089 Add out-of-band send_preamble event to UDP framing protocol
svn path=/trunk/; revision=54277
2013-12-19 22:40:49 +00:00
Michael Mann 704f759ee4 Makes "slot" filterable to pacify checkAPIs.pl
svn path=/trunk/; revision=54276
2013-12-19 22:18:30 +00:00
Michael Mann 1e29ff6699 proto_tree_add_text -> proto_tree_add_string to satisfy checkAPIs.pl
svn path=/trunk/; revision=54275
2013-12-19 22:05:07 +00:00
Michael Mann 959a290961 proto_tree_add_text -> proto_tree_add_xxx conversion.
svn path=/trunk/; revision=54274
2013-12-19 21:51:09 +00:00
Pascal Quantin d66bffb66e Add System Frame Number to UDP framing protocol and display it in info column
svn path=/trunk/; revision=54272
2013-12-19 21:40:38 +00:00
Evan Huus 6be37815a1 Add bytestring_to_str() which takes a wmem scope and is otherwise identical to
bytestring_to_ep_str (now deprecated). Use the new one in a few obvious places.

Also just print directly to the buffer when loading ethernet addresses for
resolution. The straight-to-buffer bytes_to_hexstr seems useful, maybe it
shouldn't be in a private header...

svn path=/trunk/; revision=54270
2013-12-19 20:53:44 +00:00
Bill Meier 1ed5971a72 Remove 'L' and 'LL' from constants; they are all used as 32-bit quantities.
#if 0 an unsed constant definition.

svn path=/trunk/; revision=54269
2013-12-19 20:52:56 +00:00
Bill Meier bc301c467d Add XXX comment as follows:
/* XXX: GINT_MAX is not defined so #if ... will always be false */
 #if (GINT_MAX >= (1LL << 32))
   ...
 #endif

Remove _U_ on several function parameters.

Do some very minor whitespace changes;
Add editor modelines.


svn path=/trunk/; revision=54268
2013-12-19 20:34:13 +00:00
Gerald Combs 82d0e1f669 Another try at marking the ws_sign_ext functions possibly-unused.
svn path=/trunk/; revision=54267
2013-12-19 20:16:31 +00:00
Bill Meier e2c5575e80 Cast result of strtol() to guint32;
svn path=/trunk/; revision=54266
2013-12-19 19:29:44 +00:00
Gerald Combs 67ceb469b3 Try to fix a warning found by, but not related to, the ABI check.
svn path=/trunk/; revision=54265
2013-12-19 19:12:25 +00:00
Pascal Quantin 771dc849f5 Update file forgotten in r54250
svn path=/trunk/; revision=54264
2013-12-19 18:58:31 +00:00
Chris Maynard 3dc77cefed Need to call ptvcursor_current_offset() BEFORE ptvcursor_free().
svn path=/trunk/; revision=54257
2013-12-19 17:48:58 +00:00
Martin Mathieson 4509ef242d Change types and add cast to try to please buildbot
svn path=/trunk/; revision=54256
2013-12-19 17:48:32 +00:00
Chris Maynard 725d85f002 Fix leaks where ptvcursor_free() wasn't being called.
svn path=/trunk/; revision=54255
2013-12-19 17:48:11 +00:00
Chris Maynard f756c9b2c4 Since we're always calling ptvcursor_new() now, always call ptvcursor_free().
svn path=/trunk/; revision=54254
2013-12-19 17:46:59 +00:00
Martin Mathieson 62393a672e Cope with spaces or dashes in security keys
svn path=/trunk/; revision=54251
2013-12-19 17:21:36 +00:00
Evan Huus 2ae8edccea Rename more to_str functions to have ep_ in the name if they return ephemeral
buffers. Remove two unused functions.

svn path=/trunk/; revision=54250
2013-12-19 16:28:39 +00:00
Evan Huus a6415ece0a Rename a couple of to_str functions to have ep_ in the name. This makes it
obvious that the returned string is ephemeral, and opens up the original names
in the API for versions that take a wmem pool (and thus can work in any scope).

svn path=/trunk/; revision=54249
2013-12-19 15:49:09 +00:00
Evan Huus b7ab4db210 Modelines and consistent indentation.
svn path=/trunk/; revision=54248
2013-12-19 15:27:44 +00:00
Stig Bjørlykke 3b73e8b479 Renamed new_TvbRange to push_TvbRange and use this when creating a new
TvbRange from a FieldInfo.

This should fix the crash in bug #9483.

svn path=/trunk/; revision=54247
2013-12-19 15:26:31 +00:00
Stig Bjørlykke 891b2372a0 Improved compressed user data handling.
svn path=/trunk/; revision=54246
2013-12-19 11:24:55 +00:00
Guy Harris 317b828986 Use proto_tree_add_item() or tvb_get_string_enc() instead of
tvb_get_unicode_string().  If there's an indication that the encoding is
UCS-2, use that, otherwise use UTF-16.  (For example, "BMP" stands for
"Basic Multilingual Plane", which is the part of Unicode that can be
encoded in 16 bits, hence UCS-2.)

In the description of the "Use Heuristics for UDP" preference for the
XML dissector, note that it's not just trying to recognize XML in UCS-2,
it's trying to recognize XML in *big-endian* UCS-2.

svn path=/trunk/; revision=54245
2013-12-19 09:19:33 +00:00
Guy Harris 4a346b7188 Use tvb_get_string_enc(), or proto_tree_add_item(), rather than
tvb_get_unicode_string() or g_iconv stuff.

svn path=/trunk/; revision=54244
2013-12-19 03:12:59 +00:00
Guy Harris 30129013b0 Use proto_tree_add_item() in cases where we don't actually look at the
value.

svn path=/trunk/; revision=54243
2013-12-19 02:41:27 +00:00
Jeff Morriss 6762f7e0c8 Some patches from Peter Harris:
[PATCH 1/5] X11 dissector: Sort declarations
This prevents pointless changes showing up in the diff when evaluating
unrelated changes to the generator.

See http://search.cpan.org/dist/perl-5.18.0/pod/perldelta.pod#Hash_randomization

[PATCH 2/5] X11 dissector: Silence warnings on perl 5.18, prevent 5.20
Perl 5.18 retroactively marked "given/when" experimental, with a
promise to remove or dramatically change it in 5.20.

Since there is no perl 5.20 yet, there is no way to make this script
compatible with it.

[PATCH 3/5] X11 dissector: Support variable_param (at least for glCallLists)
(This patch makes the change in r54232 unnecessary by using the previously-
unused variable.)

[PATCH 4/5] X11 dissector: Remove obsolete TODO item
This item was done in r53531 PATCH 09/11

svn path=/trunk/; revision=54242
2013-12-19 02:32:21 +00:00
Michael Mann cc152029f3 Exposing a couple of more constant arrays for ANSI-637. Bug 9471 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9471)
From Michael Lum

svn path=/trunk/; revision=54241
2013-12-19 01:37:54 +00:00
Jeff Morriss 10670dc875 Regenerate the X11 dissector in order to pick up the change from r54232. Also update to the latest mesa (though this resulted in no changes).
svn path=/trunk/; revision=54240
2013-12-18 23:45:09 +00:00
Jakub Zawadzki 099294dd16 Add charset table for ISO/IEC 8859-9 (ENC_ISO_8859_9)
svn path=/trunk/; revision=54239
2013-12-18 23:32:06 +00:00
Jakub Zawadzki e49da695a1 Use ws_sign_ext64()
svn path=/trunk/; revision=54238
2013-12-18 22:25:18 +00:00
Martin Kaiser 424fae1228 initialize info_flags, fix compile error
svn path=/trunk/; revision=54237
2013-12-18 22:15:56 +00:00
Michael Mann f882b63d97 Some proto_tree_add_xxx functions have a '_' in the function name so make sure they get counted in the proto_tree_add_text percentage.
Makes a few dissectors look a little better.

svn path=/trunk/; revision=54236
2013-12-18 22:10:59 +00:00
Guy Harris 4c4af5415f Use FT_STRING for string-valued fields.
Have RDP_FI_STRING set for all string-valued fields, with:

	RDP_FI_UNICODE set if the string is always "Unicode" (assumed to
	be UTF-16-encoded);

	RDP_FI_ANSI set if the string is always "ANSI" (we should try to
	use the code page indication);

	neither set if the string is "Unicode" or "ANSI" depending on
	the INFO_UNICODE flag in the packet (the only strings that work
	that way are in TS_INFO_PACKET or TS_EXTENDED_INFO_PACKET
	packets, which also have the flags field with INFO_UNICODE).

Use proto_tree_add_item() to add the string items.

While we're at it, pull the code to get conversation data, creating it
if necessary, into a routine.

svn path=/trunk/; revision=54235
2013-12-18 21:36:15 +00:00
Alexis La Goutte fe7e1783f7 Remove unneeded #include epan/dissectors/packet-scsi.h
svn path=/trunk/; revision=54234
2013-12-18 21:21:08 +00:00
Alexis La Goutte 3b519432dc Add extern C for stat_cmd_args (for future use in Wireshark Qt)
svn path=/trunk/; revision=54233
2013-12-18 21:20:57 +00:00