summaryrefslogtreecommitdiff
path: root/print.c
AgeCommit message (Collapse)AuthorFilesLines
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
2009-09-26Introduce print_stream_text_alloc() and start using itKovarththanan Rajaratnam1-17/+14
svn path=/trunk/; revision=30163
2009-09-01From Richard Brodie via. Bug 3913:Kovarththanan Rajaratnam1-5/+5
Free ptr array allocated through proto_find_finfo() svn path=/trunk/; revision=29654
2009-08-21Also fake empty field_info's by gracefully handling NULL field_info pointer ↵Kovarththanan Rajaratnam1-1/+8
elsewhere. svn path=/trunk/; revision=29490
2009-08-15This patch introduces packet_add_new_data_source() which effectively ↵Kovarththanan Rajaratnam1-0/+8
deprecates add_new_data_source(). This is based on the following observation: 1) The tvb + name (aka. data_source) is only used when the protocol tree is visible The current implementation of add_new_data_source() doesn't take this into account and simply allocates a data_source regardless. This is what packet_add_new_data_source() tries to rectify. A couple of dissectors have already been switched over to the new packet_add_new_data_source(). Many are still missing. Help appreciated! svn path=/trunk/; revision=29427
2009-08-09Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works ↵Kovarththanan Rajaratnam1-3/+3
because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail. svn path=/trunk/; revision=29354
2009-07-12From Kovarththanan Rajaratnam via bug 3702:Stig Bjørlykke1-2/+2
This patch optimizes the data source name processing in add_new_data_source() by delaying it. We now simply store the constant string and lazily compute the name when needed. This gives a performance boost because we only need the name if we have multiple data sources. svn path=/trunk/; revision=29066
2009-04-16Fix the last(?) of the Win64 compilation problems.Gerald Combs1-2/+2
svn path=/trunk/; revision=28065
2009-04-08Add some more "copy" functionality:Sake Blok1-2/+2
- Enabled "Copy Description" in the main menu and gave it accelerator key CTRL+SHIFT+D - Added "Copy Fieldname" to copy the fieldname of the selected field in the detail view (Acc.Key: CTRL+SHIFT+F) - Added "Copy Value" to copy the value of the selected field in the detail view (Acc.Key: CTRL+SHIFT+V) - Updated documentation to reflect the changes svn path=/trunk/; revision=28006
2009-01-29Group time related fields.Jaap Keuter1-3/+3
Drop packet length in favor of frame length. Clean up code / indentations / header fields. Improve docsis preference description. svn path=/trunk/; revision=27329
2008-11-26Improve title and remove Ethereal legacy.Jaap Keuter1-1/+1
svn path=/trunk/; revision=26850