mark_m
-
--mark [!] [value][/mask]
- Matches frames with the given unsigned mark value. If avalue and mask are specified, the logical AND of the mark value of the frame andthe user-specifiedmask is taken before comparing it with theuser-specified markvalue. When only a mark value is specified, the packetonly matches when the mark value of the frame equals the user-specifiedmarkvalue.If only amask is specified, the logicalAND of the mark value of the frame and the user-specifiedmask is taken and the frame matches when the result of this logical AND isnon-zero. Only specifying amask is useful to match multiple mark values.
本文详细介绍了如何使用标记(mask)来匹配特定的数据包。当指定标记值和掩码时,会先进行逻辑与运算再与用户指定的标记值比较;仅指定标记值时,则直接与帧的标记值对比;仅指定掩码时,逻辑与运算结果非零即视为匹配。这种方法适用于匹配多个标记值。

被折叠的 条评论
为什么被折叠?



