aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
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
2005-04-16Add a few tvb_ensure_bytes_exist() calls. Fixes bug 35.gerald1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14109 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-08Fix brokenness from previous patch.gerald1-301/+162
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14031 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-08Add a length check, fix up some comments.gerald1-162/+302
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14029 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-05Try not to call proto_tree_add_text() with negative lengths in error messages.gerald1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14018 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-23"tvb_get_stringz()" and "abs_time_to_str()" don't return null pointers,guy1-15/+6
so don't check whether they've done so with "DISSECTOR_ASSERT()". ("proto_item_set_string()" and friends already do so.) Fix indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13876 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-22As suggested by Ulf Lamping, prevent Ethereal from bailing out if there's a ↵obiot1-8/+8
protocol error, as we now have a DISSECTOR_ASSERT() macro. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13869 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-22bugfix for buildbot randpkt: don't call proto_tree_add_string with a NULL ↵ulfl1-5/+7
pointer TO THE DISSECTOR DEVELOPERS, PLEASE FIX THIS: I could easily found several places where a g_assert is called, depending on the input packet data. NEVER DO THIS, as this crashes Ethereal simply by invalid packet data input!!! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13868 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-02From Jon Ringle:etxrab1-4/+4
1) Added a setup_frame parameter to conversation_t 2) Used the conversation_t next to maintain a list of conversations with the same src/dest tuple but different setup_frame number. 3) Changed the signature of find_conversation() and conversation_new() to pass in the frame number. 4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image are present, and T.38 conversation if only m=image is present. I expect that RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13243 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-20Use "plurality()" rather than locally-defined "PLURALIZE()" macros, andguy1-5/+3
get rid of the definition of "PLURALIZE()" in modules that don't use it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12791 f5534014-38df-0310-8fa8-9805f1628bb7
2004-11-30Replace a few instances of match_strval() with val_to_str().gerald1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12625 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-29Move the tap infrastructure to the epan directory.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12128 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-0/+7410
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7