aboutsummaryrefslogtreecommitdiffstats
path: root/epan/req_resp_hdrs.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-08More size_t fixes. Use a string buffer in range.c.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27999 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-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-2/+6
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-11-19From Yaniv kaul:bondolo1-8/+12
Adds const declarations to req_resp_hdrs_do_reassembly() and re-orders some actions to occur after tests which may decide that the actions were not required. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23504 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-03Fixes reassembly of chunked http-responses spanning multiple tcp segmentssake1-3/+1
(bugs 1581,1851 and 1868) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23061 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-21From Mike Duigou <wireshark@duigou.org> (bug 1698):richardv1-3/+3
Enclosed is a patch with fixes problems with the desegmentation of chunked HTTP message bodies. ... Changing the value of pinfo->desegment_len to DESEGMENT_ONE_MORE_SEGMENT rather than the current 1 or 2 seems to make everything work. (I'm kind of confused as to why the headers resassembly code already used DESEGMENT_ONE_MORE_SEGMENT and the body reassembly code did not). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22570 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Remove almost all of the casts I committed recently and in place ofsfisher1-4/+4
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-26Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errorssfisher1-4/+4
under gcc to tools/lemon, plugins/mate and epan/ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21204 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-10fix for bug 1142sahlberg1-8/+30
if we dont have a content-length but we do have a keepalive in the header then we should not do reassemble-until-fin. convert some tvb_get_String into tvb_get_ephemeral_string at the same time git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19874 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-07fix for bug 1200sahlberg1-2/+2
there used to be a bug in tcp reassembly that even if the dissector only asked for x more bytes from the next segment the entire segment would still be added to reassembly. this caused some issues when there was a new multisegment pdu that started at the end of the segment but this bug was fixed when tcp reassembly was refactored semi-recently. there was also another "bug" in the http reassembly that it would only ask for one more byte at a time when doing reassembly. this did work well however when we still had the bug in tcp reassembly but made wireshark become very very very slow once this tcp bug was fixed since it is very very very slow to reassemble a huge http pdu just one byte at a time. this patch adds partial support (what we need for http which does not use tcp_dissect_pdus() ) for the desegmentation flag : DESEGMENT_ONE_MORE_SEGMENT and also to the http dissector so that reassembly of http headers spanning multiple semgents now become fast again git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19859 f5534014-38df-0310-8fa8-9805f1628bb7
2006-09-10implement support to reassemble tcp sessions until the end of the session (FIN)sahlberg1-0/+25
add required code to the http (and others) code in req_resp_hdrs.c to signal to tcp when it wants a session to be reassembled to the FIN. This is currently done for all HTTP packets where we have a Content-type in the header but no content-length. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19185 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-20There's no guaranteee that "req_resp_hdrs_do_reassembly()" gets calledguy1-2/+1
only at the beginning of a tvbuff, so it needs an argument that's the starting offset in the tvbuff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13128 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-07From Chris Maynard: free strings fetched with "tvb_get_string()" whenguy1-0/+2
we're done with them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12975 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-29Move the request/response header helper routines to the epan directory.guy1-0/+339
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12129 f5534014-38df-0310-8fa8-9805f1628bb7