Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try example but dont work #1

Open
orcim opened this issue May 6, 2020 · 1 comment
Open

try example but dont work #1

orcim opened this issue May 6, 2020 · 1 comment

Comments

@orcim
Copy link

orcim commented May 6, 2020

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/scapy/supersocket.py", line 134, in del
self.close()
File "/usr/local/lib/python3.6/dist-packages/scapy/arch/linux.py", line 514, in close
set_promisc(self.ins, self.iface, 0)
File "/usr/local/lib/python3.6/dist-packages/scapy/arch/linux.py", line 165, in set_promisc
mreq = struct.pack("IHH8s", get_if_index(iff), PACKET_MR_PROMISC, 0, b"")
File "/usr/local/lib/python3.6/dist-packages/scapy/arch/linux.py", line 380, in get_if_index
return int(struct.unpack("I", get_if(iff, SIOCGIFINDEX)[16:20])[0])
File "/usr/local/lib/python3.6/dist-packages/scapy/arch/common.py", line 59, in get_if
ifreq = ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8")))
OSError: [Errno 19] No such device

@robert
Copy link
Owner

robert commented May 13, 2020

@orcim could you try this on latest master? I think @squidarth fixed this in #2 . Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants