aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-29Do the header matching on lower case.etxrab1-20/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32602 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-29autentification info gives malformed packet if no space before "="etxrab1-3/+28
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32600 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-28Use proto_add_item() and clean up the code a bit.etxrab1-78/+57
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32592 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-14SIP headers are case-insensitive, fix case sensitivity introduced probably ↵kukosa1-2/+8
by mistake git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32463 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-27- Make dfilter_sip_request_line() take offset as an argument to get the ↵etxrab1-19/+14
right offset in case there is more than one SIP message in an tvb. - Use correct line end offset to dissect_sip_uri(). Fixes bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4570 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32309 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-16Fix some compiler warnings, clean up indentation a bit.guy1-412/+71
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32201 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-15Declare sip_uri_offset_init() as returning void and remove a couple unused ↵morriss1-248/+384
variables git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32195 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-09Mark unused arguments.guy1-27/+25
Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32149 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-05Check if URI is SIP.etxrab1-0/+19
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32122 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-05Add comments and move some things inside if(tree).etxrab1-122/+124
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32121 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-04Try to fix build errors.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32118 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-04Use a hash table to lookup the SIP header.etxrab1-71/+92
It reduces the loading time of a file with 220 000 packets by 3s. (SIP parsing should be optimized, if SIP is dissabled loading time is ~15s with SIP ~30s ). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32116 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-03Changed to use g_str_hash ()etxrab1-3/+9
sip_hash_func() function seem to not generate unique enough keys if load generation tools are used with many thousands users. Loading time ~5 min -> 30s There is a memory leak in the sip_is_packet_resend area as well. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32090 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-25From Didier Gautheron via bug 4419:stig1-15/+1
se_alloc and ep_alloc never return NULL and se_alloc0 already initialized data with 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31654 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-22Fixes for gcc -Wshadow warnings; Fix indentation and do other minor cleanup ↵wmeier1-434/+434
in a few cases. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31617 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-20To check which SIP method we saw, just #define values for the index inguy1-7/+27
the sip_methods[] table and check the index's value, don't do a string comparison. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31595 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-20From Karl Heinz Wolf:etxrab1-0/+6
Marking in dialog SIP requests. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3588 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31594 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-11From Benoit Sibaud:jake1-2/+20
New option to allow retransmission detection with different source ports. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31496 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-16Update SIP headers.etxrab1-148/+160
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30969 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-13From Stephane Bryant via ↵morriss1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2815 but (since the patch no longer applied cleanly) essentially manually re-implemented by me: Rename "stun" to "classic stun" and "stun2" to "stun", to follow the usage defined in draft-ietf-behave-rfc3489bis-18 section 2. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29884 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29342 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@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-29Support for IPv6 addresses in URIkukosa1-2/+24
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29227 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-6/+6
(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-05-17Remove C++ style comments.jake1-33/+31
Cleanup indentation a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28380 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-16From Chidambaram Arunachalam:etxrab1-323/+514
SIP Patch to include support for Max-Breadth, Answer-Mode, Priv-Answer-Mode, Trigger-Consent and Permission Missing headers https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3463 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28375 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-15Dissect more than one Via entry if found in a single line.martinm1-171/+201
Fixes bug 3406. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28054 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-13Try to please the build bot, fix indentation.etxrab1-40/+40
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28038 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-13From Andreas Heise:etxrab1-26/+431
add SIP URI PARTS dissection to packet-sip.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3399 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28037 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-06More size_t fixes.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27977 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-30More size_t casts(Unfinished)etxrab1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27898 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-27From Andreas Heise:etxrab1-11/+10
SIP dissector fix: mismatch of P-Asserted-Identity and P-Answer-State headers https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3356 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27859 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-05Init. data to zero.etxrab1-3/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27378 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-01Use #if 0, not C99-style comments, to get rid of unused code.guy1-6/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27344 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-01Squelch warnings, for now.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27343 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-01Calculate the avrage setuptime.etxrab1-0/+128
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27342 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-17Use ascii_strdown_inplace instead of g_ascii_strdown in a few places.wmeier1-10/+12
This also fixes a few cases where memory was not freed after g_ascii_strdown. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27254 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-03new "sip.hdr" subdissector table for SIP Extension headerskukosa1-16/+34
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26677 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-23Minor revision related to proto_reg_handoff ...wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26252 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-03Cleanup related to prefs & proto_reg_handoffwmeier1-64/+60
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26128 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-01From stéphane bryant:etxrab1-0/+1
STUN, STUN2 and TURN dissection enhancements. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25895 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-29Handle malformed SIP headers (empty header line missing) and add an expertetxrab1-25/+46
item explaining the fault. Fixes bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2729 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25862 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-08Register raw_sip.line with correct protocol, as noticed while testingmartinm1-5/+11
patch for 2581. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25676 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-30Fix for bug 2659:jake1-3/+19
Account for IPv6 addresses representation in Via header. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25635 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-25Make sip.msg_hdr a string field instead of FT_NONE.martinm1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25602 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-23Save timestamp when updating entry for new request frames in existing call.martinm1-0/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25532 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-23Show short version of Content-Length header.martinm1-5/+6
Fixes but 2635. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25531 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Initialize response_time.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25350 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Calculate and display SIP response time.martinm1-22/+48
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25349 f5534014-38df-0310-8fa8-9805f1628bb7