Wireshark:波浪号 (~) 运算符在显示过滤器中是什么意思?

Wireshark: what does the tilde (~) operator mean in display filters?

我在工作中经常使用 wireshark。上周,一位客户给我发了一张屏幕截图,显示过滤器中有波浪号。我自己尝试过并且有效(过滤器显示有效)但我不确定它的作用。例如:

ip.dst_host ~ 10.10

我阅读了 documentation, man page and the wiki 但没有找到关于此运算符的任何信息。

根据我的测试,它似乎像 "contains" 一样工作,但我无法知道。

有谁知道这是什么意思吗? link 也将不胜感激。

波浪字符 ~matches 运算符的快捷方式,可以在 scanner.l file. Since Wireshark doesn't document this anywhere, I would suggest opening a Wireshark bug report 要求对其进行记录的请求中看到。