Chapter 6. Working with captured packets

Table of Contents

6.1. Viewing packets you have captured
6.2. Pop-up menus
6.2.1. Pop-up menu of the “Packet List” column header
6.2.2. Pop-up menu of the “Packet List” pane
6.2.3. Pop-up menu of the “Packet Details” pane
6.3. Filtering packets while viewing
6.4. Building display filter expressions
6.4.1. Display filter fields
6.4.2. Comparing values
6.4.3. Combining expressions
6.4.4. Membership Operator.
6.4.5. A common mistake
6.5. The “Filter Expression” dialog box
6.6. Defining and saving filters
6.7. Defining and saving filter macros
6.8. Finding packets
6.8.1. The “Find Packet” dialog box
6.8.2. The “Find Next” command
6.8.3. The “Find Previous” command
6.9. Go to a specific packet
6.9.1. The “Go Back” command
6.9.2. The “Go Forward” command
6.9.3. The “Go to Packet” dialog box
6.9.4. The “Go to Corresponding Packet” command
6.9.5. The “Go to First Packet” command
6.9.6. The “Go to Last Packet” command
6.10. Marking packets
6.11. Ignoring packets
6.12. Time display formats and time references
6.12.1. Packet time referencing

6.1. Viewing packets you have captured

Once you have captured some packets or you have opened a previously saved capture file, you can view the packets that are displayed in the packet list pane by simply clicking on a packet in the packet list pane, which will bring up the selected packet in the tree view and byte view panes.

You can then expand any part of the tree to view detailed information about each protocol in each packet. Clicking on an item in the tree will highlight the corresponding bytes in the byte view. An example with a TCP packet selected is shown in Figure 6.1, “Wireshark with a TCP packet selected for viewing”. It also has the Acknowledgment number in the TCP header selected, which shows up in the byte view as the selected bytes.

Figure 6.1. Wireshark with a TCP packet selected for viewing


You can also select and view packets the same way while Wireshark is capturing if you selected “Update list of packets in real time” in the “Capture Preferences” dialog box.

In addition you can view individual packets in a separate window as shown in Figure 6.2, “Viewing a packet in a separate window”. You can do this by double-clicking on an item in the packet list or by selecting the packet in which you are interested in the packet list pane and selecting ViewShow Packet in New Window. This allows you to easily compare two or more packets, even across multiple files.

Figure 6.2. Viewing a packet in a separate window


Along with double-clicking the packet list and using the main menu there are a number of other ways to open a new packet window: