aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-20Get rid of Warnings.etxrab1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39954 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-19The URI parameter parser always has to advance current_offset in theguy1-4/+2
loop, otherwise you get stuck in an infinite loop. (Where in RFC 3261 does it mention the use of commas in URI parameters?) Should fix bug 6598. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39952 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-19Clean up indentation.guy1-49/+46
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39950 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-19Fix Warnings.etxrab1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39948 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15Check the return value of dissect_sip_name_addr_or_addr_spec()etxrab1-1/+6
Should fix the recent fuzz failures. Thanks Chris for isolating the offending packet. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39867 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15Squelch a warning. (This code probably needs a review; we really need aguy1-0/+1
better general framework for parsing text-based protocols.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39866 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15More indentation cleanup.guy1-11/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39864 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15Clean up indentation.guy1-48/+48
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39863 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15packet-sip.c:1469: warning: unused variable 'contact_param_end_offset'etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39862 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15Restore dissection of contact parameters.etxrab1-22/+66
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39861 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-14packet-sip.c:1412: warning: 'uri_param_end_offset' may be used uninitialized ↵etxrab1-1/+1
in this function git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39828 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-14From Johan Wåhl:etxrab1-34/+257
- dissect Route and Via header. - Dissect URI parameters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39827 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-11Add some checks for "character not found"; this should fix someguy1-1/+5
fuzz-testing failures we're seeing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39795 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-10packet-sip.c:1442: warning: 'c' may be used uninitialized in this functionetxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39783 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-10-Improve dissection of auth itemsetxrab1-4/+150
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6553) - Add parameter items to the tree for some often trunkated lines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39782 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-08packet_info's in_error_pkt is now a bitfield like in_gre_pkt.cmaynard1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39764 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-26Fix proto_tree_add_item() encoding args;wmeier1-8/+8
Also: remove unneeded #include. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39614 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-2/+2
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-15/+15
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39426 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-13From Horaci Macias:etxrab1-0/+8
Parse User-to-User header http://tools.ietf.org/html/draft-ietf-cuss-sip-uui-02 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6432 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39402 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-1/+1
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-19Move stuff inside if(tree)etxrab1-51/+48
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39038 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-18Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.wmeier1-5/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38085 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-20Add #include <stdlib.h> to files which reference fcns declared in stdlib.h;wmeier1-2/+3
(In many cases I previously incorrectly removed the #include <stdlib.h>). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37334 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-11Don't assign to a proto_item * if the value won't be used: Coverity 1036;wmeier1-377/+369
Fix what appears to be a use of an incorrect tree: Coverity 1037; Also: - Remove uneeded #includes & re-order #includes; - Do indentation and whitespace cleanup (e.g., "4 space tabs"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36558 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-08Use tvb_get_ephemeral_string()etxrab1-16/+13
prefix hf vars with hf_sip git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36516 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-07Make it possible to have a sub dissector dissect the status line diagnostic ↵etxrab1-3/+21
string should it contain more than a string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36509 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-06RFC5806 Diversion headerkukosa1-0/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36489 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-19Simply this:sfisher1-1/+1
#define SIP2_HDR "SIP/2.0" #define SIP2_HDR_LEN ((gint)strlen (SIP2_HDR)) To this: #define SIP2_HDR "SIP/2.0" #define SIP2_HDR_LEN 7 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35588 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-3/+3
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-29Remove a no-longer-used variable.morriss1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35072 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-29Change SIP TCP port preference to a range preference.etxrab1-9/+29
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35070 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-22Remove faulty return, probably forgotten during test.etxrab1-1/+0
Fixing dissection on Via header. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35004 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-05Use value_string_ext fcns to access certain value_string arrays;wmeier1-1/+1
Sort certain value_string arrays so the values are in ascending order; Use val_to_str_ext() instead of for loops to do value_string array lookups (voip_calls.c). Minor whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34794 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-04Prevent false related packet information, which may be missing or ignored.jake1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34779 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-03(Trivial): Fix up a comment.wmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34764 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-03Update SIP headers.etxrab1-275/+310
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34758 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-27Try to decode the unknown multipart subtype anyway.jake1-0/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34659 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵morriss1-1/+1
insensitive) with NULL. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34230 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-25Fix wrong length of CSeq Method parameter kukosa1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33920 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-30Use the right array bounds.gerald1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33385 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-28From Karl Heinz Wolf via bug 3571 (with minor changes):gerald1-1/+13
Patch for the SIP dissector: the raw SIP message can be shown with our without the "\r\n". User may want to remove the \r\n for clarity (by selecting a checkbox). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33014 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-25Only try header reassembly for TCP.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32952 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-24Fix a typo.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32926 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-05- Remove check_col()etxrab1-19/+18
- only read method string once. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32677 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-04Un-C++-ify a comment.gerald1-12/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32664 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-04Remove unused variables.etxrab1-4/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32659 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-04Refactor the code to parse SIP contact parameters.etxrab1-90/+84
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32658 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-29Forgot a //etxrab1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32605 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-29Simplify dissect_sip_authorization_item().etxrab1-46/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32604 f5534014-38df-0310-8fa8-9805f1628bb7