aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xml.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-18From Kovarththanan Rajaratnam via bug 3719:stig1-1/+1
This patch optimizes proto_tree_prime_hfid() + friends and plugs a memleak in the process. From me: Removed unused hfindex in proto_tree_new_item() Fixed ref_count entry in struct header_field_info. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29137 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-19From Kovarththanan Rajaratnam via bug 3548:stig1-1/+1
More header_field_info cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28772 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-8/+8
(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-03-29More size_t casts.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27882 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-13From Jakub Zawadzki (bug 3331):stig1-13/+6
g_free() is NULL safe, so we don't need check against it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27718 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-28- add attributes and CDATA into XML structurekukosa1-4/+96
- implement functions for searching in XML structure git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27316 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-16Fix some spelling/typoswmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27024 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix some "format not a string literal and no format arguments" warnings.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26649 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-24put original tag name (not lowercase) into dissected xml structure tookukosa1-3/+6
dissect xml even if tree is null git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26261 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-15Fix indentation to be consistent wmeier1-361/+361
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26194 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),guy1-37/+39
do *not* modify the string handed to them - they g_mallocate a new string and return it. Create routines that *do* ASCII-only case mapping in place, and use them instead. Clean up indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26131 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-13supply dissected XML structure to caller dissectorkukosa1-54/+51
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26005 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-09Fix a typo: strl -> strlenstig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25263 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-09Fix some of the Errors/warnings detected by checkapi.etxrab1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25261 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-05Remove depreciated functions g_string_sprint, g_string_sprintfa.etxrab1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25238 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Remove:etxrab1-3/+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
2008-04-07- Remove GLIB1 codesfisher1-13/+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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24829 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,morriss1-0/+2
free it when we're done with the file name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24479 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-26Allow UDP heuristic for XMLkukosa1-1/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24468 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-14This patch adds support for configuration profiles, which can be used tostig1-1/+1
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24089 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-1/+5
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-15From Yaniv Kaul :bondolo1-0/+1
Adds application/rss+xml mime type as a recognized XML type. It is used by some RSS servers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23465 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-24Use the media_type_dissector_table for the content type.etxrab1-0/+3
Add a few media types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23268 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-10An old proposal from Martin, append to COL_PROTO the name taken from a ↵lego1-4/+9
matching DTD (in case the media-type actually matches it). Having the name of the root element found would be nicer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22483 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-08Add more XCAP application types.etxrab1-0/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22471 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-07Remove XML heuristic dissector when disabling it.lego1-8/+24
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22465 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-04Add preferences to register XML for a TCP port or as a TCP heuristic dissector.lego1-6/+36
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22454 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-30Add a header that redefines g_array_index() to throw in a "void *" castguy1-4/+5
to work around the "data" field of a GArray being a guint8 *, and defines a g_array_data() macro to extract that field and cast it to void *. Use that header where needed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21627 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-26From Sebastien Tandel sahlberg1-5/+5
fixes for various compiler warnings git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21210 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-15 solve both issues pointed out in:lego1-13/+15
http://wireshark.org/lists/ethereal-dev/200605/msg02351.html - dtd_parse.l: be more liberal on what a name can be (a number now can be a name) - packet-xml.c if proto-name is given use it instead of the root element name as prefix for generated fields git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19903 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-03Add application/media_control+xmletxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19408 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-20From Mike Digou:lego1-1/+1
- free the right object. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18774 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-07Fix a few format string bugs found by Ilja van Sprundel.gerald1-188/+188
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18677 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-28Ethereal->Wiresharketxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18234 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-16From Martin Mathieson:etxrab1-3/+7
- adds application/xpidf+xml as a media type known to be xml - appends /xml to the protocol column (as SDP does). It would be nice to append the top-level element, or the name taken from a matching DTD, but this will do for now (at least its a short name). - corrects the help text for the preference. I can see that it is registered as a heuristic for "http", "sip" and "media" I've also included a slightly updated version of reginfo.dtd (RFC 3680) for the dtds folder. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18173 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-20Add some more Media types.etxrab1-1/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17927 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-19Add some applicationsetxrab1-12/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17910 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-11From ENDOH Akira:lego1-1/+2
Add heuristic dissection of XML to SIP bodies with unknown media_type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17247 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-09Add heuristic dissection of XMLlego1-5/+35
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17228 f5534014-38df-0310-8fa8-9805f1628bb7
2006-01-30Fixes bug 717lego1-2/+2
Tag names with digits were not recognized. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17128 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-20packet-radius.c, packet-xml.c:jmayer1-54/+56
Fix a memory leak found by valgrind: Although dir isn't a directory it may still use memory packet-xml.c: Reformat the relevant function in packet-xml.c to be readable on systems where a tab is 8 spaces. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16865 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-22Trivial warning fixesjmayer1-8/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16561 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-01Add "application/resource-lists+xml" to xml typesetxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16374 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-07do not free the element name, as its been passed to the hf array.lego1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16154 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-06remove location from dtd_build_data_t avoiding to (double) free it.lego1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16147 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-28tvbparse.[ch]:lego1-3/+3
- add a tvbparse_handle() (for recursion) - change tvbparse_until() to allow more control when parsing - make the wanted control an union so that different types of data can be used packet-xml.c: - change the parser definition to match changes to tvbparse_until() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16045 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-28make sure we tell tvbparse_until() to include the last token.lego1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16033 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-27in tvbparse:lego1-85/+106
- tvbparse_some now handles 0 items. - added accessors for a tt's offset and remaining length. in packet-xml: - min_len=0 for tvbparse_chars() is soon going to mean zero instead of 1 change the 0s to 1s. - attribute names can have ':' even if it's namespaces isn't managed yet. - split the xml grammar in more elements so It can be actually read by a human being. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16031 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-24get rid of most dtd leaks.lego1-34/+81
There's just one left I'm aware of (the doctype name). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15990 f5534014-38df-0310-8fa8-9805f1628bb7