Printing packets

Ethereal provides two methods for printing packets:

  1. Select the Print... menu item from the File menu. When you do this, Ethereal pops up the Print dialog box as shown in Figure 28.

  2. Select the Print Packet menu item from the File menu (or type Ctrl-P) and Ethereal will print the currently selected packet.

We present more detail on the Print dialog box below.

Figure 28. The Ethereal Print dialog box

Note

Currently, there is no simple way with the Print dialog box to print only a range of packets, or to print a single packet. To do this, first select a range of packets with a display filter, then select Print... from the File menu. You could even select a single packet with something like frame.number == 10 or a range by frame number with something like frame.number >= 10 && frame.number <= 20.

The following fields are available in the Print dialog box:

Format

This field contains a pair of mutually exclusive radio buttons:

  • Plain Text, which specifies that the packet print should be in plain text.

  • PostScipt, which specifies that the packet print process should use Postscript to generate a better print.

Print to

This field contains another pair of mutually exclusive radio buttons:

  • Command, which specifies that a command be used for printing.

  • File, which specifies that printing be done to a file.

Command

This field specifies the command to use for printing. It is typically lpr. You would change it to specify a particular queue if you need to print to a queue other than the default. An example might be:


  lpr -Pmypostscript
This field is greyed out if Command is not specified above.

File

This field is where you enter the file to print to if you have selected Print to a file. It is greyed out if Print to a file is not selected.

Print summary and Print detail

This pair of mutually exclusive radio boxes select whether or not Ethereal prints a summary or the detail for each packet printed.

Expand all details and Print as displayed

This pair of mutially exclusive radio boxes select whether or not Ethereal expands all details for all packets printed, or prints them as displayed (ie, with only the currently expanded protocol trees expanded.

Print hex data

This radio box controls whether or not Ethereal prints the hex data for each packet selected.