aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
AgeCommit message (Collapse)AuthorFilesLines
2013-07-12Move the print modules into epan.Jeff Morriss1-1809/+0
svn path=/trunk/; revision=50526
2013-07-11Move some more modules into epan.Jeff Morriss1-1/+1
svn path=/trunk/; revision=50517
2013-07-07Make tree_is_expanded array static, add setter/getter function.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=50433
2013-03-20 From beroset:Bill Meier1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
2013-02-23Use consistent indentation & formatting style.Bill Meier1-976/+979
(Re-commit since the previous commit for this was reverted). svn path=/trunk/; revision=47845
2013-02-23(version 2); Implement proto_tree_write_fields without using ep_strbufs.Bill Meier1-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
2013-02-18Revert SVN #47724, #47726 & #47727.Bill Meier1-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
2013-02-18Use consistent indentation & formatting style.Bill Meier1-992/+993
svn path=/trunk/; revision=47727
2013-02-18Don't use index as a variable name (i knew that..).Bill Meier1-6/+6
Fixes compiler warning. svn path=/trunk/; revision=47726
2013-02-18Implement proto_tree_write_fields without using ep_strbufs.Bill Meier1-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
2012-12-16Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8027 :Pascal Quantin1-2/+2
Fix tshark hex bytes output svn path=/trunk/; revision=46557
2012-12-08Allow TShark to specify columns as fields with -e option ↵Michael Mann1-20/+52
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2892) svn path=/trunk/; revision=46465
2012-11-01Add changes missing from the last commit.Gerald Combs1-48/+25
svn path=/trunk/; revision=45862
2012-10-221) Allow for the possibility for both packet summary and packet details to beChris Maynard1-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
2012-10-20Make data_source opqaue, add getter for tvb.Jakub Zawadzki1-9/+9
svn path=/trunk/; revision=45672
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45015
2012-09-05Remove string constants from g_assert() calls, as per thread on wireshark-dev:Evan Huus1-3/+6
http://www.wireshark.org/lists/wireshark-dev/201209/msg00030.html svn path=/trunk/; revision=44774
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-04-13Remove doubled semicolons and semicolons outside function.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=42053
2011-12-14Treat expert info as a <field> instead of a <proto> when exporting to pdml.Chris Maynard1-2/+4
svn path=/trunk/; revision=40204
2011-12-13Don't close the field tag here; it's now closed with </field>.Chris Maynard1-1/+1
svn path=/trunk/; revision=40184
2011-12-12Add missing </field> for data tree. Fixes ↵Chris Maynard1-1/+3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3809 svn path=/trunk/; revision=40162
2011-12-12Fix incorrect "pos=0" pdml values. Resolves the issue reported in comment 4 ↵Chris Maynard1-2/+10
of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2432 and closes the bug. svn path=/trunk/; revision=40161
2011-12-09Export all data sources of a frame to a C array. Fixes ↵Chris Maynard1-16/+51
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4988 svn path=/trunk/; revision=40136
2011-08-16Check for valid filename in write_pdml_preamble().Stig Bjørlykke1-1/+1
Part of fix for bug 6245. svn path=/trunk/; revision=38563
2011-05-19From Dirk Jagdmann via bug 5875:Gerald Combs1-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
2011-05-17More eradication of old-style function definitions.Guy Harris1-1/+1
svn path=/trunk/; revision=37216
2011-05-04Once we start printing an "opened up" (tshark -O) tree, print the entireJeff Morriss1-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
2011-04-29From Edwin Groothuis via bug 5870:Stig Bjørlykke1-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
2011-03-26Added a sanity check in output_fields_set_option.Stig Bjørlykke1-0/+3
Coverity 552. svn path=/trunk/; revision=36351
2010-11-08Fix gcc warning. (Sorry, but VS2008EE complains a LOT less.)Chris Maynard1-1/+1
svn path=/trunk/; revision=34809
2010-11-08Ensure strings are properly quoted for CSV output. Fixes bug 1297.Chris Maynard1-12/+30
svn path=/trunk/; revision=34806
2010-10-30Rev 29427 added packet_add_new_data_source() with a comment indicating thatJeff Morriss1-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
2010-09-01Ensure we always print the heading when dumping PSML and CSV.Stig Bjørlykke1-5/+9
svn path=/trunk/; revision=34039
2010-08-26Check input string in ps_clean_string().Stig Bjørlykke1-0/+5
This fixes bug 5148. svn path=/trunk/; revision=33941
2010-08-11Change font for packet information from Courier to Monaco.Jaap Keuter1-3/+0
svn path=/trunk/; revision=33773
2010-07-14Add an option to print the first, the last or all occurrences of each fieldSake Blok1-3/+23
(when using tshark -T fields) svn path=/trunk/; revision=33529
2010-07-14Oops... forgot to update the "-E usage" textSake Blok1-2/+3
svn path=/trunk/; revision=33528
2010-07-14Make 'tshark -T fields' print all values for fields with multiple occurences.Sake Blok1-4/+31
svn path=/trunk/; revision=33527
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris1-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
2010-03-11Squelch some compiler warnings.Guy Harris1-21/+21
svn path=/trunk/; revision=32165
2010-01-26Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4402 :Jeff Morriss1-1/+7
Escape all non-printable characters so that we generate valid PDML. svn path=/trunk/; revision=31674
2010-01-24Update the URL of the PDML specJeff Morriss1-1/+1
svn path=/trunk/; revision=31648
2010-01-19Use more unique names for certain enum constants.Bill Meier1-4/+4
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
2009-12-31Fix bug #1564: PSML - structure context node missing [when not displayingStephen Fisher1-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
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris1-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
2009-10-06Removed unnecessary assignment.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=30361
2009-10-04Removed a redundant prototype.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=30298
2009-10-04Fix typoKovarththanan Rajaratnam1-3/+3
svn path=/trunk/; revision=30291
2009-09-26Introduce print_stream_ps_alloc() and start using itKovarththanan Rajaratnam1-17/+14
svn path=/trunk/; revision=30164