Get the App
SLTechnology News&Howtos  ›  Servers  › 

Wireshark operator! = Why does it not work properly

Shulou Source: shulou.com Published: 2022-06-01 03:45:20 09月28日 Update

This article is to share with you about the Wireshark operator! = why it does not work properly, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Without saying much, let's take a look at it.

The Wireshark operator! = does not work properly

In Wireshark, the operator! = usually doesn't work properly when combined with expressions like eth.addr, ip.addr, tcp.port, and udp.port. When in use, Wireshark displays a warning message "! = has been deprecated or may have unexpected results, please refer to the user's Guide" and the filter background color is yellow. For example, display filters all host packets except IP address 1.2.3.4, written as ip.addr! = 1.2.3.4.

At this point, the filter ip.addr! = 1.2.3.4 is not working properly. Because ip.addr! = 1.2.3.4 indicates that the packet contains a field called ip.addr, whose value is different from 1.2.3.4. Because the IP Datagram contains both source and destination addresses, the expression evaluates to true when at least one of the two addresses is different from 1.2.3.4.

Therefore, if you want to filter out packets other than the IP address 1.2.3.4, the correct filter should be! (ip.addr==1.2.3.4).

This is why the Wireshark operator! = does not work properly. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Work address operator operation data filter more knowledge article result expression different practical two host information and at the same time fields rare just Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker OPPO Reno Redmi macOS