aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
Commit message (Collapse)AuthorAgeFilesLines
* Move the print modules into epan.Jeff Morriss2013-07-121-1809/+0
| | | | svn path=/trunk/; revision=50526
* Move some more modules into epan.Jeff Morriss2013-07-111-1/+1
| | | | svn path=/trunk/; revision=50517
* Make tree_is_expanded array static, add setter/getter function.Jakub Zawadzki2013-07-071-1/+1
| | | | svn path=/trunk/; revision=50433
* From beroset:Bill Meier2013-03-201-2/+2
| | | | | | | remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
* Use consistent indentation & formatting style.Bill Meier2013-02-231-976/+979
| | | | | | (Re-commit since the previous commit for this was reverted). svn path=/trunk/; revision=47845
* (version 2); Implement proto_tree_write_fields without using ep_strbufs.Bill Meier2013-02-231-24/+79
| | | | | | | | | - Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8348: "tshark -T fields can't print the full value of fields where the value, as a text string, is longer than 65535 bytes" - Reduces ep memory allocation & string copies; svn path=/trunk/; revision=47842
* Revert SVN #47724, #47726 & #47727.Bill Meier2013-02-181-1049/+1002
| | | | | | | | Some rethinking required since I failed to understand some of the details as to how proto_tree_write_fields() really works. :( svn path=/trunk/; revision=47728
* Use consistent indentation & formatting style.Bill Meier2013-02-181-992/+993
| | | | svn path=/trunk/; revision=47727
* Don't use index as a variable name (i knew that..).Bill Meier2013-02-181-6/+6
| | | | | | Fixes compiler warning. svn path=/trunk/; revision=47726
* Implement proto_tree_write_fields without using ep_strbufs.Bill Meier2013-02-181-18/+64
| | | | | | | | | | - Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8348: "tshark -T fields can't print the full value of fields where the value, as a text string, is longer than 65535 bytes" - Reduces ep memory allocation & string copies; svn path=/trunk/; revision=47724
* Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8027 :Pascal Quantin2012-12-161-2/+2
| | | | | | Fix tshark hex bytes output svn path=/trunk/; revision=46557
* Allow TShark to specify columns as fields with -e option ↵Michael Mann2012-12-081-20/+52
| | | | | | (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2892) svn path=/trunk/; revision=46465
* Add changes missing from the last commit.Gerald Combs2012-11-011-48/+25
| | | | svn path=/trunk/; revision=45862
* 1) Allow for the possibility for both packet summary and packet details to beChris Maynard2012-10-221-4/+4
| | | | | | | | | | | | | | | | | | | | printed when either -T is not specified or "-T text" or "-T ps" is selected. 2) Allow for packet hex/ascii to be printed without necessarily requiring that either packet summary or packet details also be printed. This just means that if you want packet summary information, use "-Px" instead of just "-x". 3) Fix bug with order of evaluation of -V and "-T psml". 4) If a packet separator is specified, always use it regardless of the -PVx options chosen. 5) Don't print 2 lines of separation between packets when only printing hex/ascii. Print 1 line of separation as in all other cases. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7782 plus other misc. enhancements. svn path=/trunk/; revision=45715
* Make data_source opqaue, add getter for tvb.Jakub Zawadzki2012-10-201-9/+9
| | | | svn path=/trunk/; revision=45672
* We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss2012-09-201-3/+1
| | | | svn path=/trunk/; revision=45015
* Remove string constants from g_assert() calls, as per thread on wireshark-dev:Evan Huus2012-09-051-3/+6
| | | | | | http://www.wireshark.org/lists/wireshark-dev/201209/msg00030.html svn path=/trunk/; revision=44774
* Update Free Software Foundation address.Jakub Zawadzki2012-06-281-1/+1
| | | | | | (COPYING will be updated in next commit) svn path=/trunk/; revision=43536
* Remove doubled semicolons and semicolons outside function.Jakub Zawadzki2012-04-131-1/+1
| | | | svn path=/trunk/; revision=42053
* Treat expert info as a <field> instead of a <proto> when exporting to pdml.Chris Maynard2011-12-141-2/+4
| | | | svn path=/trunk/; revision=40204
* Don't close the field tag here; it's now closed with </field>.Chris Maynard2011-12-131-1/+1
| | | | svn path=/trunk/; revision=40184
* Add missing </field> for data tree. Fixes ↵Chris Maynard2011-12-121-1/+3
| | | | | | https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3809 svn path=/trunk/; revision=40162
* Fix incorrect "pos=0" pdml values. Resolves the issue reported in comment 4 ↵Chris Maynard2011-12-121-2/+10
| | | | | | of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2432 and closes the bug. svn path=/trunk/; revision=40161
* Export all data sources of a frame to a C array. Fixes ↵Chris Maynard2011-12-091-16/+51
| | | | | | https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4988 svn path=/trunk/; revision=40136
* Check for valid filename in write_pdml_preamble().Stig Bjørlykke2011-08-161-1/+1
| | | | | | Part of fix for bug 6245. svn path=/trunk/; revision=38563
* From Dirk Jagdmann via bug 5875:Gerald Combs2011-05-191-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | My attachment adds a link to a XSLT file to the preamble of the PDML. The XSLT will transform the PDML to a HTML page, and the HTML page features a look similar to Wireshark. See http://cubic.org/~doj/ebay/a.pdml for an example. The patch also contains a small perl program which converts the Wireshark colortable into javascript code which is used in the XSLT file. If you want to use a different color scheme you would execute the perl program and insert the generated javascript function into your XSLT file. To view the HTML you could either place the PDML and XSLT file on your webserver and verify that your webserver sends the PDML file as "text/xml". Then your webbrowser will find the linked XSLT file, download that as well and convert the PDML to HTML on the fly. You could also use an XSLT processor like xsltproc to convert the PDML and XSLT into a static HTML file. From me: Minor fixups. svn path=/trunk/; revision=37298
* More eradication of old-style function definitions.Guy Harris2011-05-171-1/+1
| | | | svn path=/trunk/; revision=37216
* Once we start printing an "opened up" (tshark -O) tree, print the entireJeff Morriss2011-05-041-3/+6
| | | | | | | subtree. Otherwise subitems whose abbreviation doesn't match the protocol name (such as text items) won't get printed. svn path=/trunk/; revision=36983
* From Edwin Groothuis via bug 5870:Stig Bjørlykke2011-04-291-0/+14
| | | | | | | | The supplied patch adds a new option -O, which specifies a list of protocols (names can be found with the "-G protocols" option) to be fully decoded while the others only show the layer header. svn path=/trunk/; revision=36947
* Added a sanity check in output_fields_set_option.Stig Bjørlykke2011-03-261-0/+3
| | | | | | Coverity 552. svn path=/trunk/; revision=36351
* Fix gcc warning. (Sorry, but VS2008EE complains a LOT less.)Chris Maynard2010-11-081-1/+1
| | | | svn path=/trunk/; revision=34809
* Ensure strings are properly quoted for CSV output. Fixes bug 1297.Chris Maynard2010-11-081-12/+30
| | | | svn path=/trunk/; revision=34806
* Rev 29427 added packet_add_new_data_source() with a comment indicating thatJeff Morriss2010-10-301-8/+0
| | | | | | | | | | | the data source does not need to be allocated if (!tree). Rev 30158 took the if (!tree) check out indicating that the check was invalid. So: (since packet_add_new_data_source() now only calls add_new_data_source()), remove packet_add_new_data_source(). svn path=/trunk/; revision=34717
* Ensure we always print the heading when dumping PSML and CSV.Stig Bjørlykke2010-09-011-5/+9
| | | | svn path=/trunk/; revision=34039
* Check input string in ps_clean_string().Stig Bjørlykke2010-08-261-0/+5
| | | | | | This fixes bug 5148. svn path=/trunk/; revision=33941
* Change font for packet information from Courier to Monaco.Jaap Keuter2010-08-111-3/+0
| | | | svn path=/trunk/; revision=33773
* Add an option to print the first, the last or all occurrences of each fieldSake Blok2010-07-141-3/+23
| | | | | | | (when using tshark -T fields) svn path=/trunk/; revision=33529
* Oops... forgot to update the "-E usage" textSake Blok2010-07-141-2/+3
| | | | svn path=/trunk/; revision=33528
* Make 'tshark -T fields' print all values for fields with multiple occurences.Sake Blok2010-07-141-4/+31
| | | | svn path=/trunk/; revision=33527
* Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris2010-05-211-1/+1
| | | | | | | | argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. svn path=/trunk/; revision=32913
* Squelch some compiler warnings.Guy Harris2010-03-111-21/+21
| | | | svn path=/trunk/; revision=32165
* Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4402 :Jeff Morriss2010-01-261-1/+7
| | | | | | Escape all non-printable characters so that we generate valid PDML. svn path=/trunk/; revision=31674
* Update the URL of the PDML specJeff Morriss2010-01-241-1/+1
| | | | svn path=/trunk/; revision=31648
* Use more unique names for certain enum constants.Bill Meier2010-01-191-4/+4
| | | | | | | (enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
* Fix bug #1564: PSML - structure context node missing [when not displayingStephen Fisher2009-12-311-1/+4
| | | | | | | | | | | | packet #1 from the capture file] This change keeps track of whether the <structure></structure> elements and information in between have been shown yet, and if not, it shows them once. The previous behavior would only show it if packet #1 from the capture file was being shown. svn path=/trunk/; revision=31395
* Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris2009-12-101-1/+1
| | | | | | | | | | | indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
* Removed unnecessary assignment.Stig Bjørlykke2009-10-061-1/+0
| | | | svn path=/trunk/; revision=30361
* Removed a redundant prototype.Stig Bjørlykke2009-10-041-1/+0
| | | | svn path=/trunk/; revision=30298
* Fix typoKovarththanan Rajaratnam2009-10-041-3/+3
| | | | svn path=/trunk/; revision=30291
* Introduce print_stream_ps_alloc() and start using itKovarththanan Rajaratnam2009-09-261-17/+14
| | | | svn path=/trunk/; revision=30164