Skip to content

scapy exeptions #101

@pepper-jk

Description

@pepper-jk

After updating to scapy tests print the following exception repeatedly. It seems to be an issue with scapy in general, as it (now) needs root permissions to create sockets.

Since we do not really use sockets in ID2T anyway, this should not happen. For some reason sockets seem to be created, without ID2T using them. There should be a way to suppress this. If not this might be atopic for another pull request for scapy.

Exception ignored in: <function SuperSocket.__del__ at 0x7f72f43bccb0>
Traceback (most recent call last):
  File "/home/pepper-jk/code/ID2T/.venv/lib/python3.7/site-packages/scapy/supersocket.py", line 123, in __del__
    self.close()
  File "/home/pepper-jk/code/ID2T/.venv/lib/python3.7/site-packages/scapy/arch/linux.py", line 481, in close
    set_promisc(self.ins, self.iface, 0)
AttributeError: 'L2Socket' object has no attribute 'ins'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtodoThis will be worked on in the near future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions