path: root/print.h
AgeCommit message (Collapse)AuthorFilesLines
2013-07-12Move the print modules into epan.Jeff Morriss1-167/+0
svn path=/trunk/; revision=50526
2013-07-11Move some more modules into epan.Jeff Morriss1-1/+1
svn path=/trunk/; revision=50517
2013-06-19Allow for column headers not to be printed in order to make it possible to ↵Chris Maynard1-12/+12
export packets as plain text in a format that could then have a chance of being imported again (assuming other factors such as packet bytes were printed, etc.) in order to recover the original pcap file. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1636 svn path=/trunk/; revision=50036
2012-12-08Allow TShark to specify columns as fields with -e option ↵Michael Mann1-1/+2
(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-2/+2
svn path=/trunk/; revision=45862
2012-10-12Add a packet format group box, similar to the packet range group box.Gerald Combs1-0/+8
Use it in the new "Export Packet Dissections" dialog. I'm omitting PostScript exports on purpose. If you *really* need that feature you can probably get better results than we produce using text + enscript or print-to-PDF + pdf2ps/pdftops or PSML/PDML + XSL + ... The Windows code is untested. I'll check in any needed fixes shortly. svn path=/trunk/; revision=45513
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-12-09Export all data sources of a frame to a C array. Fixes ↵Chris Maynard1-2/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4988 svn path=/trunk/; revision=40136
2011-05-19From Dirk Jagdmann via bug 5875:Gerald Combs1-1/+1
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-04-29From Edwin Groothuis via bug 5870:Stig Bjørlykke1-0/+6
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
2009-08-26Add #include <stdio.h> to print.h; Undo the previous change to about_dlg.cBill Meier1-0/+2
svn path=/trunk/; revision=29575
2009-04-08Add some more "copy" functionality:Sake Blok1-0/+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
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-0/+4
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
2007-03-28Warning fixJörg Mayer1-1/+1
svn path=/trunk/; revision=21242
2007-03-26From Doug Pratley:Stephen Fisher1-0/+16
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
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-03-11from Stefano Pettini: add CSV export function, similar to PSML exportUlf Lamping1-0/+4
svn path=/trunk/; revision=13724
2005-02-02Writing the raw data of a TCP stream to a file isn't printing it, soGuy Harris1-3/+0
don't use the print mechanism for that - do the writing directly in the "follow stream" code. Use "size_t" for character counts. Make the "hexchars" array static and const, as it's not written to, and there's probably no point in copying it to the stack (unless that improves cache locality). There's no need to explain why we're subtracting the number of bytes actually read, rather than the number of bytes asked for, from the data length. Note an issue with printing lines. svn path=/trunk/; revision=13240
2005-02-02from chris eagleRonnie Sahlberg1-0/+3
add radiobutton to allow saving raw tcpstreams these radiobuttons should, by someone that uses, this feature be changed into a menu instead. svn path=/trunk/; revision=13236
2004-09-04The packet range stuff knows about capture_file structures, so it'sGuy Harris1-0/+2
really more of an Ethereal/Tethereal component than a libethereal component (nothing else in libethereal knows about capture files); move it back out of libethereal. (The range stuff doesn't; we leave it in libethereal.) svn path=/trunk/; revision=11898
2004-07-27Move the code to open the printer/print file from "print_packets()" toGuy Harris1-36/+43
"print_ok_cb()", and have "print_packets()" just work on a "print_stream_t" handed to it, so that different platforms can open the printer/print file in different ways (opening the file is probably not going to be platform-dependent, but opening the printer will be). svn path=/trunk/; revision=11544
2004-07-27"print_packet_header()" is no longer used (there's now a "generateGuy Harris1-1/+0
bookmark" op in the lower-level print functions), so remove it. svn path=/trunk/; revision=11543
2004-07-25Make some generic print routines that take, as an argument, a pointer toGuy Harris1-11/+38
a structure containing a pointer to print operations for that object and a pointer to the private subclass-dependent data for that object, with subclasses for text and PostScript, and use those rather than the old scheme where a print format was passed as an argument - or where (as in the case of printing summary information in Tethereal) we just printed as text even if "-T ps" was selected. Check whether those routines succeed or get an I/O error writing output. Clean up indentation. svn path=/trunk/; revision=11514
2004-07-23Trivial warning fixes:Jörg Mayer1-1/+1
- comma at end of enum - function declarations with empty args instead of void - c++ style comments svn path=/trunk/; revision=11492
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-08Make the "human-readable text vs. PSML vs. PDML" choice separate fromGuy Harris1-4/+7
the "text vs. PostScript" choice. The "text vs. PostScript" choice should probably ultimately be done with a generic set of print methods, to handle various platform-native print mechanisms more cleanly (and perhaps the dialog box code for "export as {PDML,PSML}" should be separate from the "export as text"/"print" dialog). svn path=/trunk/; revision=11342
2004-05-09From Lars Roland: add support for building a libethereal.dll with MSVC:Guy Harris1-11/+11
add a config.nmake option to control whether to build libethereal.dll or not; remove "./wiretap" from PATH to prevent problems due to wrongly-loaded files; build dissector.lib with MSVC; move "print.c" and "ps.c" to the dissector helpers, as "print.c" imports variables from packet-frame.c and packet-data.c, which are in libethereal; move "g711.c" out of the dissector helpers, as they're used only by Ethereal in a tap, not in Tethereal or in any dissector; add a .def file for libethereal; arrange to declare global variables exported from libethereal with "__declspec(dllimport)" when building programs that import those variables; update the NSIS installer. Make the "configure" script define ETH_VAR_IMPORT as "extern". svn path=/trunk/; revision=10834
2004-04-25put all required data into the print_args,Ulf Lamping1-3/+3
instead of confusing seperation of data svn path=/trunk/; revision=10692
2004-04-24some code cleanup of the printing systemUlf Lamping1-12/+16
svn path=/trunk/; revision=10682
2004-04-22added some options and enhancements to the print output:Ulf Lamping1-1/+5
-ps: added formatting hints for ghostscript, so pdf conversion will be much better -ps: print a thin line at the top and bottom of each page -ps/text: add an option to start a new page for every packet (formfeed) svn path=/trunk/; revision=10660
2004-04-20changed postscript output:Ulf Lamping1-2/+2
reduced print margin to 1/2 inch and font size to 8 point, include filename in page header, wrap too long lines svn path=/trunk/; revision=10652
2004-04-17added PSML output to the printing dialogUlf Lamping1-1/+2
svn path=/trunk/; revision=10628
2004-04-15added print output option, to suppress dissection completelyUlf Lamping1-1/+2
(for raw packet hexdump) svn path=/trunk/; revision=10607
2004-02-20comment changedUlf Lamping1-2/+2
svn path=/trunk/; revision=10133
2004-01-25There's no need to keep a "FILE *" for the file being printed to in aGuy Harris1-3/+3
"capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. svn path=/trunk/; revision=9828
2004-01-24As with "file_write_error_message()", so withGuy Harris1-4/+4
"file_close_error_message()" - but just use "file_write_error_message()" for UNIX-style errors, under the assumption that a close will only fail because a buffer-flushing write fails or because "close()" itself fails when, for example, pushing unsynced NFS client-side writes out over the wire. Make several routines in "print.c" return success/failure indications. Check for write errors when printing "Follow TCP Stream" stuff or saving it to a file. svn path=/trunk/; revision=9825
2004-01-09use the same packet range things for "Print" dialog, as already implementedUlf Lamping1-4/+2
in the "Save As" dialog and some other minor changes svn path=/trunk/; revision=9610
2003-12-09print system enhanced, more print ranges and expanded statesUlf Lamping1-3/+1
svn path=/trunk/; revision=9222
2003-12-09print system enhanced, more print ranges and expanded statesUlf Lamping1-7/+24
svn path=/trunk/; revision=9221
2003-12-06Add the ability to print packet dissections in PDML (an XML-based format)Gilbert Ramirez1-1/+2
to tethereal. It could be added to Ethereal, but the GUI changes to allow the user to select PDML as a print format have not been added. Provide a python module (EtherealXML.py) to help parse PDML. Provide a sample app (msnchat) which uses tethereal and EtherealXML.py to reconstruct MSN Chat sessions from packet capture files. It produces a nice HTML report of the chat sessions. Document tethereal's PDML and EtherealXML.py usage in doc/README.xml-output Update tethereal's manpage to reflect the new [-T pdml|ps|text] option svn path=/trunk/; revision=9180
2003-09-10When saving packets, we have a "Save only marked packets" option; labelGuy Harris1-6/+4
the option to print only marked packets similarly, rather than as "Suppress unmarked packets" (for consistency, and because the latter isn't unlike a double negative). svn path=/trunk/; revision=8451
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-7/+7
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-06-29Have "print_line()" take an indentation argument, and do blankGuy Harris1-2/+2
padding when printing text and use "putline" when printing PostScript. Eliminate "hexdump", as it's just a special case of "putline". Have "proto_tree_print_node()" just call "print_line()". Get rid of "print_ps_hex()" - the font used for the hex dump and the protocol tree are the same, so there's no need to switch fonts. svn path=/trunk/; revision=5798
2002-06-04Get rid of the "data_src" member of the "frame_data" structure; put itGuy Harris1-4/+4
in the "packet_info" structure instead, as we don't need a pointer for every single frame in the capture file, just for each frame for which we currently have an open "epan_dissect_t". svn path=/trunk/; revision=5614
2002-03-31From Joerg Mayer: get rid of unused arguments, and mark those that can'tGuy Harris1-2/+2
be eliminated (because the function is called through a pointer, and other functions called through the same pointer *do* use the argument) as unused. svn path=/trunk/; revision=5050
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=4199
2001-07-17Added a "Suppress Unmarked" option to the print dialog toEd Warnicke1-1/+6
allow you to suppress the printing of unmarked packets. This allows a user to mark the packets they wish to print and print ONLY those packets by suppressing all other unmarked packets. This may seem like a bit of a convoluted way of expressing things, as usually the desired behavior would be to print the marked packets. However, we do NOT print marked packets that are not displayed under the current filter. To be maximally explicite I've expressed this as suppressing unmarked frames. svn path=/trunk/; revision=3736
2001-06-08When printing the contents of a raw-data field, don't use the raw dataGuy Harris1-4/+3
of the current frame as the source, use the raw data of the tvbuff that's the data source of that field. svn path=/trunk/; revision=3531
2001-03-23Added named data sources printing support, written by Guy HarrisJeff Foster1-3/+2
svn path=/trunk/; revision=3167