aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
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
2010-01-26Fix some gcc -Wshadow warningsBill Meier1-6/+6
svn path=/trunk/; revision=31673
2010-01-07We do proto_item_append_string() all over the place; make the treeGuy Harris1-11/+13
visible at the top level. svn path=/trunk/; revision=31460
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris1-30/+11
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()Kovarththanan Rajaratnam1-8/+5
svn path=/trunk/; revision=29446
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-4/+1
svn path=/trunk/; revision=29346
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29341
2009-06-21From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-25/+25
More header_field_info cleanup. From me: Don't fix the empty name for hf_nisplus_dummy. svn path=/trunk/; revision=28792
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-1/+1
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-04-07Use some default true_false_string's.Bill Meier1-11/+6
svn path=/trunk/; revision=27983
2008-11-19Fix for bug 3071:Jaap Keuter1-1/+1
Incorrect address structure assigned for find_conversation() svn path=/trunk/; revision=26809
2008-11-13Small changes related to proto_register & proto_reg_handoffBill Meier1-3/+3
- Move find_dissector_table(...) to proto_reg_handoff; - Use dissactor_add_handle instead of registering the dissector to tcp port 0; - Use find_dissector when appropriate. svn path=/trunk/; revision=26767
2008-10-28From Shmulik Bezale:Anders Broman1-0/+5
gsm sms -> reassemble + wap support https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3004 svn path=/trunk/; revision=26607
2008-05-21Fix some of the Errors/warnings detected by checkapi.Anders Broman1-2/+6
svn path=/trunk/; revision=25336
2008-05-15Fix some of the Errors/warnings detected by checkapi.Bill Meier1-2/+3
svn path=/trunk/; revision=25308
2008-04-09Remove:Anders Broman1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
2007-12-23Use proto functions i.s.o. manipulating node data directly.Jaap Keuter1-3/+2
svn path=/trunk/; revision=23940