aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xml.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-11Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-5/+5
proto_tree_add_item() calls. svn path=/trunk/; revision=42565
2012-04-04Allow loading xml files (file MUST start with <?xml).Jakub Zawadzki1-11/+10
I needed it for testing (bug #7028) if you feel like it's stupid idea give me nfo :) svn path=/trunk/; revision=41944
2012-03-31Fix off by one shift errors introduced in r39530 where it seemed proper[1]Jakub Zawadzki1-1/+1
[1] I'm unsure of packet-dtpt, so I haven't patch it. svn path=/trunk/; revision=41873
2012-01-26Add an 3gpp xml entry.Anders Broman1-0/+1
svn path=/trunk/; revision=40731
2011-12-13Fix tvb memory leak; Fix hex byte display for Unicode XML.Bill Meier1-1/+2
svn path=/trunk/; revision=40187
2011-10-23Replace use of tvb_get_ephemeral_faked_unicode() by use of ↵Bill Meier1-1/+1
tvb_get_ephemeral_unicode_string(); Fix encoding arg as needed. svn path=/trunk/; revision=39530
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵Bill Meier1-1/+1
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). svn path=/trunk/; revision=39426
2011-07-28application/simservs+xmlAnders Broman1-0/+1
svn path=/trunk/; revision=38235
2011-04-22Fix various warnings found by clang 3.0 (trunk 129935) complier:Stephen Fisher1-2/+2
- Extraneous parentheses - Use _U_ for unused function parameters instead of assigning the variable to itself svn path=/trunk/; revision=36826
2011-04-21Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+0
svn path=/trunk/; revision=36766
2011-04-21Fix Dead Store (Dead nested assignment) Warning found by Clang Alexis La Goutte1-2/+1
svn path=/trunk/; revision=36762
2011-01-10Add application/vnd.3gpp.cw+xmlAnders Broman1-0/+1
svn path=/trunk/; revision=35450
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-2/+2
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-10Define some fcns & vars as static ...Bill Meier1-13/+10
svn path=/trunk/; revision=34458
2010-07-08from Tarjei Knapstad.Anders Broman1-17/+15
Minor cleanups in packet-xml dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4987 svn path=/trunk/; revision=33475
2010-05-11Allow for heuristic dissection of Unicode XML.Jaap Keuter1-8/+20
svn path=/trunk/; revision=32757
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-2/+0
svn path=/trunk/; revision=32367
2010-03-01From LEGO via bug 4395:Stig Bjørlykke1-0/+2
Have the current_frame's last_item actually point to the last item. svn path=/trunk/; revision=32069
2010-03-01From LEGO via bug 4405:Stig Bjørlykke1-2/+2
Add the dot ('.') to the characters that can compose a name. svn path=/trunk/; revision=32068
2010-01-13From Didier Gautheron:Anders Broman1-2/+1
check_col.diff Remove redundant calls to check_col() if it guards only one columns function with one parameter after the column type. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 svn path=/trunk/; revision=31519
2009-12-14Add ETSI Applications.Anders Broman1-0/+12
svn path=/trunk/; revision=31266
2009-09-30Rename hfinfo.ref_count to hfinfo.ref_type since that's now how it's used.Bill Meier1-1/+1
svn path=/trunk/; revision=30216
2009-07-18From Kovarththanan Rajaratnam via bug 3719:Stig Bjørlykke1-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. svn path=/trunk/; revision=29137
2009-06-19From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-1/+1
More header_field_info cleanup. svn path=/trunk/; revision=28772
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-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 svn path=/trunk/; revision=28770
2009-03-29More size_t casts.Anders Broman1-1/+1
svn path=/trunk/; revision=27882
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-13/+6
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-01-28- add attributes and CDATA into XML structureTomas Kukosa1-4/+96
- implement functions for searching in XML structure svn path=/trunk/; revision=27316
2008-12-16Fix some spelling/typosBill Meier1-2/+2
svn path=/trunk/; revision=27024
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26649
2008-09-24put original tag name (not lowercase) into dissected xml structure tooTomas Kukosa1-3/+6
dissect xml even if tree is null svn path=/trunk/; revision=26261
2008-09-15Fix indentation to be consistent Bill Meier1-361/+361
svn path=/trunk/; revision=26194
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),Guy Harris1-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. svn path=/trunk/; revision=26131
2008-08-13supply dissected XML structure to caller dissectorTomas Kukosa1-54/+51
svn path=/trunk/; revision=26005
2008-05-09Fix a typo: strl -> strlenStig Bjørlykke1-1/+1
svn path=/trunk/; revision=25263
2008-05-09Fix some of the Errors/warnings detected by checkapi.Anders Broman1-4/+4
svn path=/trunk/; revision=25261
2008-05-05Remove depreciated functions g_string_sprint, g_string_sprintfa.Anders Broman1-4/+4
svn path=/trunk/; revision=25238
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-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 svn path=/trunk/; revision=24829
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,Jeff Morriss1-0/+2
free it when we're done with the file name. svn path=/trunk/; revision=24479
2008-02-26Allow UDP heuristic for XMLTomas Kukosa1-1/+16
svn path=/trunk/; revision=24468
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-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. svn path=/trunk/; revision=24089
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-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. svn path=/trunk/; revision=23623
2007-11-15From Yaniv Kaul :Mike Duigou1-0/+1
Adds application/rss+xml mime type as a recognized XML type. It is used by some RSS servers. svn path=/trunk/; revision=23465
2007-10-24Use the media_type_dissector_table for the content type.Anders Broman1-0/+3
Add a few media types. svn path=/trunk/; revision=23268
2007-08-10An old proposal from Martin, append to COL_PROTO the name taken from a ↵Luis Ontanon1-4/+9
matching DTD (in case the media-type actually matches it). Having the name of the root element found would be nicer. svn path=/trunk/; revision=22483
2007-08-08Add more XCAP application types.Anders Broman1-0/+3
svn path=/trunk/; revision=22471
2007-08-07Remove XML heuristic dissector when disabling it.Luis Ontanon1-8/+24
svn path=/trunk/; revision=22465
2007-08-04Add preferences to register XML for a TCP port or as a TCP heuristic dissector.Luis Ontanon1-6/+36
svn path=/trunk/; revision=22454
2007-04-30Add a header that redefines g_array_index() to throw in a "void *" castGuy Harris1-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. svn path=/trunk/; revision=21627