aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
AgeCommit message (Collapse)AuthorFilesLines
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
2008-10-09Fix for bug 2934.Jaap Keuter1-0/+6
Check that tvb backing is available before accessing it. svn path=/trunk/; revision=26393
2008-08-01Really start printing in 8 pnt Courier, not just state so in the template.Jaap Keuter1-3/+4
Add Wireshark version info to the page header. svn path=/trunk/; revision=25901
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-16/+16
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-05-03Fix for bug #2518: 'tshark -Tfields -e data' Omits Last Character of DataBill Meier1-2/+1
svn path=/trunk/; revision=25223
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-0/+39
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
2008-02-07When generating PDML, insert a fake protocol wrapper around top-level field ↵Martin Mathieson1-3/+33
items. This is to help preserve the PDML schema, and is discussed in bug 2226. svn path=/trunk/; revision=24281
2008-02-03More rewrite of prohibited APIs (sprintf, strcpy, strcat).Stig Bjørlykke1-3/+1
svn path=/trunk/; revision=24258
2008-01-22Clean up indentation.Guy Harris1-72/+68
Move some comments to make it a bit clearer what each branch of the if handles. svn path=/trunk/; revision=24161
2008-01-22When using -T fields, print a "1" instead of nothing when a field of type ↵Sake Blok1-1/+3
FT_NONE is present. This way, scripts can check for the presence of this type of fields. (fixes bug 2210) svn path=/trunk/; revision=24158
2008-01-12Don't write closing PDML tag for Data protocol - it uses simple ↵Martin Mathieson1-5/+7
(self-closing) tags. Fixes bug 2185. svn path=/trunk/; revision=24069
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-4/+4
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-26From Doug Pratley:Stephen Fisher1-0/+368
The purpose of the patch is to provide a new output format (so it is independent of -V): single line record per-packet with the fields chosen by the user, with configuration options to control separator, quoting and whether a header line is printed. It also extends some existing options behaviour (-c and -a:filesize) so that they affect reading a file as well as writing one, so that only the first <n> packets or bytes are read). svn path=/trunk/; revision=21211
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-8/+8
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2007-01-18Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson1-4/+4
32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
2006-11-24Have separate proto_construct_match_selected_string() andGuy Harris1-2/+3
proto_can_match_selected() routines, to more clearly separate the two functions - but have them both call the same underlying routine, so they both make the same decisions as to whether a match-selected string can be constructed or not. svn path=/trunk/; revision=19976