aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-09Fix coverity Error CID: 15.Olivier Biot1-1/+1
svn path=/trunk/; revision=17553
2006-03-08Fix Coverity issue CID: 14 in wkh_accept_encoding().Olivier Biot1-1/+1
svn path=/trunk/; revision=17539
2005-11-01Use g_print() instead of fprintf() to write messages to the debug console.Olivier Biot1-3/+2
svn path=/trunk/; revision=16373
2005-10-14Use tvb_free() instead of g_free() to free tvbuffs.Gerald Combs1-23/+23
svn path=/trunk/; revision=16220
2005-09-30Fix bug 492 - the MMSE dissector calls add_content_type() defined in WSP, whichOlivier Biot1-1/+4
uses proto_item_append_string(). The visibility hack must be present, otherwise a dissector assert is generated within the MMSE dissector. svn path=/trunk/; revision=16060
2005-09-26Part 2 of the fix: also add the correct offset for non-WSP address records.Olivier Biot1-0/+2
svn path=/trunk/; revision=16014
2005-09-26Fix WSP redirect and SIR address parsing:Olivier Biot1-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). svn path=/trunk/; revision=16012
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,Guy Harris1-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). svn path=/trunk/; revision=15758
2005-08-11some more tcv_get_stringz() to tvb_get_ephemeral_stringz() conversionsRonnie Sahlberg1-5/+3
svn path=/trunk/; revision=15288
2005-08-10rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the ↵Ronnie Sahlberg1-2/+2
documentation in README.developer svn path=/trunk/; revision=15270
2005-08-08various code cleanup:Ulf Lamping1-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 svn path=/trunk/; revision=15264
2005-07-28more emeification of tvb_get_string()Ronnie Sahlberg1-5/+3
svn path=/trunk/; revision=15133
2005-07-23avoid a crash when tree is nullLuis Ontanon1-1/+2
svn path=/trunk/; revision=15008
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-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. svn path=/trunk/; revision=14786
2005-05-27from didier fix for the regression for bug 62Ronnie Sahlberg1-1/+1
svn path=/trunk/; revision=14457
2005-05-27cket wsp is creating string items and later appending to them and their ↵Ronnie 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() svn path=/trunk/; revision=14452
2005-04-17Add even more calls to tvb_ensure_bytes_exist().Gerald Combs1-0/+85
svn path=/trunk/; revision=14111
2005-04-17Ham-fistedly drop in a bunch of tvb_ensure_bytes_exist() calls. One ofGerald Combs1-0/+32
them fixes bug 46. svn path=/trunk/; revision=14110
2005-04-16Add a few tvb_ensure_bytes_exist() calls. Fixes bug 35.Gerald Combs1-0/+4
svn path=/trunk/; revision=14109
2005-04-08Fix brokenness from previous patch.Gerald Combs1-301/+162
svn path=/trunk/; revision=14031
2005-04-08Add a length check, fix up some comments.Gerald Combs1-162/+302
svn path=/trunk/; revision=14029
2005-04-05Try not to call proto_tree_add_text() with negative lengths in error messages.Gerald Combs1-5/+5
svn path=/trunk/; revision=14018
2005-03-23"tvb_get_stringz()" and "abs_time_to_str()" don't return null pointers,Guy Harris1-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. svn path=/trunk/; revision=13876
2005-03-22As suggested by Ulf Lamping, prevent Ethereal from bailing out if there's a ↵Olivier Biot1-8/+8
protocol error, as we now have a DISSECTOR_ASSERT() macro. svn path=/trunk/; revision=13869
2005-03-22bugfix for buildbot randpkt: don't call proto_tree_add_string with a NULL ↵Ulf Lamping1-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!!! svn path=/trunk/; revision=13868
2005-02-02From Jon Ringle:Anders Broman1-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. svn path=/trunk/; revision=13243
2004-12-20Use "plurality()" rather than locally-defined "PLURALIZE()" macros, andGuy Harris1-5/+3
get rid of the definition of "PLURALIZE()" in modules that don't use it. svn path=/trunk/; revision=12791
2004-11-30Replace a few instances of match_strval() with val_to_str().Gerald Combs1-3/+3
svn path=/trunk/; revision=12625
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-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. svn path=/trunk/; revision=11410