Commit Graph

50965 Commits

Author SHA1 Message Date
Bill Meier 026fae3855 Don't use 'L' as a constant modifier.
svn path=/trunk/; revision=54343
2013-12-21 21:42:18 +00:00
Bill Meier ad0c90e2a9 Use G_GINT64_CONSTANT(-1) instead of -1L.
svn path=/trunk/; revision=54342
2013-12-21 21:02:41 +00:00
Guy Harris aba3b9afed Dissect some more fields in the legacy (20-byte) header, as per the
screenshot in bug 9586.

First cut at dissecting the 802.11n (55-byte) header, as per the other
screenshot in that bug.

Update Protocol column to match the new name we gave the protocol.

Still waiting for a new-header capture to test with....

svn path=/trunk/; revision=54341
2013-12-21 20:54:26 +00:00
Bill Meier 7d5a52f4c8 Add a comment as to a required change to CFLAGS
if Wireshark is ever to be built with Gtk >= 3.10.

svn path=/trunk/; revision=54340
2013-12-21 19:12:04 +00:00
Jakub Zawadzki 2e20f895be Argh, fix include.
I start thinking about compiling (read: installing) Qt...

svn path=/trunk/; revision=54339
2013-12-21 18:40:20 +00:00
Jakub Zawadzki c40e1dc2d8 fix warnings.
svn path=/trunk/; revision=54338
2013-12-21 18:19:07 +00:00
Bill Meier 6ec4ba58a1 If Gtk >= 3.10, allow use of deprecated Gtk features (and prevent 'deprecated' warnings);
Given that Wireshark is moving to QT, the Wireshark changes required to
fix the features deprecated in Gtk 3.10 will not be done.

svn path=/trunk/; revision=54337
2013-12-21 18:16:07 +00:00
Jakub Zawadzki 58289a8ba0 missing include
svn path=/trunk/; revision=54336
2013-12-21 18:00:00 +00:00
Jakub Zawadzki c442c1bd66 Fix buildbot: ./wslua_util.c:102: warning: implicit declaration of function 'rel_time_to_ep_str'
svn path=/trunk/; revision=54335
2013-12-21 17:37:37 +00:00
Jakub Zawadzki 4cf7cdd387 fix some warnings.
svn path=/trunk/; revision=54334
2013-12-21 17:34:41 +00:00
Jakub Zawadzki 4f6f488c20 Avoid including <epan/addr_resolv.h> in dissectors
svn path=/trunk/; revision=54333
2013-12-21 17:24:19 +00:00
Jakub Zawadzki deb2b236f2 Add missing includes
svn path=/trunk/; revision=54332
2013-12-21 17:23:17 +00:00
Jakub Zawadzki 1fbc6102dc include header file.
svn path=/trunk/; revision=54331
2013-12-21 16:22:44 +00:00
Jakub Zawadzki 3d6fdc55d0 New functions: str_to_ip6(), str_to_ip()
This way we can avoid including lot of system header files in some dissectors
and it might fix bug #9581

svn path=/trunk/; revision=54330
2013-12-21 16:16:56 +00:00
Jakub Zawadzki aa4b08e2ca ui/gtk/follow_stream.c was using isprint.h hack, change all isprint()
svn path=/trunk/; revision=54329
2013-12-21 15:25:06 +00:00
Jakub Zawadzki 33ef0c2600 isascii(x) && isprint(x) -> g_ascii_isprint(x)
svn path=/trunk/; revision=54328
2013-12-21 15:12:11 +00:00
Jakub Zawadzki 746ee39329 Drop isprint.h use g_ascii_isprint() when this include hack was enabled.
svn path=/trunk/; revision=54327
2013-12-21 15:01:45 +00:00
Jakub Zawadzki be733f3041 Move epan/base64.[ch] to wsutil/ with function name change.
svn path=/trunk/; revision=54326
2013-12-21 14:38:51 +00:00
Jakub Zawadzki 576c7eae45 Move base64_to_tvb() to tvbuff_base64.c
svn path=/trunk/; revision=54325
2013-12-21 14:33:54 +00:00
Jakub Zawadzki 3778699fb5 Commit sample program to generate charsets.c tables using iconv()
For now only single-byte, and it must be possible to encode whole charset as UCS-2

svn path=/trunk/; revision=54324
2013-12-21 11:44:31 +00:00
Jörg Mayer 0d479ec37f make it possible to compile the sample dissector.
Fix one trivial error found.
Add a missing forward declaration.

svn path=/trunk/; revision=54323
2013-12-21 09:43:02 +00:00
Jörg Mayer 81fb51a310 Fix compilation without HAVE_HFI_SECTION_INIT defined.
svn path=/trunk/; revision=54322
2013-12-21 03:04:27 +00:00
Guy Harris 9591364899 Update documentation to reflect the non-existence of
proto_tree_add_unicode_string().

svn path=/trunk/; revision=54321
2013-12-21 01:52:18 +00:00
Guy Harris ab9aa3c859 Update documentation to reflect removal of tvb_get_unicode_string*, full
support for (correct) UTF-16, and new string encodings.

svn path=/trunk/; revision=54320
2013-12-21 01:50:55 +00:00
Jörg Mayer 2af870ce4c Convert to NEW_PROTO_TREE_API
svn path=/trunk/; revision=54319
2013-12-21 01:50:54 +00:00
Guy Harris 92f177ec97 Get rid of tvb_get_unicode_string() and tvb_get_unicode_stringz();
instead, have static routines to get UCS-2 (no surrogate pairs) and
UTF-16 (with surrogate pairs) strings, with the routines to handle
UTF-16 actually handling surrogate pairs.

Update some out-of-date comments while we're at it.

svn path=/trunk/; revision=54318
2013-12-21 01:42:41 +00:00
Jörg Mayer 296a286ed9 unknown5 is probably the speed in 500kHz
svn path=/trunk/; revision=54317
2013-12-21 00:20:12 +00:00
Jörg Mayer fa7471ae2a Try to guess some more values looking at the decoded values from
a (version 2) screenshot

svn path=/trunk/; revision=54316
2013-12-20 23:48:03 +00:00
Jakub Zawadzki 90858e3058 Avoid including <epan/range.h> in dissectors.
svn path=/trunk/; revision=54315
2013-12-20 23:25:36 +00:00
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