Age | Commit message (Collapse) | Author | Files | Lines |
|
because wmem_alloc(pool, 0) returns NULL (like pretty much every other
malloc-style function) where ep_ or se_ alloc did not.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9175
svn path=/trunk/; revision=52187
|
|
- tvb_get_g_stringz()/tvb_get_ephemeral_stringz()/tvb_get_seasonal_stringz() -> tvb_get_stringz()
- tvb_get_g_stringz_enc()/tvb_get_ephemeral_stringz_enc() -> tvb_get_stringz_enc()
- tvb_get_ephemeral_unicode_stringz() -> tvb_get_unicode_stringz()
- tvb_bcd_dig_to_ep_str() -> tvb_bcd_dig_to_wmem_packet_str()
- update docs accordingly
svn path=/trunk/; revision=52180
|
|
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits()
- tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup()
- tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode()
- tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string()
- tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string()
- tvb_get_ephemeral_string_enc() -> tvb_get_string_enc()
- update docs accordingly
svn path=/trunk/; revision=52172
|
|
explicit, and frees up the "generic" names (like tvb_memdup) for new signatures
that take the appropriate wmem pool.
Majority of the conversion done with sed.
svn path=/trunk/; revision=52164
|
|
implementation of BASE_VAL64_STRING value_strings.
Fixes 'tshark -G values' crash.
svn path=/trunk/; revision=52121
|
|
svn path=/trunk/; revision=51981
|
|
[-Werror,-Wshorten-64-to-32]
time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/jmayer/work/wireshark/svn/trunk/epan/proto.c:1613:44: error: implicit conversion
loses integer precision: 'unsigned long long' to 'time_t' (aka 'long')
[-Werror,-Wshorten-64-to-32]
time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
svn path=/trunk/; revision=51978
|
|
svn path=/trunk/; revision=51975
|
|
Add support for Time-of-Day timestamp format from z/OS.
svn path=/trunk/; revision=51974
|
|
LUA API filterable (suggestions welcome!), but I wanted to start forcing dissectors to use the filterable expert API (nothing like compile errors to force change!). I created expert_add_info_format_internal (original expert_add_info_format) and used it as a placeholder for proto.c/LUA API until a solution is created. The "new" expert_add_info_format will be the "old" expert_add_info_format_text, and I'll slowly do the search/replace.
For those with dissectors outside the source tree, please see tools/convert_expert_add_info_format.pl for help with the conversion. Please do not use expert_add_info_format_internal, as it's support time will be very short lived.
svn path=/trunk/; revision=51844
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9055
Add support for bitmask set for signed integer types.
svn path=/trunk/; revision=51522
|
|
field_info can be already get using PNODE_FINFO(return_value)
svn path=/trunk/; revision=51479
|
|
- (for now) keep ABI, restore prototype of old proto_tree_add_item, add new proto_tree_add_item_new
- add few helpers for boolean, time, string which will do ->id
- don't use HFI_INIT directly, use it by another macro (MSVC has very small limit for section name)
svn path=/trunk/; revision=51401
|
|
svn path=/trunk/; revision=51396
|
|
__builtin_ctz() with bitmask == 0 is UB, so only do g_assert there.
svn path=/trunk/; revision=51176
|
|
svn path=/trunk/; revision=51175
|
|
svn path=/trunk/; revision=51174
|
|
- Use __builtin_ctz for GCC/clang
- Do multiply and lookup on other platforms
svn path=/trunk/; revision=51173
|
|
svn path=/trunk/; revision=51144
|
|
svn path=/trunk/; revision=51036
|
|
this might be called via proto_tree_add_item() with tree==NULL
which results in a crash
svn path=/trunk/; revision=51020
|
|
svn path=/trunk/; revision=50983
|
|
Don't do that.
svn path=/trunk/; revision=50982
|
|
svn path=/trunk/; revision=50967
|
|
svn path=/trunk/; revision=50963
|
|
Add support for FT_VINES type.
svn path=/trunk/; revision=50962
|
|
svn path=/trunk/; revision=50952
|
|
need it, I think this is all of them.
svn path=/trunk/; revision=50941
|
|
return.
svn path=/trunk/; revision=50939
|
|
overloaded use of the DISPLAY field). Thanks to Jakub for pointing out I'd done
this wrong the first time (months ago in r49357).
Fixes severity display for collectd protocol, originally filed at:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8472
svn path=/trunk/; revision=50935
|
|
https://www.wireshark.org/lists/wireshark-dev/201307/msg00153.html :
The fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3290 needs
to allow for giving a length of -1 for FT_STRINGZ's.
This is another fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8960
(in addition to r50836). There's no point in reverting that revision, though,
since there was no need to use a length of -1 in that case.
svn path=/trunk/; revision=50892
|
|
- When old string empty just pass new one (like: frame.protocols)
- if not, use ep_strconcat()
svn path=/trunk/; revision=50890
|
|
isn't necessarily going to be zero if the item is big-endian.
The last argument to test_length() is an encoding, not a big-endian vs.
little-endian Boolean; name it appropriately.
This fixes bug 8953.
svn path=/trunk/; revision=50806
|
|
svn path=/trunk/; revision=50682
|
|
svn path=/trunk/; revision=50681
|
|
svn path=/trunk/; revision=50632
|
|
- Merge _UINT / _INT into one case
- fix possible generation of wrong expression ("some_integer") for unknown value in BASE_NONE field
svn path=/trunk/; revision=50548
|
|
to get_hfi_length().
svn path=/trunk/; revision=50509
|
|
s/hf_index/hfindex/g
s/hf_info/hfinfo/g
svn path=/trunk/; revision=50507
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8923 :
Apply the fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3290
to proto_tree_add_bits_item(). That is, test that we have offset+length bytes
left in the TVB before trying to fake the item.
svn path=/trunk/; revision=50504
|
|
- FT_FRAMENUM can't have strings
- mask hfinfo->display to compare with valid BASE_ value
svn path=/trunk/; revision=50444
|
|
svn path=/trunk/; revision=50438
|
|
Right now we have about 36K of ett items, and tree_is_expanded takes: 144K of memory (36K*sizeof(gboolean))
By making tree_is_expanded bit array, it reduce size to 4.5K (36K/8)
svn path=/trunk/; revision=50434
|
|
svn path=/trunk/; revision=50433
|
|
remove invalid comment about HEX/OCT print not supported for signed numbers.
svn path=/trunk/; revision=50427
|
|
svn path=/trunk/; revision=50376
|
|
svn path=/trunk/; revision=50372
|
|
- proto_tree_add_node() double checks if tree_type is valid remove second one (first one is more verbose)
svn path=/trunk/; revision=50328
|
|
PTREE_DATA should be the same for both *tree* and *pi*
svn path=/trunk/; revision=50326
|
|
proto_data_add_maybe_interesting_field
Now proto_data_add_maybe_interesting_field:
- it actually add field_info to interesting hash_tree
- accept only required parameters
- is called only by proto_tree_add_node
svn path=/trunk/; revision=50321
|