Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 理解pyshark输出_Python_Ethernet_Pyshark - Fatal编程技术网

Python 理解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

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: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)源地址等。。可能是你问题的部分答案