0

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)

线路目的地、地址、来源等是什么意思?第一个目的地和地址是广播信息,对吧?

4

0 回答 0