10.4. Control Protocol dissection
Prev | Chapter 10. Customizing Wireshark | Next

## 10.4. Control Protocol dissection

The user can control how protocols are dissected.

Each protocol has its own dissector, so dissecting a complete packet will typically involve several dissectors. As Wireshark tries to find the right dissector for each packet (using static "routes" and heuristics "guessing"), it might choose the wrong dissector in your specific case. For example, Wireshark won't know if you use a common protocol on an uncommon TCP port, e.g. using HTTP on TCP port 800 instead of the standard port 80.

There are two ways to control the relations between protocol dissectors: disable a protocol dissector completely or temporarily divert the way Wireshark calls the dissectors.

### 10.4.1. The "Enabled Protocols" dialog box

The Enabled Protocols dialog box lets you enable or disable specific protocols; all protocols are enabled by default. When a protocol is disabled, Wireshark stops processing a packet whenever that protocol is encountered.

| Note!
Disabling a protocol will prevent information about higher-layer protocols from being displayed. For example, suppose you disabled the IP protocol and selected a packet containing Ethernet, IP, TCP, and HTTP information. The Ethernet information would be displayed, but the IP, TCP and HTTP information would not - disabling IP would prevent it and the other protocols from being displayed.

To enable/disable protocols select the Enabled Protocols... item from the Analyze menu; Wireshark will pop up the "Enabled Protocols" dialog box as shown in Figure 10.5, “The "Enabled Protocols" dialog box”.

Figure 10.5. The "Enabled Protocols" dialog box

To disable or enable a protocol, simply click on it using the mouse or press the space bar when the protocol is highlighted. Note that typing the first few letters of the protocol name when the Enabled Protocols dialog box is active will temporarily open a search text box and automatically select the first matching protocol name (if it exists).

| Warning!
You have to use the Save button to save your settings. The OK or Apply buttons will not save your changes permanently, so they will be lost when Wireshark is closed.

You can choose from the following actions:

1. Enable All: Enable all protocols in the list.

2. Disable All: Disable all protocols in the list.

3. Invert: Toggle the state of all protocols in the list.

4. OK: Apply the changes and close the dialog box.

5. Apply: Apply the changes and keep the dialog box open.

6. Save: Save the settings to the disabled_protos, see Appendix A, Files and Folders for details.

7. Cancel: Cancel the changes and close the dialog box.

### 10.4.2. User Specified Decodes

The "Decode As" functionality let you temporarily divert specific protocol dissections. This might be useful for example, if you do some uncommon experiments on your network.

Decode As is accessed by selecting the Decode As... item from the Analyze menu; Wireshark will pop up the "Decode As" dialog box as shown in Figure 10.6, “The "Decode As" dialog box”.

Figure 10.6. The "Decode As" dialog box

The content of this dialog box depends on the selected packet when it was opened.

| Warning!
These settings will be lost if you quit Wireshark or change profile, unless you save the entries in the Show User Specified Decodes... windows (Section 10.4.3, “Show User Specified Decodes”).

1. Decode: Decode packets the selected way.

2. Do not decode: Do not decode packets the selected way.

3. Link/Network/Transport: Specify the network layer at which "Decode As" should take place. Which of these pages are available depends on the content of the selected packet when this dialog box is opened.

4. Show Current: Open a dialog box showing the current list of user specified decodes.

5. OK: Apply the currently selected decode and close the dialog box.

6. Apply: Apply the currently selected decode and keep the dialog box open.

7. Cancel: Cancel the changes and close the dialog box.

### 10.4.3. Show User Specified Decodes

This dialog box shows the currently active user specified decodes. These entries can be saved into current profile for later session.

Figure 10.7. The "Decode As: Show" dialog box

1. OK: Close this dialog box.

2. Save: Save the entries in the table into current profile.

3. Clear: Removes all user specified decodes without updating the profile.

Prev | Up | Next
10.3. Packet colorization | Home | 10.5. Preferences