Python 理解pyshark输出
pyshark模块的文档非常简单。你能帮我理解代码的基本输出吗Python 理解pyshark输出,python,ethernet,pyshark,Python,Ethernet,Pyshark,pyshark模块的文档非常简单。你能帮我理解代码的基本输出吗 import pyshark capture = pyshark.LiveCapture(interface='eno1') for packet in capture.sniff_continuously(packet_count=1): if packet['eth']: print(packet['eth']) 这是示例输出: Layer ETH: Destination: ff:ff:ff:ff
import pyshark
capture = pyshark.LiveCapture(interface='eno1')
for packet in capture.sniff_continuously(packet_count=1):
if packet['eth']:
print(packet['eth'])
这是示例输出:
Layer ETH:
Destination: ff:ff:ff:ff:ff:ff
Address: ff:ff:ff:ff:ff:ff
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
Source: 02:eb:9f:67:c9:42
Type: Unknown (0x8942)
Address: 02:eb:9f:67:c9:42
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
线路的目的地、地址、来源等是什么意思?
第一个目的地和地址是广播信息,对吗?你看过这个链接了吗?是的,我看过,但它没有回答我的问题。在该链接的第一页上,我可以阅读目的地:第3层(IP,IPv6)目的地地址源:第3层(IP,IPv6)源地址等。。可能是你问题的部分答案