aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-per.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-05convert to proto_tree_add_subtree[_format]Michael Mann1-2/+1
Change-Id: I8df48b25de784a48a25f0e48aac1e1545ed92c35 Reviewed-on: https://code.wireshark.org/review/2865 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-2/+2
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-2/+2
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-1/+1
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is. Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d Reviewed-on: https://code.wireshark.org/review/1999 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-21Don't use 'L' as a constant modifier.Bill Meier1-1/+1
svn path=/trunk/; revision=54343
2013-12-19Use proto_tree_add_item() or tvb_get_string_enc() instead ofGuy Harris1-4/+1
tvb_get_unicode_string(). If there's an indication that the encoding is UCS-2, use that, otherwise use UTF-16. (For example, "BMP" stands for "Basic Multilingual Plane", which is the part of Unicode that can be encoded in 16 bits, hence UCS-2.) In the description of the "Use Heuristics for UDP" preference for the XML dissector, note that it's not just trying to recognize XML in UCS-2, it's trying to recognize XML in *big-endian* UCS-2. svn path=/trunk/; revision=54245
2013-12-17Make local functions static. Include *.h when needed.Anders Broman1-2/+2
svn path=/trunk/; revision=54201
2013-12-14Fix [-Wmissing-prototypes]Jakub Zawadzki1-5/+1
svn path=/trunk/; revision=54095
2013-11-17Fix the number of highlighted bytes in case of unaligned PER constrained integerPascal Quantin1-1/+1
svn path=/trunk/; revision=53400
2013-11-17Add a way to retrieve a PER variable bit string lengthPascal Quantin1-4/+14
svn path=/trunk/; revision=53382
2013-11-10Add missing includes in order to remove exceptions.h from proto.h (next commit).Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53230
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-1/+1
svn path=/trunk/; revision=52591
2013-10-07Update function name in debug infoPascal Quantin1-1/+1
svn path=/trunk/; revision=52434
2013-10-06Add support for relative OID to PER dissectorPascal Quantin1-4/+29
svn path=/trunk/; revision=52423
2013-09-22emem -> wmem conversion:Pascal Quantin1-1/+1
- 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
2013-09-09expert_add_info_format_text -> expert_add_info_formatMichael Mann1-6/+6
svn path=/trunk/; revision=51852
2013-09-08Slightly different fix for ↵Pascal Quantin1-10/+10
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9117 : Check that tvb returned by dissect_per_bit_string is not null before trying to use it svn path=/trunk/; revision=51846
2013-09-07Callers of tvb_per_bit_string expect that the returned value_tvb is non-NULL.Evan Huus1-0/+18
Ensure that is the case even in certain peculiar error conditions, by filling it with a 0-length subset TVB. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9117 Also add modelines. svn path=/trunk/; revision=51821
2013-08-19Change some dissectors to use pinfo memory pool instead of malloc if it can ↵Pascal Quantin1-9/+5
trigger an exception between between buffer allocation and tvb_set_free_cb call svn path=/trunk/; revision=51427
2013-08-16Trivial. Fix warning: Value stored to 'str_index' is never read.Chris Maynard1-2/+1
svn path=/trunk/; revision=51392
2013-07-28Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8841 :Pascal Quantin1-3/+37
Fix PER normally small non-negative whole number dissection when it is greater than or equal to 64 svn path=/trunk/; revision=50969
2013-07-03expert_add_info_format_text + proto_tree_add_text = ↵Michael Mann1-4/+1
proto_tree_add_expert_format, where applicable. svn path=/trunk/; revision=50377
2013-07-03expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicableMichael Mann1-2/+3
svn path=/trunk/; revision=50337
2013-06-17Ensure that the length parameter to dissect_per_length_determinant isEvan Huus1-0/+3
initialized even in cases where we error or otherwise fail to dissect. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8722 Thanks to Pascal for his help digging through this one. svn path=/trunk/; revision=49985
2013-06-10Batch of filterable expert infos.Michael Mann1-10/+28
svn path=/trunk/; revision=49868
2013-03-19From beroset:Anders Broman1-4/+4
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48425
2013-03-13actx is used, remove _U_Martin Kaiser1-1/+1
svn path=/trunk/; revision=48284
2013-02-02Fix error: declaration of 'j' shadows a previous localPascal Quantin1-1/+1
svn path=/trunk/; revision=47445
2013-02-02Increase the maximum number of OPTIONAL / DEFAULT components per SEQUENCE to ↵Pascal Quantin1-20/+25
128 and make it configurable through a define svn path=/trunk/; revision=47444
2013-02-01Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8290 :Pascal Quantin1-4/+10
Allow up to 64 OPTIONAL / DEFAULT components per SEQUENCE svn path=/trunk/; revision=47433
2013-01-31Use '#if 0 ... #endif' rather than /** ... **/ to comment outBill Meier1-2/+2
unused hf[] entries (which I should have done in the first place). svn path=/trunk/; revision=47390
2013-01-26Comment out cases of unused hf array entries found by checkhf.Bill Meier1-1/+3
svn path=/trunk/; revision=47302
2013-01-23Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8216 :Pascal Quantin1-0/+7
Add basic dissection of UTF8String type in ASN.1 PER dissector svn path=/trunk/; revision=47233
2012-12-11Only construct bit string if show internal per fields is set. Use tvb_get_bitsAnders Broman1-46/+9
svn path=/trunk/; revision=46496
2012-12-09Cast result of strlen() from size_t to int.Martin Mathieson1-1/+1
svn path=/trunk/; revision=46480
2012-12-09Similarly avoiding calling g_snprintf() in dissect_per_constrained_integer().Martin Mathieson1-1/+7
svn path=/trunk/; revision=46479
2012-12-09Speed up dissect_per_boolean() by avoiding call to ep_strdup_printf().Martin Mathieson1-14/+15
Saves 5% on a particular LTE log. svn path=/trunk/; revision=46478
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-3/+3
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-08-19Try to fix the buildbotAnders Broman1-2/+2
svn path=/trunk/; revision=44588
2012-08-19Apply the speed improvement from r44578 to 64bits variant and length ↵Pascal Quantin1-33/+42
determinant decoding. Compute the buffer size so that it can contain the field name and the bit string display. svn path=/trunk/; revision=44586
2012-08-19Calling g_strlcat() for every bit of a constrained integer was reallyMartin Mathieson1-10/+12
slow. Track the index and write the characters directly (while still carefully checking that we don't spill the buffer). svn path=/trunk/; revision=44578
2012-08-14From Jan de Jongh via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7624 :Pascal Quantin1-13/+14
dissect_per_constrained_integer_64b fails for 64 bits svn path=/trunk/; revision=44510
2012-08-01remove unnecessary underscores from display filtersMichael Mann1-1/+1
svn path=/trunk/; revision=44181
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-11Use restricted character string decoding for IA5String typePascal Quantin1-12/+14
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6246 svn path=/trunk/; revision=43203
2012-05-15Remove unneeded #includes (stdlib, stdio, ctypes, time);Bill Meier1-4/+3
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
2012-05-04FALSE -> ENC_BIG_ENDIAN conversionpascal1-10/+10
svn path=/trunk/; revision=42422
2012-05-02Attempt to fix clang warnings (dead assignment, dereference of null pointer, ↵pascal1-13/+7
branch condition evaluates to a garbage value) svn path=/trunk/; revision=42392