summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-16Convert a bunch of time_to_str functions to wmemEvan Huus1-8/+8
Change-Id: I24fe3cc4a3589dadc4528a77fe7ff13d06b1a983 Reviewed-on: https://code.wireshark.org/review/2245 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-16/+16
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-05-21Change the signature of dissector_try_heuristic() to return hdtbl_entryAndersBroman1-4/+7
which can be used to call the found heuristic dissector on the next pass. Introduce call_heur_dissector_direct() to be used to call a heuristic dissector which accepted the frame on the first pass. Change-Id: I524edd717b7d92b510bd60acfeea686d5f2b4582 Reviewed-on: https://code.wireshark.org/review/1697 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Anders Broman <a.broman58@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>
2014-01-14Don't cast away constness.Guy Harris1-2/+2
svn path=/trunk/; revision=54775
2013-12-19Rename more to_str functions to have ep_ in the name if they return ephemeralEvan Huus1-8/+8
buffers. Remove two unused functions. svn path=/trunk/; revision=54250
2013-12-10- Forward declaration of register functions.Anders Broman1-0/+6
svn path=/trunk/; revision=53908
2013-11-09Include <epan/to_str.h> only when needed.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53189
2013-11-02Require dissector_try_string to pass a data parameter to its subdissectors. ↵Michael Mann1-4/+4
There weren't that many calls, so might as well modify the function than create a need for dissector_try_string_new. svn path=/trunk/; revision=53049
2013-10-16In packet-wsp.c, don't use the get_long_integer macro where we only need theEvan Huus1-6/+6
very smallest part of its logic. Just call tvb_get_guint8 directly and check that the return is between 1 and 4. Properly fixes the set-but-unused and associated warnings that were showing up. svn path=/trunk/; revision=52648
2013-10-16Fix warnings found by Clang 5.0 (-Wself-assign and -Wparentheses-equality).Gerald Combs1-2/+2
Move code from ipv6-utils.h to packet-ipv6.c since that was the only place it was used. Comment out unused code. svn path=/trunk/; revision=52645
2013-10-16Fix a comment.Gerald Combs1-1/+1
svn path=/trunk/; revision=52644
2013-10-16Back out the previous commit. We'll have to find a different fix.Gerald Combs1-2/+0
svn path=/trunk/; revision=52643
2013-10-16Work around a self-assingment error picked up by Clang 5.0.Gerald Combs1-1/+3
svn path=/trunk/; revision=52642
2013-09-22More emem -> wmem conversion:Pascal Quantin1-5/+5
- 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
2013-09-22emem -> wmem conversion:Pascal Quantin1-3/+3
- 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-21Add _g_ to the names of functions that allocate glib memory. This is a bit moreEvan Huus1-1/+1
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
2013-09-12emem -> wmemJörg Mayer1-58/+59
"tshark -v" tested svn path=/trunk/; revision=51988
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-25/+15
This leaves just the Pidl dissectors remaining for removal of check_col() in the dissectors directory. A small handful of check_col() calls remain outside of the dissectors. svn path=/trunk/; revision=49941
2013-03-29Rename value string (and similar) functions to use a consistent pattern. ThisEvan Huus1-8/+8
was done using textual search+replace, not anything syntax-aware, so presumably it got most comments as well (except where there were typos). Use a consistent coding style, and make proper use of the WS_DLL_* defines. Group the functions appropriately in the header. I ended up getting rid of most of the explanatory comments since many of them duplicated what was in the value_string.c file (and were out of sync with the recent updates I made to those in r48633). Presumably most of the comments should be in the .h file not the .c file, but there's enough churn ahead that it's not worth fixing yet. Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467 svn path=/trunk/; revision=48634
2013-03-19From beroset:Anders Broman1-5/+5
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48430
2013-02-22Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-31/+12
svn path=/trunk/; revision=47818
2013-02-22From 802.11-2012.pdf Update Information Element (IE Tag) ListAlexis La Goutte1-3/+3
svn path=/trunk/; revision=47817
2013-02-02Hack: disguise '/*' in text strings to prevent checkAPIs & etc seeing 'start ↵Bill Meier1-5/+6
of comment' within a text string. svn path=/trunk/; revision=47446
2012-12-26Fix a bunch of warnings.Guy Harris1-4/+1
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-10Re-generate value_string array for MIBenum mapping char set names from ↵Bill Meier1-131/+132
latest IANA document; Adds new values and fixes an incorrect value in the previous value_string array. Note: names used as specified (with capitalization) in the document. (Previously all the names in the value_string array were lower case). Also: rename the value_string array to have a less generic name. svn path=/trunk/; revision=46490
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-19Revert r45005.Martin Mathieson1-0/+11
svn path=/trunk/; revision=45006
2012-09-19Make proto_item_append_string() behave sanely, and use it in a few moreMartin Mathieson1-11/+0
dissectors. svn path=/trunk/; revision=45005
2012-09-11Add data parameter to dissector_try_heuristicJakub Zawadzki1-4/+4
svn path=/trunk/; revision=44871
2012-08-25cleanup some unnecessary g_malloc callsMichael Mann1-1/+1
svn path=/trunk/; revision=44662
2012-08-14Have strings use ephemeral memory. This dissector appears to need a massive ↵Michael Mann1-96/+52
overhaul to using proto_tree_add_item, but for now I'll settle for using ephemeral memory. svn path=/trunk/; revision=44488
2012-07-31Updated GSM dissectors display filters per checkfiltername.plMichael Mann1-4/+4
Tried to provide consistency with GSM dissector (protocol) names, even if the filenames now don't match the dissector name. svn path=/trunk/; revision=44162
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-01-26Fix memory leaks involving tvb_get_stringz() by replacing it with ↵Chris Maynard1-43/+22
tvb_get_ephemeral_stringz(). svn path=/trunk/; revision=40730
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵Bill Meier1-2/+2
FT_STRINGZ, FT_UINT_STRING as follows: 1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). svn path=/trunk/; revision=39426
2011-10-05All: Fix proto_tree_add_item() encoding parameter:Bill Meier1-26/+40
- Use 'ENC_(LITTLE|BIG)_ENDIAN' instead of locally defined 'bo_(little|big)_endian'; - Use ENC_NA for hf fields with type FT_NONE or FT_BYTES. packet-wsp.c: - #if 0 unused hf fields; -Fix two minor bugs in "sir" dissection. svn path=/trunk/; revision=39276
2011-09-21Fix ex "modeline" so it works;Bill Meier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 svn path=/trunk/; revision=39081
2011-08-04Remove unneeded #includes.Bill Meier1-3/+0
svn path=/trunk/; revision=38338
2011-08-04Whitespace cleanup: convert mixture of "4 space" and "8 space" tabs to spaces.Bill Meier1-6361/+6371
svn path=/trunk/; revision=38337
2011-08-04Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.Bill Meier1-60/+69
svn path=/trunk/; revision=38335
2011-07-06Fix memory leak, using ep_alloc() instead of g_malloc().Chris Maynard1-1/+1
svn path=/trunk/; revision=37923
2011-02-24Fix Bug #5624: "Unknown MMS multipart media is shown in the wrong subtree"Bill Meier1-3/+3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5624 Do ti = proto_tree_add_text(...,...); yyy=proto_item_add_subtree(ti,...) in the usual manner. svn path=/trunk/; revision=36039
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-6/+6
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-11-03Use value_string_ext fcns to access certain value_string arrays;Bill Meier1-59/+73
Some whitespace cleanup. svn path=/trunk/; revision=34763
2010-10-10Rename vals_status & vals_pdu_type to wsp_vals_status & wsp_vals_pdu_typeBill Meier1-9/+9
svn path=/trunk/; revision=34463
2010-09-24Replace blurbs that match the name (case insensitive) with NULL.Jeff Morriss1-1/+1
svn path=/trunk/; revision=34229
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris1-5/+5
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. svn path=/trunk/; revision=32913
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32411
2010-02-27Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with theGuy Harris1-5/+5
date as YYYY/DDD, where DDD is a 1-origin day of year. Move the formats to a "time_fmt.h" file, included by the headers that use it. Have abs_time_to_str() and abs_time_secs_to_str() take the date format value, rather than a Boolean "show this as UTC" flag, as an argument. Document the ABSOLUTE_TIME_ formats a bit better. Use that format in the CCSDS and VCDU dissectors, rather than having those dissectors do the formatting themselves. svn path=/trunk/; revision=32034