在捕获过滤器中使用AND / OR [英] Use of AND / OR in capture filter

查看:108
本文介绍了在捕获过滤器中使用AND / OR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从2个端口捕获流量。我使用了以下捕获过滤器:Frame.Ethernet.Ipv4.UDP.Port == XXXX5 OR Frame.Ethernet.Ipv4.UDP.Port == XXXX7(在此帖子中为数字提供Xs)


使用这样的OR是否正确,因为我不确定它是否正常工作。我可以使用:  Frame.Ethernet.Ipv4.UDP.Port == XXXX5或XXXX7


Stephen

解决方案

嗨Stephen,


你的第一个过滤器看起来是正确的,你不能做第二个过滤器。


是什么让你觉得它不起作用?


您认为您是否也需要捕获Ipv6流量?


谢谢,


I want to capture traffic from 2 ports. I have used the following capture filter :Frame.Ethernet.Ipv4.UDP.Port == XXXX5 OR Frame.Ethernet.Ipv4.UDP.Port == XXXX7 (Susbtituted Xs for numbers in this post)

Is it correct to use the OR like this as I am not sure if it is working correctly. Could I use: Frame.Ethernet.Ipv4.UDP.Port == XXXX5 OR XXXX7

Stephen

解决方案

Hi Stephen,

Your first filter looks correct, you can't do the second one.

What makes you think it's not working?

Do you think you'd need to capture the Ipv6 traffic as well?

Thanks,


这篇关于在捕获过滤器中使用AND / OR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆