Commit Graph

50936 Commits

Author SHA1 Message Date
Jakub Zawadzki 064082e68a Change G_GINT64_CONSTANT(xxxxU) to G_GUINT64_CONSTANT(xxxx)
svn path=/trunk/; revision=54314
2013-12-20 22:39:32 +00:00
Jakub Zawadzki 90c8f5dde0 Copy Evan r54250 changes to asn/
Rename more to_str functions to have ep_ in the name if they return ephemeral buffers.

svn path=/trunk/; revision=54313
2013-12-20 22:32:11 +00:00
Jörg Mayer 4ca4794705 unknown2/3 -> capturelen1/2
NEWS got updated

svn path=/trunk/; revision=54312
2013-12-20 21:41:54 +00:00
Stig Bjørlykke ae97f5d3bd Improved the valuestring documentation.
svn path=/trunk/; revision=54311
2013-12-20 21:15:04 +00:00
Guy Harris 0f86a86f47 Add new string_enc and stringz_enc methods that take an encoding value
as an argument, just as the add_packet_field method for a tree does.

Use tvb_get_string_enc() and tvb_get_stringz_enc() rather than
tvb_get_string(), tvb_get_stringz(), tvb_get_unicode_string(), and
tvb_get_unicode_stringz().  Treat "ustring" as meaning "UTF-16-encoded
Unicode string" rather than "UCS-2-encoded subset-of-Unicode string".

svn path=/trunk/; revision=54310
2013-12-20 20:29:27 +00:00
Bill Meier 7838eada54 - Change guint32 array initializer constants to use 'U' rather than 'L'
(not that it actally makes any difference);
- Change 'guint crc32_0AA725CF_reverse[]' to 'guint32 ...'
 (no actual difference);
- Fix some indentation;
- Add editor modelines.

svn path=/trunk/; revision=54309
2013-12-20 16:57:02 +00:00
Bill Meier 6a0b02c26b 'guint32 crc_c[256]' array initializer constants should be unsigned 32bit; Replace 'L' by 'U'.
(not that it makes any difference in this case).

(I note that in https://tools.ietf.org/id/draft-ietf-tsvwg-sctpcsum-01.txt
the definition was 'unsigned long crc_c[256] = {0x...L, ...} presumably from
the days when LP32 was still in use.



svn path=/trunk/; revision=54308
2013-12-20 16:42:06 +00:00
Bill Meier dcd669e70c #if 0 a group of unused #defines;
Remove some trailing whitespace;
Add editor modelines.

svn path=/trunk/; revision=54307
2013-12-20 16:25:37 +00:00
Bill Meier ffb3264a99 #if 0 some unused #defines.
svn path=/trunk/; revision=54306
2013-12-20 16:03:24 +00:00
Bill Meier bf9f19e308 #if 0 some unused #defines;
Add editor modelines.

svn path=/trunk/; revision=54305
2013-12-20 15:55:40 +00:00
Bill Meier ccdb11e177 nnn'ULL' ==> G_GUINT64_CONSTANT(nnn)
svn path=/trunk/; revision=54304
2013-12-20 15:34:05 +00:00
Evan Huus 82112c8ea3 The payload of a compressed Kafka message is supposed to be itself a
message-set, so dissect it as such. I don't have a capture demonstrating this
at the moment, but it ought to work.

svn path=/trunk/; revision=54303
2013-12-20 15:14:52 +00:00
Evan Huus 1feb5f00c1 Simplify dissect_kafka_metadata_request() to not add an unnecessary tree and
match the rest of the protocol dissection in style.

svn path=/trunk/; revision=54301
2013-12-20 15:03:08 +00:00
Martin Kaiser 73f1356275 use small negative values for the error defines
(such constants are signed ints by default)

svn path=/trunk/; revision=54300
2013-12-20 15:02:23 +00:00
Martin Kaiser 0f59960219 we can display UTF-8 encoded ISO 10646 BMP without any mapping
svn path=/trunk/; revision=54299
2013-12-20 15:00:26 +00:00
Martin Kaiser d8fd9f7ace add Asian DVB-SI character tables
minor whitespace changes

svn path=/trunk/; revision=54298
2013-12-20 14:59:34 +00:00
Martin Kaiser cf3276b1fc simplify the defines for DVB chartables
there's no need for their values to match the values in the DVB-SI spec
we can summarize basic and extended table definitions

svn path=/trunk/; revision=54297
2013-12-20 14:58:43 +00:00
Evan Huus c38424311f Replace one more g_memmove with memmove, add a cast to make the Lua stuff
compile.

svn path=/trunk/; revision=54296
2013-12-20 14:45:24 +00:00
Evan Huus 9fba5a787e g_memmove has been removed in favour of normal memmove in the latest glib
versions, so do the same. Plain old memmove appears to be specified in C90, so
I'm not sure why they ever needed a compat function in the first place...

svn path=/trunk/; revision=54295
2013-12-20 14:35:34 +00:00
Jeff Morriss c3de9c6311 As pointed out in http://ask.wireshark.org/questions/28304/questions-on-packet-kafkac :
ett_kafka_metadata_topics is defined (and registered) but not used.  Use it.

svn path=/trunk/; revision=54294
2013-12-20 14:28:16 +00:00
Stig Bjørlykke de2bcb2c8e Build correct base table in init.lua after changes in epan/proto.h
svn path=/trunk/; revision=54293
2013-12-20 13:38:36 +00:00
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