aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-03Use value_string_ext fcns to access certain value_string arrays;wmeier1-59/+73
Some whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34763 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-10Rename vals_status & vals_pdu_type to wsp_vals_status & wsp_vals_pdu_typewmeier1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34463 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-24Replace blurbs that match the name (case insensitive) with NULL.morriss1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34229 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32913 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32411 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-28Added svn:ignore targets.stig1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32055 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-26Fix some gcc -Wshadow warningswmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31673 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-07We do proto_item_append_string() all over the place; make the treeguy1-11/+13
visible at the top level. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31460 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31227 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-8/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-4/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29346 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29341 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-21From Kovarththanan Rajaratnam via bug 3548:stig1-25/+25
More header_field_info cleanup. From me: Don't fix the empty name for hf_nisplus_dummy. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28792 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-07Use some default true_false_string's.wmeier1-11/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27983 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-19Fix for bug 3071:jake1-1/+1
Incorrect address structure assigned for find_conversation() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26809 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-13Small changes related to proto_register & proto_reg_handoffwmeier1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26767 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-28From Shmulik Bezale:etxrab1-0/+5
gsm sms -> reassemble + wap support https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3004 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26607 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-21Fix some of the Errors/warnings detected by checkapi.etxrab1-2/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25336 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-15Fix some of the Errors/warnings detected by checkapi.wmeier1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25308 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Remove:etxrab1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24859 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-23Use proto functions i.s.o. manipulating node data directly.jake1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23940 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-13/+17
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-23Apply the small performance enhancment patches for:etxrab1-1/+1
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23252 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-14Attempt to fix bug 1360.jake1-8/+6
Remove calls to tvb_free on subsets, since this seems to upset the tvb administration(!?) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21772 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Remove almost all of the casts I committed recently and in place ofsfisher1-2/+2
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21253 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Fix a bunch of warnings, add svn:keywords Id and svn:eol-style nativesfisher1-2/+2
to packet-iuup.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21244 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-23fix various const warningsulfl1-29/+29
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21139 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-29From Reinhard Speyerer:etxrab1-0/+7
this patch adds support for Any-encoding (WSP, 8.4.2.9) and Any-language (WSP, 8.4.2.10) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20014 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-09Fix coverity Error CID: 15.obiot1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17553 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-08Fix Coverity issue CID: 14 in wkh_accept_encoding().obiot1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17539 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-01Use g_print() instead of fprintf() to write messages to the debug console.obiot1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16373 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-14Use tvb_free() instead of g_free() to free tvbuffs.gerald1-23/+23
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16220 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-30Fix bug 492 - the MMSE dissector calls add_content_type() defined in WSP, whichobiot1-1/+4
uses proto_item_append_string(). The visibility hack must be present, otherwise a dissector assert is generated within the MMSE dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16060 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-26Part 2 of the fix: also add the correct offset for non-WSP address records.obiot1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16014 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-26Fix WSP redirect and SIR address parsing:obiot1-3/+15
- The incorrect number of octets were highlighted (bearer type and port number were disregarded). - In SIR version 1 content, correct the parsing (full WSP address length was not added to the offset for parsing the non-WSP contact points). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16012 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,guy1-5/+4
and that extract IPv6 addresses into a "struct e_in6_addr", with tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we remove, by using proto_tree_add_item(), rather than replacing. Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct e_in6_addr" (not necessary to declare the tvbuff routines, but including it there means "struct e_in6_addr" is guaranteed to be defined before those declarations, so we don't get compiler complaints if we define it *after* those declarations). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15758 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-11some more tcv_get_stringz() to tvb_get_ephemeral_stringz() conversionssahlberg1-5/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15288 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-10rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the ↵sahlberg1-2/+2
documentation in README.developer git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15270 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-08various code cleanup:ulfl1-4/+0
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15264 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-28more emeification of tvb_get_string()sahlberg1-5/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15133 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-23avoid a crash when tree is nulllego1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15008 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;guy1-4/+2
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14786 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-27from didier fix for the regression for bug 62sahlberg1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14457 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-27cket wsp is creating string items and later appending to them and their ↵sahlberg1-0/+8
value at runtime which breaks when the TRY_TO_FAKE_THIS_ITEM() is used. Add a comment to proto_item_append_string() explaining the "danger" and what needs to be done if one decides to use proto_item_append_string() Add a small change to WSP so that it will disable this speed optimization so not to trigger a DISSECTOR_BUG in proto_item_append_string() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14452 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-17Add even more calls to tvb_ensure_bytes_exist().gerald1-0/+85
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14111 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-17Ham-fistedly drop in a bunch of tvb_ensure_bytes_exist() calls. One ofgerald1-0/+32
them fixes bug 46. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14110 f5534014-38df-0310-8fa8-9805f1628bb7