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.
它dpkt.ethernet.Ethernet(pkt)用于以太网接口,接口是什么ppp0?
dpkt.ethernet.Ethernet(pkt)
ppp0
您将dpkt(用于解析和创建数据包的库)与pypcap(libpcap 的 Python 包装器)混合在一起。
要指定要侦听的接口,请使用pcap.pcap(name='ppp0').
pcap.pcap(name='ppp0')
要反序列化 PPP 数据包,请使用dpkt.ppp.PPP(pkt).
dpkt.ppp.PPP(pkt)