aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-15Update a comment as to the number of Wireshark protocols;Bill Meier1-31/+33
Minor whitespace and formatting changes. svn path=/trunk/; revision=41559
2012-03-14Fix up a several REPORT_DISSECTOR_BUG messages to specify the correct ↵Bill Meier1-1170/+1268
function name; Do general cleanup: - Indentation & whitespace; - Reformat long lines, - & etc. svn path=/trunk/; revision=41547
2012-03-12Value can't be negative if no_of_bits == 0Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=41507
2012-03-08From Sylvain Munaut: proto_tree_add_split_bits_item_ret_val doesn't handle ↵Anders Broman1-0/+17
signed value properly https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6920 svn path=/trunk/; revision=41419
2012-03-02Increase the size of the preallocated area for hf fields.Anders Broman1-2/+4
svn path=/trunk/; revision=41290
2012-03-01(After a couple of years of warning about this), assert out if someone triesJeff Morriss1-6/+3
to register an hf with an empty-string abbreviation. svn path=/trunk/; revision=41280
2012-03-01From Mike Morrin: A small patch to correct the name of the function ↵Anders Broman1-1/+1
proto_tree_add_split_bits_item_ret_val() svn path=/trunk/; revision=41255
2012-02-29From Mike Morrin:Anders Broman1-15/+141
The attached patches add the ability to dissect split bit-strings as discussed under bug 6797. proto_tree_add_split_bits_ret_val() proto_tree_add_split_bits_crumb() svn path=/trunk/; revision=41246
2012-02-13If WIRESHARK_ABORT_ON_DISSECTOR_BUG is set (in the environment) and we put moreJeff Morriss1-0/+2
than MAX_TREE_ITEMS in the tree, abort() out rather than throwing an exception. svn path=/trunk/; revision=41009
2012-01-25Fix a couple of cut-n-pasteos.Jeff Morriss1-2/+2
svn path=/trunk/; revision=40711
2012-01-14Remove obsolete GLIB_CHECK_VERSION(2,10,0) checksJörg Mayer1-33/+1
svn path=/trunk/; revision=40490
2011-12-27Add a "-G ftypes" option, which dumps our supprted FT_… names andGerald Combs1-0/+19
descriptions. Captitalize and fix up the descriptions. Use its output to create the field type list in the wireshark-filter man page. svn path=/trunk/; revision=40306
2011-12-20Improve this error message (example output based on attachment in bug #6665):Stephen Fisher1-1/+1
OOPS: ',' in 'tpncp.fxs_ana,og_voltage_beading' Now: Invalid character ',' in filter name 'tpncp.fxs_ana,og_voltage_beading' svn path=/trunk/; revision=40256
2011-11-17Fix crash caused by trying to apply a field of type BASE_CUSTOM as a column. ↵Chris Maynard1-3/+7
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6503. svn path=/trunk/; revision=39902
2011-11-02Use "%g" for float as well as double.Guy Harris1-2/+2
svn path=/trunk/; revision=39709
2011-10-25Allow signed integers displayed as BASE_HEX_DEC.Stig Bjørlykke1-1/+10
svn path=/trunk/; revision=39571
2011-10-25Display BASE_DEC_HEX correct for int64/uint64.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=39569
2011-10-25Added missing support for FT_INT64 in proto_tree_add_bits_format_value().Stig Bjørlykke1-0/+5
svn path=/trunk/; revision=39561
2011-10-25Simplified code checking if FT_UINT64 is displayed as BASE_NONE.Stig Bjørlykke1-7/+1
svn path=/trunk/; revision=39560
2011-10-25Allow signed integers displayed as DEC_HEX.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=39559
2011-10-25Fixed using signed 64-bits integer in custom column.Stig Bjørlykke1-0/+3
svn path=/trunk/; revision=39558
2011-10-25Revert "Allow value_strings for FT_INT64 and FT_UINT64.", as weStig Bjørlykke1-2/+0
haven't generic support for value_strings for 64-bit values yet. svn path=/trunk/; revision=39557
2011-10-25Allow value_strings for FT_INT64 and FT_UINT64.Stig Bjørlykke1-0/+2
svn path=/trunk/; revision=39556
2011-10-24Convert proto_tree_add_bitmask(), proto_tree_add_bitmask_text(), ↵Bill Meier1-11/+18
proto_tree_add_bitmask_tree() to have 'encoding' arg rather than 'little_endian' arg svn path=/trunk/; revision=39538
2011-10-05Use g_tree_steal to remove an entry without calling the destroy function.Stig Bjørlykke1-1/+1
This because we use the destroy function to determine same_name_hfinfo. svn path=/trunk/; revision=39267
2011-10-04Add proto_unregister_field().Stig Bjørlykke1-0/+28
This can be used to unregister fields registered in dissector UAT's. svn path=/trunk/; revision=39248
2011-10-02Removed the protocol registration updates in the splash screen for PythonStig Bjørlykke1-2/+6
dissectors, because it does not work as expected and causes an assert. Added generic splash updates for python register and handoff instead. This should fix bug 5431. svn path=/trunk/; revision=39221
2011-09-27In proto_tree_add_bits... use const guint encoding to be consistent with ↵Anders Broman1-8/+8
proto_tree_add_item(). svn path=/trunk/; revision=39163
2011-09-20From Sylvain Munaut:Anders Broman1-0/+28
Add support for signed types in _proto_tree_add_bits_ret_val https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6363 svn path=/trunk/; revision=39060
2011-09-16From Sylvain Munaut:Anders Broman1-38/+12
proto: Use fill_label_xxx helpers in _proto_tree_add_bits_ret_val https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6329 svn path=/trunk/; revision=39026
2011-07-05Add some additional routine variants that handle string encodings, andGuy Harris1-51/+19
make FT_STRING and FT_UINT_STRING handle string encodings. Get rid of FT_EBCDIC in favor of FT_STRING with ENC_EBCDIC. Add some URLs for DRDA. Clean up some stuff in TN3270 and TN5250, including using ENC_ values for proto_tree_add_item(). svn path=/trunk/; revision=37909
2011-07-03Add ENC_ values for UTF-8 and EBCDIC, support them for FT_STRINGZGuy Harris1-1/+8
values, and use them in the MQ dissector, so EBCDIC strings are displayed as such. Fix up some other final arguments to proto_tree_add_item(). svn path=/trunk/; revision=37872
2011-06-25Make guy's fix in revision 37236 actually work:Stig Bjørlykke1-1/+1
"You cannot just make the "len" field of a GByteArray larger, if there's no data to back that length; you can only make it smaller." Two equal values are always equal! This fixes bug 5941. svn path=/trunk/; revision=37783
2011-06-19Make creating a display filter from a custom column defined as integer withStig Bjørlykke1-12/+20
strings and BASE_NONE equal to selecting the filter from the tree entry. svn path=/trunk/; revision=37720
2011-06-19Handle BASE_NONE as BASE_DEC for filter expression in custom columns.Stig Bjørlykke1-0/+1
This fixes bug 6035. svn path=/trunk/; revision=37705
2011-06-16Squelch some compiler warnings.Guy Harris1-3/+6
svn path=/trunk/; revision=37685
2011-06-07Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warningsBill Meier1-3/+1
svn path=/trunk/; revision=37600
2011-05-27Make TVBs opaque for most users.Jeff Morriss1-10/+10
Convert TVB_RAW_OFFSET() and TVB_GET_DS_TVB() into functions. svn path=/trunk/; revision=37422
2011-05-19Add a check that (plain) value_strings that are used in hf items don't haveMartin Mathieson1-0/+48
any conflicting entries. i.e. lots of value_strings have repeated items, but for now only warn for cases where the same numeric value appears with a different string. Because this will slow down startup and output distracting warnings, it has been #if 0'd out for now. As discussed on the dev mailing list, it'd be good to create a #define for developer/non-release builds so that tests such as this can regularly be run. svn path=/trunk/; revision=37274
2011-05-18You cannot just make the "len" field of a GByteArray larger, if there'sGuy Harris1-1/+6
no data to back that length; you can only make it smaller. svn path=/trunk/; revision=37236
2011-05-18Make some more routines not used outside epan/proto.c static.Guy Harris1-3/+3
svn path=/trunk/; revision=37235
2011-05-09Convert SLAB_-s, to sl_-API.Jakub Zawadzki1-13/+16
svn path=/trunk/; revision=37030
2011-05-08Add FT_EUI64 Field TypeAlexis La Goutte1-3/+110
* Remove proto_tree_add_eui64 function from 802.15.4 Dissector * Replace print_eui64/print_eui64 by eui64_to_str/get_eui64_name * Update Documentation (README.dev) * Add new function in libwireshark.def * Support of encoding for tvb_eui64_to_str * Use FT_EUI64 for ICMPv6, CAPWAP, Zbee ... dissector svn path=/trunk/; revision=37015
2011-04-11Use g_strlcpy() instead of prohibited strncpy() to guarantee NULL-termination.Chris Maynard1-1/+1
svn path=/trunk/; revision=36553
2011-04-10strcpy -> strncpy.Stig Bjørlykke1-1/+1
Coverity 669. svn path=/trunk/; revision=36543
2011-03-29Guard against NULL return from find_protocol_by_id().Stig Bjørlykke1-0/+3
svn path=/trunk/; revision=36393
2011-03-28Don't use prohibited strncpy(). In this case, use g_strlcat() instead.Chris Maynard1-6/+1
svn path=/trunk/; revision=36382
2011-03-26Added a FALLTHRU comment to avoid a coverity warning.Stig Bjørlykke1-0/+1
Coverity 480. svn path=/trunk/; revision=36350
2011-03-20Clean up indentation.Guy Harris1-7/+7
svn path=/trunk/; revision=36213
2011-02-10Modify proto_tree_add_bytes_format() and proto_tree_add_bytes_format_value()Jeff Morriss1-2/+14
so that if the start_ptr is NULL the bytes are extracted from the given TVB using the given offset and length. Replace a bunch of: proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, tvb_get_ptr(tvb, offset, length), [...]) with: proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, NULL, [...]) svn path=/trunk/; revision=35896