Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 python 程序,它需要监听所有网络设备上的流量并根据它们的传入接口识别数据包。为了监听所有接口,我在没有指定设备的情况下开始捕获,但我无法表示特定数据包的接口。这是怎么做到的?
我假设 MAC 地址对您来说是足够的信息。
数据包的前 6 个八位字节是目标 MAC 地址,紧随其后的是源 MAC 地址的 6 个八位字节。
资源