aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-11More GLIB_CHECK_VERSION cleanups. Update the minimum GLib/GTK+ versionsGerald Combs1-8/+0
in README.devloper. Remove g_gnuc.h since it's no longer needed. Remove tvbuff_init(), tvbuff_cleanup(), reassemble_init(), and reassemble_cleanup() since they were only used for older GLib versions which didn't support GSlices. Assume we always support the "matches" operator. svn path=/trunk/; revision=37978
2011-07-10Add port 2710 for the XBT BitTorrent tracker (and note why it's added;Guy Harris1-1/+3
the other unusual ports should be mentioned as well). svn path=/trunk/; revision=37952
2011-05-27Treat TVBs as opaque: use the accessor functions instead of accessing the fieldsJeff Morriss1-2/+2
directly. svn path=/trunk/; revision=37420
2011-05-02Support content-type x-gzip and x-deflate, as described in RFC2616 asStig Bjørlykke1-3/+4
equivalent to gzip and deflate. This fixes bug 5882. svn path=/trunk/; revision=36963
2011-04-18Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-16/+0
svn path=/trunk/; revision=36700
2011-03-26The 'name's passed to tick_stat_node() do not need to be static.Jeff Morriss1-5/+6
svn path=/trunk/; revision=36341
2011-03-24From Dirk: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2930 :Jeff Morriss1-8/+14
Make the image (png, gif, jfif) dissectors "new style" so that they don't dissect data that does not belong to them. Modify the HTTP dissector to call heuristic dissectors on the body if the registered subdissector does not accept/dissect the data. From me: don't use assert() and don't add a preference to the HTTP dissector for this behavior: it makes sense to behave like that by default. svn path=/trunk/; revision=36305
2011-01-10Add 2869 to the list of HTTP ports: http://support.microsoft.com/kb/886257Gerald Combs1-1/+1
svn path=/trunk/; revision=35461
2010-12-23From Julien Kerihuel:Jaap Keuter1-2/+8
I've just finished to write a ncacn_http dissector for Wireshark which provides the ability to dissect Outlook anywhere packets properly (as specified by [MS-RPCH].pdf documentation. svn path=/trunk/; revision=35259
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-8/+8
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.) svn path=/trunk/; revision=35224
2010-10-30From Robert Bullen:Anders Broman1-8/+36
Improve the HTTP dissection of the Response Status Line. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5338 svn path=/trunk/; revision=34712
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofGuy Harris1-1/+1
the callbacks we have use that argument - is it really needed?). svn path=/trunk/; revision=34694
2010-10-27Try to decode the unknown multipart subtype anyway.Jaap Keuter1-0/+7
svn path=/trunk/; revision=34658
2010-10-25From Yaniv Kaul via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5336 :Jeff Morriss1-3/+42
Attached patch: 1. Adds port 5985 as a HTTP traffic port (used by MS Powershell remoting over HTTP) 2. Adds dissection of Kerberos authentication to HTTP. svn path=/trunk/; revision=34641
2010-09-21Add a castJeff Morriss1-1/+1
svn path=/trunk/; revision=34164
2010-09-21Use size_t to keep the Windows compiler happyJeff Morriss1-1/+1
svn path=/trunk/; revision=34163
2010-09-21From Jakub Zawadzki via ↵Jeff Morriss1-96/+130
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3336 : We parse host & request page from headers, so we easily can construct full http uri. I was thinking about making it as field, so we could filter, print in column info, or do other fancy stuff, but for now this is imho enough. From me: add it as a (filterable) item. Clean up spacing and indentation in a few places. svn path=/trunk/; revision=34162
2010-09-05Request-Line can contain an empty Request-URI.Stig Bjørlykke1-4/+4
I don't want to change get_token_len() to not skip multiple spaces, because I don't know if other protocols depends on this behaviour. We should maybe check this... This fixes bug 5181. svn path=/trunk/; revision=34063
2010-05-13As suggested in ↵Jeff Morriss1-5/+1
http://www.wireshark.org/lists/wireshark-dev/200809/msg00075.html (as referenced in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907 ) and https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3411 : Write a new convenience routine for finding a conversation and, if it is not found, create it. The frame number and addresses are taken from pinfo (as is the common case). Use this function in a bunch of dissectors. svn path=/trunk/; revision=32790
2010-05-12From Dirk via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4758 :Jeff Morriss1-7/+11
The HTTP dissector uses strtoll() to convert the Content-Length string into a 64bit variable. But that string can contain a number larger (or less) than 64bit, which lets the strtoll() return INT_MAX (or INT_MIN). strtoll() then indicates this with errno==ERANGE. The attachted patch checks if errno is set this way and then treats that HTTP Content-Length as unspecified, since we don't know the real size. I haven't checked other occurences of strtoll() in the HTTP dissector if they could benefit from the errno check, or if other dissectors could use it. svn path=/trunk/; revision=32772
2010-04-09Squelch compiler warnings. (We know that header.content_length is lessGuy Harris1-2/+2
than a value that fits into an int, so we know its value will fit into an int.) svn path=/trunk/; revision=32434
2010-04-09Use a 64-bit number to store the content length. This fixes:Jeff Morriss1-3/+11
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1958 Of course this doesn't mean we can reassemble that much data. svn path=/trunk/; revision=32433
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+1
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2010-01-25From Didier Gautheron via bug 4419:Stig Bjørlykke1-3/+0
se_alloc and ep_alloc never return NULL and se_alloc0 already initialized data with 0. svn path=/trunk/; revision=31654
2009-09-24* Prefer col_append_str instead of col_append_fstr for constant stringsKovarththanan Rajaratnam1-2/+1
* Remove check_col guards svn path=/trunk/; revision=30127
2009-09-14Revert 29889 to stop the fuzz failures.Jeff Morriss1-12/+19
svn path=/trunk/; revision=29902
2009-09-14From Didier Gautheron:Anders Broman1-19/+12
optimizations patch http://wiki.wireshark.org/Development/Optimization 'patch.29854.diff.gz" Use "g_realloc". svn path=/trunk/; revision=29889
2009-09-06Rename address_to_str() to ep_address_to_str() because:Kovarththanan Rajaratnam1-2/+2
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). svn path=/trunk/; revision=29747
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.Bill Meier1-0/+1
svn path=/trunk/; revision=29568
2009-08-02Don't do dissector_add twice on TCP port 3689;Bill Meier1-2/+2
packet-daap requests registration on that port via http_dissector_add and thus packet-http does not need to do a default registration on that port. Also: fix a typo in a comment. svn path=/trunk/; revision=29265
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-1/+1
(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 svn path=/trunk/; revision=28770
2009-06-15Trivial warning fixes:Jörg Mayer1-1/+1
- Might be used uninitialized - not a prototype - comma at end of enum svn path=/trunk/; revision=28730
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-3/+3
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
2009-05-19From Artem Tamazov (bug 3472):Stig Bjørlykke1-1/+3
Save/Restore pinfo->private_data when used. svn path=/trunk/; revision=28412
2009-05-19From Abhik Sarkar via bug 3242:Gerald Combs1-7/+210
Add a UAT for custom HTTP header fields. From me: Use se_alloc0 to initialize a struct. Use g_strdup(...) instead of g_strdup_printf("%s"...). Add a missing UAT_END_FIELDS. svn path=/trunk/; revision=28406
2009-05-13Apply some of the patches from:Anders Broman1-4/+2
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356
2009-03-30More size_t casts.Gerald Combs1-4/+4
svn path=/trunk/; revision=27897
2008-12-20Fix various typos and spelling errors (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27065
2008-12-08Partial support for RFC 2324.Gerald Combs1-0/+1
svn path=/trunk/; revision=26931
2008-10-23Add the Content-Length header as a header string, while maintaining the ↵Jaap Keuter1-3/+16
content-length filter option. svn path=/trunk/; revision=26522
2008-09-26Minor cleanup related to proto_register & proto_reg_handoffBill Meier1-3/+4
svn path=/trunk/; revision=26280
2008-08-03Move common code to base64.cAnders Broman1-18/+0
svn path=/trunk/; revision=25908
2008-07-12More (mostly stats tree) unsigned->signed char cleanupJeff Morriss1-1/+1
svn path=/trunk/; revision=25717
2008-07-11Change the stats tree API to use signed chars instead of guint8s for all itsJeff Morriss1-17/+29
strings; this should fix a number of signed/unsigned char warnings. Reindent a bunch, too. svn path=/trunk/; revision=25716
2008-07-08Display "Decompression failed" when appropriate (& Fix some src spacing)Bill Meier1-2/+3
svn path=/trunk/; revision=25681
2008-07-03Get rid of #defines that are no longer being used (we now have a portGuy Harris1-6/+0
range list preference for HTTP, which we initialize to the default list). svn path=/trunk/; revision=25667
2008-06-28Fix some warnings reported by gcc -Wshadow ...Bill Meier1-45/+45
svn path=/trunk/; revision=25628
2008-05-13Fix some of the Errors/warnings detected by checkapi.Bill Meier1-6/+10
svn path=/trunk/; revision=25282
2008-04-09Remove:Anders Broman1-3/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829