Commit graph

11 commits

Author SHA1 Message Date
Anders Broman
7afd9b0c3b From Jakub Zawadzki:
Cleanup dissector code - use proper memory functions.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164

svn path=/trunk/; revision=31408
2010-01-02 09:46:16 +00:00
Guy Harris
4fde145bd2 Add an argument to abs_time_to_str() and abs_time_secs_to_str()
indicating whether the time should be shown as local time or UTC.  For
now, always pass FALSE, meaning "show as local time".

Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str()
for times with one-second resolution, and update a comment in various
macros in the WSP dissector, while we're at it.

svn path=/trunk/; revision=31227
2009-12-10 22:19:29 +00:00
Stig Bjørlykke
0fcef72fc6 Use correct type for udp port preference.
svn path=/trunk/; revision=30603
2009-10-18 21:13:17 +00:00
Jaap Keuter
75f1e13c12 Cleanup header fields.
svn path=/trunk/; revision=30394
2009-10-07 23:08:22 +00:00
Jaap Keuter
7afe46bf86 From Florian Forster:
Version 4.8.0 of collectd introduced two new data source types: DERIVE and ABSOLUTE. 
With this patch support for the new data source types is added so they are displayed correctly.

svn path=/trunk/; revision=29947
2009-09-16 19:02:51 +00:00
Jeff Morriss
6e7a37fe34 From Florian Forster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3185
This patch adds statistics information to the collectd dissector.

Changes by me:
  - use ep_alloc for structures being handed to the tap(s) (instead of se_alloc)
  - Capitalize the Statistics menu item to get it in the sorted list

svn path=/trunk/; revision=29915
2009-09-15 01:34:01 +00:00
Jeff Morriss
623b634080 From Florian Forster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4002
Version 4.7 of collectd introduces cryptographic features for the network
protocol. The current version of the collectd dissector does not know how to
handle these segments and flags them as unknown.

The following two patches add simple support for the TYPE_SIGN_SHA256 and
TYPE_ENCR_AES256 segments. They display the plain text components of
these segments but do not try to verify the signatures or decrypt the encrypted
payload.

Changes by me:
	- replace tvb_length_remaining() with tvb_reported_length_remaining()
	- replace proto_tree_add_protocol_format() with tvb_tree_add_text()

svn path=/trunk/; revision=29913
2009-09-15 00:18:40 +00:00
Jeff Morriss
f2c8d78562 Put the parenthesis in the right place
svn path=/trunk/; revision=29894
2009-09-14 13:11:26 +00:00
Jeff Morriss
87cb19aa15 Change proto_tree_add_protocol_format() to proto_tree_add_text() since all that is being added is text.
svn path=/trunk/; revision=29893
2009-09-14 11:26:03 +00:00
Anders Broman
a591c7a074 Add casts to make it compile on Windows.
svn path=/trunk/; revision=29888
2009-09-14 05:59:38 +00:00
Jeff Morriss
d642dc9f41 From Bruno and Florian Forster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3170
This patch adds support to Wireshark for dissecting UDP packets used by
collectd's network plugin in order to transmit data from ones host to another
host (e.g. centralized storage of statistics while data is collectd on
individual systems)

The current dissector understands the part types supported by collectd-4.5
series and gracefully processes future part types (flagging them as unknown).

In regard to protocol errors or bad packets checks are based on the various
length fields used, parts are marked with warning when length is unexpected;
marked with error when length breaks minimal rules.

svn path=/trunk/; revision=29887
2009-09-14 01:36:26 +00:00