문제

It's dpkt.ethernet.Ethernet(pkt) for an ethernet interface, what is it for the ppp0 interface?

도움이 되었습니까?

해결책

You're mixing up dpkt, a library for parsing and creating packets, with pypcap, a Python wrapper for libpcap.

To specify an interface to listen on, use pcap.pcap(name='ppp0').

To deserialize PPP packets, use dpkt.ppp.PPP(pkt).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top