Commit graph

29 commits

Author SHA1 Message Date
Luis Ontanon
ca6a9a7d13 solve both issues pointed out in:
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


svn path=/trunk/; revision=19903
2006-11-15 18:40:37 +00:00
Anders Broman
83971ab494 Add application/media_control+xml
svn path=/trunk/; revision=19408
2006-10-03 18:04:15 +00:00
Luis Ontanon
87d6b997c6 From Mike Digou:
- free the right object.


svn path=/trunk/; revision=18774
2006-07-20 17:32:10 +00:00
Gerald Combs
7976c442db Fix a few format string bugs found by Ilja van Sprundel.
svn path=/trunk/; revision=18677
2006-07-07 00:45:54 +00:00
Anders Broman
996d4db495 Ethereal->Wireshark
svn path=/trunk/; revision=18234
2006-05-28 19:49:07 +00:00
Ronnie Sahlberg
feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Anders Broman
56f73049b9 From Martin Mathieson:
- 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.

svn path=/trunk/; revision=18173
2006-05-16 19:04:53 +00:00
Anders Broman
4447785ed7 Add some more Media types.
svn path=/trunk/; revision=17927
2006-04-20 15:24:04 +00:00
Anders Broman
7fcc6f767b Add some applications
svn path=/trunk/; revision=17910
2006-04-19 18:58:13 +00:00
Luis Ontanon
009b5f7d29 From ENDOH Akira:
Add heuristic dissection of XML to SIP bodies with unknown media_type.


svn path=/trunk/; revision=17247
2006-02-11 00:13:23 +00:00
Luis Ontanon
0bb1b874ec Add heuristic dissection of XML
svn path=/trunk/; revision=17228
2006-02-09 13:05:32 +00:00
Luis Ontanon
ba58e57a41 Fixes bug 717
Tag names with digits were not recognized.


svn path=/trunk/; revision=17128
2006-01-30 22:43:08 +00:00
Jörg Mayer
9575877bb7 packet-radius.c, packet-xml.c:
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.

svn path=/trunk/; revision=16865
2005-12-20 08:35:53 +00:00
Jörg Mayer
eff40f65db Trivial warning fixes
svn path=/trunk/; revision=16561
2005-11-22 12:51:14 +00:00
Anders Broman
e91462a7d8 Add "application/resource-lists+xml" to xml types
svn path=/trunk/; revision=16374
2005-11-01 19:50:25 +00:00
Luis Ontanon
f35f5e317e do not free the element name, as its been passed to the hf array.
svn path=/trunk/; revision=16154
2005-10-07 17:59:13 +00:00
Luis Ontanon
f1b498587b remove location from dtd_build_data_t avoiding to (double) free it.
svn path=/trunk/; revision=16147
2005-10-06 22:01:52 +00:00
Luis Ontanon
c6ed07b117 tvbparse.[ch]:
- 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()


svn path=/trunk/; revision=16045
2005-09-28 21:32:47 +00:00
Luis Ontanon
02a506e15f make sure we tell tvbparse_until() to include the last token.
svn path=/trunk/; revision=16033
2005-09-28 01:17:45 +00:00
Luis Ontanon
95d60cc7ea in tvbparse:
- 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.


svn path=/trunk/; revision=16031
2005-09-27 22:57:07 +00:00
Luis Ontanon
3cf75fd6bb get rid of most dtd leaks.
There's just one left I'm aware of (the doctype name).


svn path=/trunk/; revision=15990
2005-09-24 19:03:35 +00:00
Ulf Lamping
a9e1c71b7a bugfix: don't crash, if current_frame->ns == NULL
svn path=/trunk/; revision=15967
2005-09-22 21:18:19 +00:00
Luis Ontanon
88dd585d23 in register_dtd() do not leak the elements hash
svn path=/trunk/; revision=15959
2005-09-22 16:41:53 +00:00
Gerald Combs
71f16f2a3f If pinfo->match_string is null (e.g. when we're called from the Jabber
dissector), don't try to look it up in a hash table.  Fixes the current
Buildbot failure.

svn path=/trunk/; revision=15929
2005-09-21 15:03:19 +00:00
Luis Ontanon
4c14b12c25 Because there's more than just text in XML...
DTDs are imported to create fields


svn path=/trunk/; revision=15851
2005-09-17 17:05:46 +00:00
Guy Harris
45e8a4c579 "g_strdown()" doesn't return a value in GLib 1.2[.x]; don't depend on it
doing so.

svn path=/trunk/; revision=15767
2005-09-12 07:55:14 +00:00
Luis Ontanon
96326c0b86 the dtd parser (still missing the glue) and few fixes to packet-xml.c
svn path=/trunk/; revision=15745
2005-09-10 17:29:15 +00:00
Luis Ontanon
e6f9a5ce11 forgot the Id
svn path=/trunk/; revision=15730
2005-09-08 21:21:05 +00:00
Luis Ontanon
c7d06bc63f a new version of the xml dissector, look ma no lex!
mmh  still missing the dtd parser...


svn path=/trunk/; revision=15728
2005-09-08 21:14:24 +00:00