Commit Graph

19 Commits

Author SHA1 Message Date
Jeff Morriss 8d32d2066a There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or
tvb_get_const_stringz().

Use tvb_memeql() & tvb_memcmp().

svn path=/trunk/; revision=35558
2011-01-16 20:51:21 +00:00
Guy Harris a8bc4a0d13 Rename the routines that handle dissector tables with unsigned integer
keys to have _uint in their names, to match the routines that handle
dissector tables with string keys.  (Using _port can confuse people into
thinking they're intended solely for use with TCP/UDP/etc. ports when,
in fact, they work better for things such as Ethernet types, where the
binding of particular values to particular protocols are a lot
stronger.)

svn path=/trunk/; revision=35224
2010-12-20 05:35:29 +00:00
Bill Meier 671344e6cc zbee_mfr_code_names: sort so in ascending order by value; add dummy "Unknown" entries for missing values.
svn path=/trunk/; revision=34855
2010-11-12 21:47:41 +00:00
Jaap Keuter 53fbf796f2 From Fred Fierling:
Patch to correct various typos

svn path=/trunk/; revision=34757
2010-11-03 07:30:42 +00:00
Jaap Keuter ffab7d1606 From Fred Fierling:
Update Profile ID Information to ZigBee-053298r17 (2010/7/21)

svn path=/trunk/; revision=34749
2010-11-02 08:21:29 +00:00
Bill Meier 5227ad988a Use value_string_ext fcns to access various value_string arrays;
Also: Fix a typo  in packet-zbee.h in the value for #define ZBEE_MFG_CODE_STG


svn path=/trunk/; revision=34746
2010-11-01 18:33:30 +00:00
Anders Broman 773a7f4c59 From Fred Fierling:
Cleanup of unnecessary tree == NULL checks in ZCL dissector

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5321

svn path=/trunk/; revision=34595
2010-10-20 20:50:39 +00:00
Anders Broman a75d7209f5 From Fred Fierling:
Infinite loop in ZCL Discover Attributes dissection

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5303

svn path=/trunk/; revision=34575
2010-10-19 19:19:42 +00:00
Stig Bjørlykke d0dfefaca8 Fix for attribute boolean, from bug 5127.
svn path=/trunk/; revision=33887
2010-08-23 09:17:03 +00:00
Guy Harris 8e236e55de For fields of type FT_ABSOLUTE_TIME, have the "display" value be one of
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display
the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL ==
(int)BASE_NONE, so there's no source or binary compatiblity issue,
although we might want to eliminate BASE_NONE at some point and have the
BASE_ values used with integral types start at 0, so that you can't
specify BASE_NONE for an integral field.

svn path=/trunk/; revision=31319
2009-12-19 03:17:44 +00:00
Anders Broman 423b8b31cd From Fred Fierling:
Fixes bugs in dissection of write attributes, read reporting configuration, and
configure reporting clusters in the ZigBee Cluster Library.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4113

svn path=/trunk/; revision=30731
2009-10-27 19:13:57 +00:00
Jaap Keuter fe2a12d423 Clean up header fields.
svn path=/trunk/; revision=30395
2009-10-08 05:43:19 +00:00
Kovarththanan Rajaratnam 57659e8133 Use tvb_get_ephemeral_string() to avoid memleak.
svn path=/trunk/; revision=30001
2009-09-20 08:35:49 +00:00
Bill Meier 6c545e0d79 Save some memory: Don't statically allocate ett[] arrays used "dynamically".
svn path=/trunk/; revision=29929
2009-09-15 17:37:54 +00:00
Bill Meier 46fcebf274 Validate a function parameter
svn path=/trunk/; revision=29595
2009-08-28 13:52:52 +00:00
Kovarththanan Rajaratnam ac463d2697 Don't guard col_clear with col_check
svn path=/trunk/; revision=29346
2009-08-09 08:14:59 +00:00
Bill Meier 62a8504eda Function dissect_zcl_attr_data_type() unused: comment it out
svn path=/trunk/; revision=29240
2009-07-29 22:54:28 +00:00
Bill Meier 6de62aee00 Fix a potential crash and do various other minor changes:
- Fix an hf[] entry which had an invalid "strings" field which could cause a crash;
- Remove unneeded #includes;
- Make most functions & etc static;
- Remove declarations for functions never defined;
- Fix certain comments to refer to the correct function names;
- Change global variable to be local to proto_reg_handoff...
- ...

svn path=/trunk/; revision=29239
2009-07-29 22:33:08 +00:00
Ronnie Sahlberg 148263ebf0 zigbee cluster dissector,
modified from entry in bug 3765 so it compiles cleanly


svn path=/trunk/; revision=29232
2009-07-29 11:29:53 +00:00